MOM_temperature_convert module reference
Functions to convert between conservative and potential temperature
Functions/Subroutines
Convert input potential temperature [degC] and absolute salinity [g kg-1] to returned conservative temperature [degC] using the polynomial expressions from TEOS-10. |
|
Return the partial derivative of conservative temperature with potential temperature [nondim] based on the polynomial expressions from TEOS-10. |
|
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]
- 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
- 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]