<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "https://jats.nlm.nih.gov/nlm-dtd/publishing/3.0/journalpublishing3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article" specific-use="SMUR" dtd-version="3.0" xml:lang="en">
<front>
<journal-meta>
<journal-id journal-id-type="publisher">EGUsphere</journal-id>
<journal-title-group>
<journal-title>EGUsphere</journal-title>
<abbrev-journal-title abbrev-type="publisher">EGUsphere</abbrev-journal-title>
<abbrev-journal-title abbrev-type="nlm-ta">EGUsphere</abbrev-journal-title>
</journal-title-group>
<issn pub-type="epub"></issn>
<publisher><publisher-name>Copernicus Publications</publisher-name>
<publisher-loc>Göttingen, Germany</publisher-loc>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.5194/egusphere-2026-3561</article-id>
<title-group>
<article-title>The diathermohaline stream function method for investigating the water mass transformation of the global ocean circulation (v2026.1)</article-title>
</title-group>
<contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Jung</surname>
<given-names>Verena</given-names>
<ext-link>https://orcid.org/0009-0004-8615-6512</ext-link>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Aldama Campino</surname>
<given-names>Aitor</given-names>
</name>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Kjellsson</surname>
<given-names>Joakim</given-names>
<ext-link>https://orcid.org/0000-0002-6405-5276</ext-link>
</name>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Döös</surname>
<given-names>Kristofer</given-names>
<ext-link>https://orcid.org/0000-0002-1309-5921</ext-link>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
</contrib-group><aff id="aff1">
<label>1</label>
<addr-line>Department of Meteorology, and Bolin Centre for Climate Research, Stockholm University, SE</addr-line>
</aff>
<aff id="aff2">
<label>2</label>
<addr-line>Rossby Center, Swedish Meteorological and Hydrological Institute, SE</addr-line>
</aff>
<pub-date pub-type="epub">
<day>30</day>
<month>06</month>
<year>2026</year>
</pub-date>
<volume>2026</volume>
<fpage>1</fpage>
<lpage>30</lpage>
<permissions>
<copyright-statement>Copyright: &#x000a9; 2026 Verena Jung et al.</copyright-statement>
<copyright-year>2026</copyright-year>
<license license-type="open-access">
<license-p>This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this licence, visit <ext-link ext-link-type="uri"  xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link></license-p>
</license>
</permissions>
<self-uri xlink:href="https://egusphere.copernicus.org/preprints/2026/egusphere-2026-3561/">This article is available from https://egusphere.copernicus.org/preprints/2026/egusphere-2026-3561/</self-uri>
<self-uri xlink:href="https://egusphere.copernicus.org/preprints/2026/egusphere-2026-3561/egusphere-2026-3561.pdf">The full text article is available as a PDF file from https://egusphere.copernicus.org/preprints/2026/egusphere-2026-3561/egusphere-2026-3561.pdf</self-uri>
<abstract>
<p>In this work, we present a source code for computing the diathermohaline stream function, enabling the analysis of Water Mass Transformation from gridded ocean data within the thermohaline framework. This implementation extends previous versions by increasing the precision of the projection from geographical to thermohaline space. Using Helmholtz decomposition, the stream function represents the rotational component of thermohaline transformation vectors, while the divergent component defines the tendency potential. We show that the dominant global driver of the tendency potential is the net freshwater imbalance across the ocean boundary. Together, the tendency potential and the diathermohaline stream function provide a powerful yet underutilized method for comparing global Water Mass Transformation across ocean models. We demonstrate the utility of this framework using data from a coupled climate model, hindcast simulations, and an ocean reanalysis product, all based on the NEMO ocean model and spanning multiple spatial resolutions. The implementation is modular and user friendly, facilitating straightforward application to a wide range of oceanographic data sets. The code can also be applied to study water mass transformation using any tracer coordinates and to compute the meridional overturning stream function for generalised coordinates.</p>
</abstract>
<counts><page-count count="30"/></counts>
<funding-group>
<award-group id="gs1">
<funding-source>Swedish National Space Agency</funding-source>
<award-id>2022-00141</award-id>
</award-group>
</funding-group>
</article-meta>
</front>
<body/>
<back>
</back>
</article>