earthkit.meteo.thermo.array.specific_humidity_from_vapour_pressure¶
- earthkit.meteo.thermo.array.specific_humidity_from_vapour_pressure(e, p, eps=0.0001)¶
Compute the specific humidity from vapour pressure.
- Parameters:
e (
numberorarray-like) – Vapour pressure (Pa)p (
numberorarray-like) – Pressure (Pa)eps (
number) – Where p - e <epsnan is returned.
- Returns:
Specific humidity (kg/kg)
- Return type:
numberorarray-like
The computation is based on the following formula:
\[q = \frac{\epsilon e}{p + e(\epsilon-1)}\]with \(\epsilon = R_{d}/R_{v}\) (see
earthkit.meteo.constants.epsilon).