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 oftd. Otherwise, iftdis a FieldListpmust be a FieldList or an array-like of the same length astd. Iftdis a Field,pmust 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:
\(e\) is the vapour pressure (see
vapour_pressure_from_specific_humidity())\(e_{wsat}\) is the
saturation_vapour_pressure()over water\(q\) is the specific humidity
Then q is computed from \(e\) using
specific_humidity_from_vapour_pressure().