/usr/lib/python3/dist-packages/gsw/conversions.py is in python3-gsw 3.2.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | """
Conversions involving temperature, salinity, entropy, pressure,
and height.
Those most commonly used probably include:
- :func:`gsw.CT_from_t`
- :func:`gsw.SA_from_SP`
- :func:`gsw.SP_from_C`
- :func:`gsw.p_from_z`
- :func:`gsw.z_from_p`
"""
__all__ = ['t90_from_t68',
'adiabatic_lapse_rate_from_CT',
'C_from_SP',
'CT_from_enthalpy',
'CT_from_entropy',
'CT_from_pt',
'CT_from_rho',
'CT_from_t',
'deltaSA_from_SP',
'entropy_from_pt',
'entropy_from_t',
'pt0_from_t',
'pt_from_CT',
'pt_from_entropy',
'pt_from_t',
'SA_from_rho',
'SA_from_SP',
'SA_from_Sstar',
'SP_from_C',
'SP_from_SA',
'SP_from_SK',
'SP_from_SR',
'SP_from_Sstar',
'SR_from_SP',
'Sstar_from_SA',
'Sstar_from_SP',
't_from_CT',
'p_from_z',
'z_from_p',
]
from ._utilities import match_args_return
from ._wrapped_ufuncs import (
adiabatic_lapse_rate_from_CT,
C_from_SP,
CT_from_enthalpy,
CT_from_entropy,
CT_from_pt,
CT_from_rho,
CT_from_t,
deltaSA_from_SP,
entropy_from_pt,
entropy_from_t,
pt0_from_t,
pt_from_CT,
pt_from_entropy,
pt_from_t,
SA_from_rho,
SA_from_SP,
SA_from_Sstar,
SP_from_C,
SP_from_SA,
SP_from_SK,
SP_from_SR,
SP_from_Sstar,
SR_from_SP,
Sstar_from_SA,
Sstar_from_SP,
t_from_CT,
p_from_z,
z_from_p,
)
@match_args_return
def t90_from_t68(t68):
"""
ITS-90 temperature from IPTS-68 temperature
This conversion should be applied to all in-situ
data collected between 1/1/1968 and 31/12/1989.
"""
return t68 / 1.00024
|