R package seacarb

In the early 2000s, the situation with respect to the software describing the seawater carbonate system was frustrating for Macintosh and Unix users. There were very useful, thorough and powerful programs out there but they run either with DOS (CO2, developed by Michel Frankignoulle), Windows (CO2sys, developed by Ernie Lewis and Doug Wallace), Excel spreadsheet (CO2sys, developed by Greg Pelletier), or Matlab (files developed by Richard Zeebe and Dieter Wolf-Gladrow). These programs did not run on Macintosh without purchasing rather expensive commercial software. The situation was equally frustrating for plain Unix or Linux users.

In 2003, Aurélien Proye and I put together seacarb, an R package that calculates various parameters of the carbonate system in seawater. R is free and really cross-platform ((MacOS, Unix, Linux and Windows). seacarb was subsequently upgraded, at least once a year. Portions of code and/or corrections have been contributed by Samir Alliouane, Kimberlee Baldry, Jean-Marie Epitalon, Bernard Gentili, Mathilde Hagens, Umihiko Hoshijima, Lydia Kapsenberg, Karol Kulinski, Jens Mueller, James Orr, James Rae, and Karline Soetaert.

seacarb uses equations mostly from the following four sources:

seacarb is provided free under the GNU General Public License (GNU GPL). The current version (3.0) will be improved using the comments that I will receive. If you are new to R, please check the manuals and FAQs available on the R-project web site to get information on how to install R and the seacarb package on your system. Please only report and comment on seacarb, not on general problems related to R.

Briefly, after installing R and if you have an Internet connection, here is the simplest way to install seacarb:

The seacarb package can be downloaded from the Comprehensive R Archive Network (CRAN). The documentation is included in the package and is accessible using standard R commands. Please give due credit to the publications mentioned above and cite seacarb as follows:

Gattuso, J.-P., Epitalon, J.-M. Lavigne H., & Orr J., 2021. seacarb: seawater carbonate chemistry. R package version 3.3.0. http://CRAN.R-project.org/package=seacarb. DOI

seacarb was supported by the following projects: