Chemical equilibria in marine and freshwater systems were calculated according to various conventions for most of the 20th century, which led to discrepancies among laboratories' calculations and limited scientific reproducibility.[2] CO2SYS was first published by Ernie Lewis and Doug Wallace in 1998 as a DOS-interface program written in QBasic.[1] Subsequent developments have included several MATLAB implementations,[1][3] two Microsoft Excel templates,[1][4][5] a Python package "PyCO2SYS",[6] and an R package inspired by CO2SYS, "seacarb".[1][7] Development of the various CO2SYS programs continues as of 2021 with the addition of more chemical equilibrium parameters and compatibility with a wider range of environments, e.g. anoxic waters.[8]
Chemical Overview
The aquatic inorganic carbon system is composed of the various ionic, dissolved, solid, and/or gaseous forms of carbon dioxide in water. These species include dissolved carbon dioxide, carbonic acid, bicarbonateanion, carbonate anion, calcium carbonate, magnesium carbonate, and others. The relative amounts of each species in a body of water depends on physical variables including temperature and salinity, as well as chemical variables like pH and gas partial pressure. Variables like alkalinity and dissolved (or total) inorganic carbon further define a mass and charge balance that constrains the total state of the system.[9][10]
Given any two of the four central inorganic carbon system parameters (pH, alkalinity, dissolved inorganic carbon, partial pressure of carbon dioxide) the remainder may be derived by solving a system of equations that adhere to the principles of chemical thermodynamics.[10]
^Pierrot, D., Lewis, E., and Wallace, D. W. R.: MS Excel Program Developed for CO2 System Calculations, Tech. rep., Carbon Dioxide Inf. Anal. Cent., Oak Ridge Natl. Lab., US DOE, Oak Ridge, Tenn., 2006.
^Pelletier, G., Lewis, E., and Wallace, D.: CO2SY S.XLS: A calcu- lator for the CO2 system in seawater for Microsoft Excel/VBA, Wash. State Dept. of Ecology/Brookhaven Nat. Lab., Olympia, WA/Upton, NY, USA, 2007.
^Gattuso, J.-P., Epitalon, J.-M. and Lavigne, H. : seacarb: seawa- ter carbonate chemistry with R. R package version 3.0.6, The Comprehensive R Archive Network, http://CRAN.R-project.org/ package=seacarb, 2015.