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 (
numberorarray-like) – Specific humidity (kg/kg)p (
numberorarray-like) – Pressure (Pa)
- Returns:
Vapour pressure (Pa)
- Return type:
numberorarray-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).