...
Mathdisplay |
---|
w = \frac{q}{1 - q} |
Anchor mixing_ratio_from_vapour_pressure mixing_ratio_from_vapour_pressure
number mixing_ratio_from_vapour_pressure(p: number, e: number)
Computes the mixing ratio from the given (total) pressure and vapour pressure, where
p
: pressure (Pa)e
: vapour pressure (Pa)
The result is the mixing ratio in kg/kg units. On error nil
is returned. The computation is based on the following formula:
Mathdisplay |
---|
w = \epsilon \frac{e}{p - e} |
with
Mathinline |
---|
\epsilon = \frac{R_{dry}}{R_{vapour}} = 0.621981 |
Anchor potential_temperature potential_temperature
...