Using Kgen to Generate Cross-Verified Apparent Equilibrium Constants (K∗’s) for Palaeoseawater Carbonate Chemistry

IF 2.9 2区 地球科学 Q2 GEOCHEMISTRY & GEOPHYSICS
Ross Whiteford, Oscar Branson, Dennis Mayk
{"title":"Using Kgen to Generate Cross-Verified Apparent Equilibrium Constants (K∗’s) for Palaeoseawater Carbonate Chemistry","authors":"Ross Whiteford,&nbsp;Oscar Branson,&nbsp;Dennis Mayk","doi":"10.1029/2023GC011417","DOIUrl":null,"url":null,"abstract":"<p>Quantification of palaeo pH and palaeo CO<sub>2</sub> from marine proxies requires the use of apparent equilibrium constants (K<sup>∗</sup>’s). The K<sup>∗</sup>’s required to calculate seawater carbonate chemistry are described by empirically determined calibrations, and for palaeoseawater these calibrations must be adjusted to account for changes in seawater composition. There are a number of possible calibrations that can be used to calculate K<sup>∗</sup>’s, and each software package for calculating carbonate chemistry separately implements these K<sup>∗</sup> calibrations, which are manually verified against previous implementations. Palaeo applications typically only implement a single calibration for each K<sup>∗</sup>, but have additional complexity from the need to adjust each calibration for changing seawater composition through time. The fragmented approach to K<sup>∗</sup> calculation can result in unintended and difficult to resolve discrepancies between outputs calculated by different pieces of software. We present “Kgen,” a synchronised collection of three pieces of software to consistently calculate palaeoseawater K<sup>∗</sup>’s in Python, R, and Matlab. Kgen provides a simple, and nearly identical interface in each language. Through use of a Continuous Integration/Continuous Delivery (CI/CD) pipeline, Kgen guarantees consistent outputs between languages by automatically cross-checking results from all three implementations. Unifying the approach to K<sup>∗</sup> calculation in this way provides an extensible platform for verifiable K<sup>∗</sup> generation for palaeoseawater, which can be integrated into existing carbon speciation calculators to improve the consistency of results.</p>","PeriodicalId":50422,"journal":{"name":"Geochemistry Geophysics Geosystems","volume":"26 6","pages":""},"PeriodicalIF":2.9000,"publicationDate":"2025-06-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://onlinelibrary.wiley.com/doi/epdf/10.1029/2023GC011417","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Geochemistry Geophysics Geosystems","FirstCategoryId":"89","ListUrlMain":"https://onlinelibrary.wiley.com/doi/10.1029/2023GC011417","RegionNum":2,"RegionCategory":"地球科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"GEOCHEMISTRY & GEOPHYSICS","Score":null,"Total":0}
引用次数: 0

Abstract

Quantification of palaeo pH and palaeo CO2 from marine proxies requires the use of apparent equilibrium constants (K’s). The K’s required to calculate seawater carbonate chemistry are described by empirically determined calibrations, and for palaeoseawater these calibrations must be adjusted to account for changes in seawater composition. There are a number of possible calibrations that can be used to calculate K’s, and each software package for calculating carbonate chemistry separately implements these K calibrations, which are manually verified against previous implementations. Palaeo applications typically only implement a single calibration for each K, but have additional complexity from the need to adjust each calibration for changing seawater composition through time. The fragmented approach to K calculation can result in unintended and difficult to resolve discrepancies between outputs calculated by different pieces of software. We present “Kgen,” a synchronised collection of three pieces of software to consistently calculate palaeoseawater K’s in Python, R, and Matlab. Kgen provides a simple, and nearly identical interface in each language. Through use of a Continuous Integration/Continuous Delivery (CI/CD) pipeline, Kgen guarantees consistent outputs between languages by automatically cross-checking results from all three implementations. Unifying the approach to K calculation in this way provides an extensible platform for verifiable K generation for palaeoseawater, which can be integrated into existing carbon speciation calculators to improve the consistency of results.

用Kgen生成古海水碳酸盐化学的交叉验证表观平衡常数(K * s)
海洋代用物对古pH和古CO2的量化需要使用表观平衡常数(K * s)。计算海水碳酸盐化学所需的K *是由经验确定的校准来描述的,对于古海水,这些校准必须进行调整以考虑海水成分的变化。有许多可能的校准可用于计算K *,并且用于计算碳酸盐化学的每个软件包分别实现这些K *校准,这些校准与以前的实现进行手动验证。古应用通常只对每个K *进行一次校准,但由于需要根据时间变化的海水成分调整每次校准,因此具有额外的复杂性。K *计算的碎片化方法可能导致不同软件计算的输出之间出现意想不到且难以解决的差异。我们提出了“Kgen”,这是一个由三种软件组成的同步集合,可以在Python、R和Matlab中一致地计算古海水K *。Kgen在每种语言中都提供了一个简单且几乎相同的界面。通过使用持续集成/持续交付(CI/CD)管道,Kgen通过自动交叉检查所有三种实现的结果来保证语言之间的一致输出。以这种方式统一K∗计算方法为可验证的古海水K∗生成提供了一个可扩展的平台,可以将其集成到现有的碳物种形成计算器中,以提高结果的一致性。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Geochemistry Geophysics Geosystems
Geochemistry Geophysics Geosystems 地学-地球化学与地球物理
CiteScore
5.90
自引率
11.40%
发文量
252
审稿时长
1 months
期刊介绍: Geochemistry, Geophysics, Geosystems (G3) publishes research papers on Earth and planetary processes with a focus on understanding the Earth as a system. Observational, experimental, and theoretical investigations of the solid Earth, hydrosphere, atmosphere, biosphere, and solar system at all spatial and temporal scales are welcome. Articles should be of broad interest, and interdisciplinary approaches are encouraged. Areas of interest for this peer-reviewed journal include, but are not limited to: The physics and chemistry of the Earth, including its structure, composition, physical properties, dynamics, and evolution Principles and applications of geochemical proxies to studies of Earth history The physical properties, composition, and temporal evolution of the Earth''s major reservoirs and the coupling between them The dynamics of geochemical and biogeochemical cycles at all spatial and temporal scales Physical and cosmochemical constraints on the composition, origin, and evolution of the Earth and other terrestrial planets The chemistry and physics of solar system materials that are relevant to the formation, evolution, and current state of the Earth and the planets Advances in modeling, observation, and experimentation that are of widespread interest in the geosciences.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信