earthkit.meteo.thermo.array.specific_humidity_from_dewpoint

earthkit.meteo.thermo.array.specific_humidity_from_dewpoint(td, p)

Compute the specific humidity from dewpoint.

Parameters:
  • td (array-like) – Dewpoint (K)

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

Returns:

Specific humidity (kg/kg)

Return type:

array-like

The computation starts with determining the vapour pressure:

\[e(q, p) = e_{wsat}(td)\]

where:

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