xoa.core.thermdyn

xoa.core.thermdyn#

Numeric thermodynamics utilities based on gsw

Salinities are converted from and to the absolute salinity "asal", and temperatures from and to the conservative temperature "ctemp".

Kinds of temperature are "temp" (in situ), "ptemp" (potential) and "ctemp" (conservative), and kinds of salinity are "psal" (practical), "asal" (absolute) and "pfsal" (preformed).

Functions

convert_sal(sal, z, lat, lon, kind, to)

Convert a salinity from a kind to another one

convert_temp(temp, sal, z, lat, lon, kind, ...)

Convert a temperature in degrees Celsius from a kind to another one

from_ct(ct, kind, sa, p)

Convert a conservative temperature to a temperature of a given kind in degrees Celsius

from_sa(sa, kind, p, lon, lat)

Convert an absolute salinity in g/kg to a salinity of a given kind

n2_at_levels(temp, sal, z, lat, lon, ...[, axis])

Squared Brunt-Vaisala frequency at the levels of arrays whose vertical axis is axis

to_ct(temp, kind, sa, p)

Convert a temperature of a given kind in degrees Celsius to conservative temperature

to_sa(sal, kind, p, lon, lat)

Convert a salinity of a given kind to absolute salinity in g/kg