earthkit.meteo.thermo.dewpoint_from_relative_humidity¶
- earthkit.meteo.thermo.dewpoint_from_relative_humidity(t: ArrayLike, r: ArrayLike) ArrayLike¶
- earthkit.meteo.thermo.dewpoint_from_relative_humidity(t: xarray.DataArray, r: xarray.DataArray) xarray.DataArray
- earthkit.meteo.thermo.dewpoint_from_relative_humidity(t: earthkit.data.FieldList, r: earthkit.data.FieldList) earthkit.data.FieldList
Compute the dewpoint temperature from relative humidity.
- Parameters:
t (
array-like) – Temperature (K)r (
array-like) – Relative humidity (%)
- Returns:
Dewpoint temperature (K). For zero
rvalues returns nan.- Return type:
array-like
The computation starts with determining the the saturation vapour pressure over water at the dewpoint temperature:
\[e_{wsat}(td) = \frac{r e_{wsat}(t)}{100}\]where:
\(e_{wsat}\) is the
saturation_vapour_pressure()over water\(td\) is the dewpoint.
Then \(td\) is computed from \(e_{wsat}(td)\) by inverting the equations used in
saturation_vapour_pressure().Implementations¶
dewpoint_from_relative_humidity()calls one of the following implementations depending on the type of the input arguments:earthkit.meteo.thermo.array.dewpoint_from_relative_humidity()for array-likeearthkit.meteo.thermo.xarray.dewpoint_from_relative_humidity()for xarray.DataArrayearthkit.meteo.thermo.fieldlist.dewpoint_from_relative_humidity()for FieldList
The function returns an object of the same type as the input arguments.