earthkit.meteo.thermo.fieldlist.specific_humidity_from_dewpoint

earthkit.meteo.thermo.fieldlist.specific_humidity_from_dewpoint(td, p=None)

Compute the specific humidity from dewpoint.

Parameters:
  • td (FieldList|Field) – Dewpoint (K).

  • p (FieldList|Field|Iterable[float]|float|None) – Pressure (Pa). If None, inferred from the field metadata of td. Otherwise, if td is a FieldList p must be a FieldList or an array-like of the same length as td. If td is a Field, p must be a single Field or a float.

Returns:

Specific humidity (kg/kg). The result has the same type as the input td (FieldList or Field).

Return type:

FieldList|Field

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().