earthkit.meteo.thermo.array.vapour_pressure_from_mixing_ratio¶
- earthkit.meteo.thermo.array.vapour_pressure_from_mixing_ratio(w, p)¶
Compute the vapour pressure from mixing ratio.
- Parameters:
w (
numberorarray-like) – Mixing ratio (kg/kg)p (
numberorarray-like) – Pressure (Pa)
- Returns:
Vapour pressure (Pa)
- Return type:
numberorarray-like
The computation is based on the following formula:
\[e = \frac{pw}{\epsilon + w}\]with \(\epsilon = R_{d}/R_{v}\) (see
earthkit.meteo.constants.epsilon).