saturation_mixing_ratio
- saturation_mixing_ratio(t, p[, phase])
Computes the saturation mixing ratio for a given temperature (
t
), pressure (p
) andphase
.- Parameters
- Return type
same type as
t
or None
The result is the saturation mixing ratio in kg/kg units. On error None is returned. The following rules are applied when
t
is aFieldset
:if
t
is a pressure levelFieldset
nop
is neededif
t
is defined on ECMWF model levels (hybrid/eta)p
must be either a single LNSP (logarithm of surface pressure, identified by paramId=152) field or aFieldset
defining the pressure on the same levels ast
for other level types
p
must be aFieldset
defining the pressure on the same levels ast
The computation is implemented via calling
mixing_ratio()
andsaturation_vapour_pressure()
:ws = mv.mixing_ratio(p, mv.saturation_vapour_pressure(t, phase))