Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js
Preprints
https://doi.org/10.5194/egusphere-2025-458
https://doi.org/10.5194/egusphere-2025-458
11 Apr 2025
 | 11 Apr 2025
Status: this preprint is open for discussion and under review for Geoscientific Model Development (GMD).

PyESPERv1.01.01: A Python implementation of empirical seawater property estimation routines (ESPERs)

Larissa Marie Dias and Brendan Rae Carter

Abstract. This project produced a Python language implementation of locally interpolated regression (LIR) and neural network (NN) algorithms from empirical seawater property estimation routines (PyESPER). These routines estimate total alkalinity, dissolved inorganic carbon, total pH, nitrate, phosphate, silicate, and oxygen from geographic coordinates, depth, salinity, and 16 combinations of 0 to 4 additional predictors (temperature and biogeochemical information), and were previously available only in the MATLAB programming language. Here we document modifications to reduce discrepancies between the implementations, calculate the disagreements between the methods, and quantify Global Ocean Data Analysis Project (GLODAPv2.2022) reconstruction errors with PyESPER. While the PyESPER routine based on neural networks (PyESPER_NN) faithfully reproduces the corresponding MATLAB routine estimates of properties that do not require anthropogenic carbon change information, PyESPER_LIR and—to a lesser extent—PyESPER_NN estimates for total pH and dissolved inorganic carbon do not exactly reproduce the MATLAB routine estimates due to differences in interpolation and extrapolation methods between the programming languages. While the MATLAB and Python LIR-based estimates are not identical, we show that they are similarly skilled at reproducing the GLODAPv2.2022 data product and are thus comparable. This project increases the accessibility of ESPER algorithms by providing users with code in the freely available Python language and enables future ESPER updates to be released in multiple coding languages.

Publisher's note: Copernicus Publications remains neutral with regard to jurisdictional claims made in the text, published maps, institutional affiliations, or any other geographical representation in this preprint. The responsibility to include appropriate place names lies with the authors.
Share
Download
Short summary
The increasing availability of oceanographic physical and chemical data necessitates...
Share