...
number mixing_ratio(q: number)
vector mixing_ratio(q: vector)
fieldset mixing_ratio(q: fieldset)
Computes the mixing ratio from the given specific humidity, where
...
where e
wsat is the saturation vapour pressure over water.
Anchor saturation_mixing_ratio saturation_mixing_ratio
number saturation_mixing_ratio(t: number, p: number)
number saturation_mixing_ratio(t: number, p: number, phase)
vector saturation_vmixing_ratio(t: vector, p: vector)
vector saturation_mixing_ratio(t: vector, p: vector, phase)
fieldset saturation_mixing_ratio(t: fieldset, p: fieldset)
fieldset saturation_mixing_ratio(t: fieldset, p: fieldset, phase)
Computes the saturation mixing ratio for a given temperature, pressure and
...
phase where
t
: the temperature (K)- p: the pressure (Pa)
phase
: is either "water", "ice" or "mixed". When it is not specified the "water" phase is used.
The result is the saturation mixing ratio in kg/kg units. On error nil
is returned. The computation is implemented via the following function calls:
ws = mixing_ratio(p, saturation_vapour_pressure(t, phase))
Anchor saturation_vapour_pressure saturation_vapour_pressure
...
number saturation_vapour_pressure(t: number, phase)
vector saturation_vapour_pressure(t: vector)
vector saturation_vapour_pressure(t: vector, phase)
fieldset saturation_vapour_pressure(t: fieldset)
fieldset saturation_vapour_pressure(t: fieldset, phase)
Computes the saturation vapour pressure for a given temperature and phase, where
...
number vapour_pressure(q: number, p: number)
vector vapour_pressure(q: vector, p: vector)
fieldset vapour_pressure(q: fieldset, p: fieldset)
Computes the vapour pressure for a given specific humidity and pressure, where
...