earthkit.meteo.thermo.xarray.vapour_pressure_from_specific_humidity

earthkit.meteo.thermo.xarray.vapour_pressure_from_specific_humidity(q, p)

Compute the vapour pressure from specific humidity.

Parameters:
  • q (xarray.DataArray) – Specific humidity (kg/kg)

  • p (xarray.DataArray) – Pressure (Pa)

Returns:

Vapour pressure (Pa)

Return type:

xarray.DataArray

The computation is based on the following formula [Wallace2006]:

\[e = \frac{p q}{\epsilon (1 + q(\frac{1}{\epsilon} -1 ))}\]

with \(\epsilon = R_{d}/R_{v}\) (see earthkit.meteo.constants.epsilon).