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
tor None
The result is the saturation mixing ratio in kg/kg units. On error None is returned. The following rules are applied when
tis aFieldset:if
tis a pressure levelFieldsetnopis neededif
tis defined on ECMWF model levels (hybrid/eta)pmust be either a single LNSP (logarithm of surface pressure, identified by paramId=152) field or aFieldsetdefining the pressure on the same levels astfor other level types
pmust be aFieldsetdefining 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))