PyCO2SYS v1.8: marine carbonate system calculations in Python']Python

被引:77
作者
Humphreys, Matthew P. [1 ]
Lewis, Ernie R. [2 ]
Sharp, Jonathan D. [3 ,4 ]
Pierrot, Denis [5 ]
机构
[1] NIOZ Royal Netherlands Inst Sea Res, Dept Ocean Syst OCS, Texel, Netherlands
[2] Brookhaven Natl Lab, Environm & Climate Sci Dept, Upton, NY 11973 USA
[3] Univ Washington, Cooperat Inst Climate Ocean & Ecosystem Studies, Seattle, WA 98195 USA
[4] Natl Ocean & Atmospher Adm, Pacif Marine Environm Lab, Seattle, WA USA
[5] Natl Ocean & Atmospher Adm, Atlant Oceanog & Meteorol Lab, Miami, FL USA
关键词
APPARENT DISSOCIATION-CONSTANTS; SYNTHETIC SEA-WATER; CO2; SYSTEM; TOTAL ALKALINITY; POTENTIOMETRIC TITRATIONS; ION CONCENTRATIONS; INORGANIC CARBON; DIOXIDE SYSTEM; ANOXIC WATERS; BORIC-ACID;
D O I
10.5194/gmd-15-15-2022
中图分类号
P [天文学、地球科学];
学科分类号
07 ;
摘要
Oceanic dissolved inorganic carbon (T-C) is the largest pool of carbon that substantially interacts with the atmosphere on human timescales. Oceanic T-C is increasing through uptake of anthropogenic carbon dioxide (CO2), and seawater pH is decreasing as a consequence. Both the exchange of CO2 between the ocean and atmosphere and the pH response are governed by a set of parameters that interact through chemical equilibria, collectively known as the marine carbonate system. To investigate these processes, at least two of the marine carbonate system's parameters are typically measured - most commonly, two from T-C, total alkalinity (A(T)), pH, and seawater CO2 fugacity (f(CO2); or its partial pressure, p(CO2), or its dry-air mole fraction, x(CO2)) - from which the remaining parameters can be calculated and the equilibrium state of seawater solved. Several software tools exist to carry out these calculations, but no fully functional and rigorously validated tool written in Python, a popular scientific programming language, was previously available. Here, we present PyCO2SYS, a Python package intended to fill this capability gap. We describe the elements of PyCO2SYS that have been inherited from the existing CO2SYS family of software and explain subsequent adjustments and improvements. For example, PyCO2SYS uses automatic differentiation to solve the marine carbonate system and calculate chemical buffer factors, ensuring that the effect of every modelled solute and reaction is accurately included in all its results. We validate PyCO2SYS with internal consistency tests and comparisons against other software, showing that PyCO2SYS produces results that are either virtually identical or different for known reasons, with the differences negligible for all practical purposes. We discuss insights that guided the development of PyCO2SYS: for example, the fact that the marine carbonate system cannot be unambiguously solved from certain pairs of parameters. Finally, we consider potential future developments to PyCO2SYS and discuss the outlook for this and other software for solving the marine carbonate system. The code for PyCO2SYS is distributed via GitHub (https://github.com/mvdh7/PyCO2SYS, last access: 23 December 2021) under the GNU General Public License v3, archived on Zenodo , and documented online (https://pyco2sys.readthedocs.io/en/latest/, last access: 23 December 2021).
引用
收藏
页码:15 / 43
页数:29
相关论文
共 100 条
[1]   Technical Note: Large overestimation of pCO2 calculated from pH and alkalinity in acidic, organic-rich freshwaters [J].
Abril, G. ;
Bouillon, S. ;
Darchambeau, F. ;
Teodoru, C. R. ;
Marwick, T. R. ;
Tamooh, F. ;
Omengo, F. Ochieng ;
Geeraert, N. ;
Deirmendjian, L. ;
Polsenaere, P. ;
Borges, A. V. .
BIOGEOSCIENCES, 2015, 12 (01) :67-78
[2]   The CO2 system in the Mediterranean Sea: a basin wide perspective [J].
Alvarez, M. ;
Sanleon-Bartolome, H. ;
Tanhua, T. ;
Mintrop, L. ;
Luchetta, A. ;
Cantoni, C. ;
Schroeder, K. ;
Civitarese, G. .
OCEAN SCIENCE, 2014, 10 (01) :69-92
[3]  
[Anonymous], 2006, MS EXCEL PROGRAM DEV, DOI DOI 10.3334/CDIAC/OTG.CO2SYS_XLS_CDIAC105A
[4]   Reconsidering the role of carbonate ion concentration in calcification by marine organisms [J].
Bach, L. T. .
BIOGEOSCIENCES, 2015, 12 (16) :4939-4951
[5]   A multi-decade record of high-quality fCO2 data in version 3 of the Surface Ocean CO2 Atlas (SOCAT) [J].
Bakker, Dorothee C. E. ;
Pfeil, Benjamin ;
Landa, Camilla S. ;
Metzl, Nicolas ;
O'Brien, Kevin M. ;
Olsen, Are ;
Smith, Karl ;
Cosca, Cathy ;
Harasawa, Sumiko ;
Jones, Stephen D. ;
Nakaoka, Shin-ichiro ;
Nojiri, Yukihiro ;
Schuster, Ute ;
Steinhoff, Tobias ;
Sweeney, Colm ;
Takahashi, Taro ;
Tilbrook, Bronte ;
Wada, Chisato ;
Wanninkhof, Rik ;
Alin, Simone R. ;
Balestrini, Carlos F. ;
Barbero, Leticia ;
Bates, Nicholas R. ;
Bianchi, Alejandro A. ;
Bonou, Frederic ;
Boutin, Jacqueline ;
Bozec, Yann ;
Burger, Eugene F. ;
Cai, Wei-Jun ;
Castle, Robert D. ;
Chen, Liqi ;
Chierici, Melissa ;
Currie, Kim ;
Evans, Wiley ;
Featherstone, Charles ;
Feely, Richard A. ;
Fransson, Agneta ;
Goyet, Catherine ;
Greenwood, Naomi ;
Gregor, Luke ;
Hankin, Steven ;
Hardman-Mountford, Nick J. ;
Harlay, Jerome ;
Hauck, Judith ;
Hoppema, Mario ;
Humphreys, Matthew P. ;
Hunt, ChristopherW. ;
Huss, Betty ;
Ibanhez, J. Severino P. ;
Johannessen, Truls .
EARTH SYSTEM SCIENCE DATA, 2016, 8 (02) :383-413
[6]  
Bradbury J., 2018, JAX COMPOSABLE TRANS
[7]  
Branson O., 2018, **DATA OBJECT**, DOI 10.5281/zenodo.1402261
[8]   FATE OF FOSSIL-FUEL CARBON-DIOXIDE AND THE GLOBAL CARBON BUDGET [J].
BROECKER, WS ;
TAKAHASHI, T ;
SIMPSON, HJ ;
PENG, TH .
SCIENCE, 1979, 206 (4417) :409-418
[9]   Redox reactions and weak buffering capacity lead to acidification in the Chesapeake Bay [J].
Cai, Wei-Jun ;
Huang, Wei-Jen ;
Luther, George W., III ;
Pierrot, Denis ;
Li, Ming ;
Testa, Jeremy ;
Xue, Ming ;
Joesoef, Andrew ;
Mann, Roger ;
Brodeur, Jean ;
Xu, Yuan-Yuan ;
Chen, Baoshan ;
Hussain, Najid ;
Waldbusser, George G. ;
Cornwell, Jeffrey ;
Kemp, W. Michael .
NATURE COMMUNICATIONS, 2017, 8
[10]   The chemistry, fluxes, and sources of carbon dioxide in the estuarine waters of the Satilla and Altamaha Rivers, Georgia [J].
Cai, WJ ;
Wang, Y .
LIMNOLOGY AND OCEANOGRAPHY, 1998, 43 (04) :657-668