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