earthkit.meteo.thermo.array.relative_humidity_from_specific_humidity¶
- earthkit.meteo.thermo.array.relative_humidity_from_specific_humidity(t, q, p)¶
Compute the relative humidity from specific humidity.
- Parameters:
t (
array-like) – Temperature (K)q (
array-like) – Specific humidity (kg/kg)p (
array-like) – Pressure (Pa)
- Returns:
Relative humidity (%)
- Return type:
array-like
The computation is based on the following formula:
\[r = 100 \frac {e(q, p)}{e_{msat}(t)}\]where:
\(e\) is the vapour pressure (see
vapour_pressure_from_specific_humidity())\(e_{msat}\) is the
saturation_vapour_pressure()based on the “mixed” phase