CO2SYS is a family of software programs used to calculate chemical equilibria for the inorganic carbon (carbonate) system in natural waters, primarily seawater and freshwater. Developed originally by Ernie Lewis and Doug Wallace and first published in 1998 by the Carbon Dioxide Information Analysis Center (CDIAC) at Oak Ridge National Laboratory as ORNL/CDIAC-105, CO2SYS has become one of the most widely used programs in chemical oceanography and related fields for solving carbonate system calculations.
Function
The core function of CO2SYS is to use any two of the four central inorganic carbon system parameters—pH, total alkalinity (TA), dissolved inorganic carbon (DIC, also referred to as TCO2), and the partial pressure (pCO2) or fugacity (fCO2) of carbon dioxide—to calculate the remaining two parameters. Given knowledge of any two of these parameters, along with temperature, salinity, pressure, the concentrations of other seawater constituents, and the relevant equilibrium constants, the program derives the full speciation of the carbonate system.
Among the quantities CO2SYS can compute are:
- The concentrations of dissolved CO2, bicarbonate (HCO3⁻), and carbonate (CO3²⁻) ions.
- The saturation state (Omega) of calcite and aragonite.
- The Revelle factor (homogeneous buffer factor), which indicates the sensitivity of fCO2 to changes in DIC at constant alkalinity.
- pH values expressed on multiple pH scales (total, seawater, free, and NBS).
- Sensitivity of calculated parameters to uncertainties in input parameters and equilibrium constants.
History and Development
Prior to the program's release, chemical equilibria in marine and freshwater systems had been calculated according to various differing conventions throughout the 20th century, leading to discrepancies among laboratories and limited reproducibility. The original CO2SYS was written in compiled Microsoft QuickBASIC and ran under DOS. It was released in several versions beginning in 1997 and 1998.
Subsequent versions and implementations expanded the program's reach:
- "CO2SYS-MATLAB," a MATLAB implementation.
- Two Microsoft Excel templates (CO2SYS.XLS and related versions) developed in collaboration with agencies such as the Washington State Department of Ecology and Brookhaven National Laboratory.
- "PyCO2SYS," an open-source Python package, described in a 2022 paper in the journal Geoscientific Model Development.
- "seacarb," an R package inspired by CO2SYS.
Development has continued over time, with newer versions adding additional chemical equilibrium parameters and compatibility with a wider range of environments, including anoxic and hypoxic waters (as documented in Xu, Pierrot, and Cai, 2017, in Marine Chemistry).
Constant Choices and Options
CO2SYS allows users to select from multiple formulations of the thermodynamic constants involved in the calculations, including several different sets of dissociation constants for carbonic acid (K1 and K2), choices for the boric acid, water, bisulfate, and other dissociation constants, and four different pH scales. The program's design reflects the fact that no universally accepted single set of constants exists, and different choices can produce noticeably different results. This flexibility has made CO2SYS valuable for assessing the sensitivity of carbonate system calculations to the choice of constants.
Significance
CO2SYS is widely used by oceanographers, limnologists, and climate researchers to understand and predict chemical equilibria in natural waters, including studies of ocean acidification and the uptake of anthropogenic carbon dioxide by the ocean. It was evaluated alongside nine other software packages in a 2015 comparative study by Orr, Epitalon, and Gattuso published in Biogeosciences, which examined the agreement among tools for computing ocean carbonate chemistry.
Key references associated with CO2SYS include Lewis and Wallace (1998), "Program Developed for CO2 System Calculations" (ORNL/CDIAC-105), the MATLAB version documented as ORNL/CDIAC-105b, and the associated documentation hosted by the NOAA National Centers for Environmental Information (NCEI) Ocean Carbon and Acidification Data System (OCADS).