earthkit.meteo.thermo.relative_humidity_from_dewpoint

earthkit.meteo.thermo.relative_humidity_from_dewpoint(t: ArrayLike, td: ArrayLike) ArrayLike
earthkit.meteo.thermo.relative_humidity_from_dewpoint(t: xarray.DataArray, td: xarray.DataArray) xarray.DataArray
earthkit.meteo.thermo.relative_humidity_from_dewpoint(t: earthkit.data.FieldList, td: earthkit.data.FieldList) earthkit.data.FieldList

Compute the relative humidity from dewpoint temperature.

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

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

Returns:

Relative humidity (%)

Return type:

array-like

The computation is based on the following formula:

\[r = 100 \frac {e_{wsat}(td)}{e_{wsat}(t)}\]

where \(e_{wsat}\) is the saturation_vapour_pressure() over water.

Implementations

relative_humidity_from_dewpoint() calls one of the following implementations depending on the type of the input arguments:

The function returns an object of the same type as the input arguments.