earthkit.meteo.thermo.array.specific_humidity_from_relative_humidity

earthkit.meteo.thermo.array.specific_humidity_from_relative_humidity(t, r, p)

Compute the specific humidity from relative_humidity.

Parameters:
  • t (array-like) – Temperature (K)

  • r (array-like) – Relative humidity(%)

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

Returns:

Specific humidity (kg/kg) units

Return type:

array-like

The computation starts with determining the the vapour pressure:

\[e(q, p) = r \frac{e_{msat}(t)}{100}\]

where:

  • \(e\) is the vapour pressure (see vapour_pressure())

  • \(e_{msat}\) is the saturation_vapour_pressure() based on the “mixed” phase

  • \(q\) is the specific humidity

Then \(q\) is computed from \(e\) using specific_humidity_from_vapour_pressure().