earthkit.meteo.thermo.array.vapour_pressure_from_specific_humidity

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

Compute the vapour pressure from specific humidity.

Parameters:
  • q (number or array-like) – Specific humidity (kg/kg)

  • p (number or array-like) – Pressure (Pa)

Returns:

Vapour pressure (Pa)

Return type:

number or array-like

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

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

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