earthkit.meteo.thermo.xarray.relative_humidity_from_dewpoint¶
- earthkit.meteo.thermo.xarray.relative_humidity_from_dewpoint(t, td)¶
Compute the relative humidity from dewpoint temperature.
- Parameters:
t (
xarray.DataArray) – Temperature (K)td (
xarray.DataArray) – Dewpoint (K)
- Returns:
Relative humidity (%)
- Return type:
xarray.DataArray
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.