MOM_temperature_convert module reference

Functions to convert between conservative and potential temperature

Functions/Subroutines

poTemp_to_consTemp

Convert input potential temperature [degC] and absolute salinity [g kg-1] to returned conservative temperature [degC] using the polynomial expressions from TEOS-10.

dTc_dTp

Return the partial derivative of conservative temperature with potential temperature [nondim] based on the polynomial expressions from TEOS-10.

consTemp_to_poTemp

Convert input potential temperature [degC] and absolute salinity [g kg-1] to returned conservative temperature [degC] by inverting the polynomial expressions from TEOS-10.

Detailed Description

Temperature conversions

This module has functions that convert potential temperature to conservative temperature and the reverse, as described in the TEOS-10 manual. This code was originally derived from their corresponding routines in the gsw code package, but has had some refactoring so that the answers are more likely to reproduce across compilers and levels of optimization. A complete discussion of the thermodynamics of seawater and the definition of conservative temperature can be found in IOC et al. (2010).

References

IOC, SCOR and IAPSO, 2010: The international thermodynamic equation of seawater - 2010: Calculation and use of thermodynamic properties. Intergovernmental Oceanographic Commission, Manuals and Guides No. 56, UNESCO (English), 196 pp. (Available from www.teos-10.org/pubs/TEOS-10_Manual.pdf)

Functions/Subroutine Documentation

elemental real function poTemp_to_consTemp(T, Sa) result(Tc)

Convert input potential temperature [degC] and absolute salinity [g kg-1] to returned conservative temperature [degC] using the polynomial expressions from TEOS-10.

Parameters
  • T [in]

    Potential temperature [degC]

  • Sa [in]

    Absolute salinity [g kg-1]

Callers call graph
Callers of mom_temperature_convert::potemp_to_constemp calls cluster_mom_eos MOM_EOS cluster_mom_temperature_convert MOM_temperature_convert mom_eos::convert_temp_salt_for_teos10 convert_temp_salt_for_TEOS10 mom_temperature_convert::potemp_to_constemp poTemp_to_consTemp mom_eos::convert_temp_salt_for_teos10->mom_temperature_convert::potemp_to_constemp mom_eos::pot_temp_to_cons_temp pot_temp_to_cons_temp mom_eos::pot_temp_to_cons_temp->mom_temperature_convert::potemp_to_constemp mom_temperature_convert::constemp_to_potemp consTemp_to_poTemp mom_temperature_convert::constemp_to_potemp->mom_temperature_convert::potemp_to_constemp
Text view
elemental real function dTc_dTp(T, Sa)

Return the partial derivative of conservative temperature with potential temperature [nondim] based on the polynomial expressions from TEOS-10.

Parameters
  • T [in]

    Potential temperature [degC]

  • Sa [in]

    Absolute salinity [g kg-1]

Callers call graph
Callers of mom_temperature_convert::dtc_dtp calls cluster_mom_temperature_convert MOM_temperature_convert mom_temperature_convert::constemp_to_potemp consTemp_to_poTemp mom_temperature_convert::dtc_dtp dTc_dTp [private/internal] mom_temperature_convert::constemp_to_potemp->mom_temperature_convert::dtc_dtp
Text view
elemental real function consTemp_to_poTemp(Tc, Sa) result(Tp)

Convert input potential temperature [degC] and absolute salinity [g kg-1] to returned conservative temperature [degC] by inverting the polynomial expressions from TEOS-10.

Parameters
  • Tc [in]

    Conservative temperature [degC]

  • Sa [in]

    Absolute salinity [g kg-1]

Callees call graph
Callees of mom_temperature_convert::constemp_to_potemp calls cluster_mom_temperature_convert MOM_temperature_convert mom_temperature_convert::constemp_to_potemp consTemp_to_poTemp mom_temperature_convert::dtc_dtp dTc_dTp [private/internal] mom_temperature_convert::constemp_to_potemp->mom_temperature_convert::dtc_dtp mom_temperature_convert::potemp_to_constemp poTemp_to_consTemp mom_temperature_convert::constemp_to_potemp->mom_temperature_convert::potemp_to_constemp
Text view
Callers call graph
Callers of mom_temperature_convert::constemp_to_potemp calls cluster_mom_eos MOM_EOS cluster_mom_temperature_convert MOM_temperature_convert mom_eos::cons_temp_to_pot_temp cons_temp_to_pot_temp mom_temperature_convert::constemp_to_potemp consTemp_to_poTemp mom_eos::cons_temp_to_pot_temp->mom_temperature_convert::constemp_to_potemp
Text view
API generated with Flint · Rendered from reStructuredText