Software:CO2SYS

From HandWiki
Revision as of 11:48, 9 February 2024 by ScienceGen (talk | contribs) (linkage)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
CO2SYS
Original author(s)Ernie Lewis and Doug Wallace
Initial release1998
Written inQBasic, MATLAB, Python, Microsoft Excel
Available inEnglish
Websitehttps://cdiac.ess-dive.lbl.gov/ftp/co2sys/

https://pyco2sys.readthedocs.io/en/latest/

https://ecology.wa.gov/Research-Data/Data-resources/Models-spreadsheets/Modeling-the-environment/Models-tools-for-TMDLs

CO2SYS is a family of software programs that calculate chemical equilibria for aquatic inorganic carbon species and parameters. Their core function is to use any two of the four central inorganic carbon system parameters (pH, alkalinity, dissolved inorganic carbon, and partial pressure of carbon dioxide) to calculate various chemical properties of the system. These programs are widely used by oceanographers and limnologists to understand and predict chemical equilibria in natural waters.[1]

History

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, bicarbonate anion, 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]

References

  1. 1.0 1.1 1.2 1.3 1.4 Orr, J. C.; Epitalon, J.-M.; Gattuso, J.-P. (2015-03-09). "Comparison of ten packages that compute ocean carbonate chemistry" (in en). Biogeosciences 12 (5): 1483–1510. doi:10.5194/bg-12-1483-2015. ISSN 1726-4189. Bibcode2015BGeo...12.1483O. http://pdfs.semanticscholar.org/5167/5ec70b4d26b80f537d44c54145ccc0a271a5.pdf. 
  2. Lewis and Wallace (1998). "Program Developed for CO2 System Calculations.". https://www.ncei.noaa.gov/access/ocean-carbon-data-system/oceans/CO2SYS/co2rprt.html. 
  3. Van Heuven, S.; Pierrot, D.; Rae, J.W.B.; Lewis, E.; Wallace, D.W.R. (2011) (in en), MATLAB Program Developed for CO2 System Calculations. ORNL/CDIAC-105b., Oak Ridge National Laboratory Environmental Sciences Division, Carbon Dioxide Information Analysis Center (CDIAC), doi:10.3334/cdiac/otg.co2sys_matlab_v1.1, http://cdiac.ornl.gov/ftp/co2sys/CO2SYS_calc_MATLAB_v1.1/, retrieved 2021-01-09 
  4. 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.
  5. 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.
  6. Humphreys, Matthew P.; Sandborn, Daniel; Gregor, Luke; Pierrot, Denis; van Heuven, Steven M. A. C.; Lewis, Ernie R.; Wallace, Douglas W. R. (2021-05-13), "PyCO2SYS: marine carbonate system calculations in Python", Zenodo, doi:10.5281/zenodo.4757055, Bibcode2021zndo...4757055H, https://zenodo.org/record/4757055, retrieved 2021-06-14 
  7. 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.
  8. Xu, Yuan-Yuan; Pierrot, Denis; Cai, Wei-Jun (2017). "Ocean carbonate system computation for anoxic waters using an updated CO2SYS program" (in en). Marine Chemistry 195: 90–93. doi:10.1016/j.marchem.2017.07.002. Bibcode2017MarCh.195...90X. https://linkinghub.elsevier.com/retrieve/pii/S0304420316302481. 
  9. Zeebe, Richard E. (15 October 2001). CO2 in seawater: equilibrium, kinetics, isotopes. Wolf-Gladrow, Dieter A.. Amsterdam. ISBN 978-0-08-052922-6. OCLC 246683387. https://www.worldcat.org/oclc/246683387. 
  10. 10.0 10.1 Stumm, Werner. (2012). Aquatic Chemistry : Chemical Equilibria and Rates in Natural Waters.. Morgan, James J. (3rd ed.). Hoboken: Wiley. ISBN 978-1-118-59148-2. OCLC 830169758. https://www.worldcat.org/oclc/830169758.