earthkit.meteo.thermo.xarray.relative_humidity_from_specific_humidity

earthkit.meteo.thermo.xarray.relative_humidity_from_specific_humidity(t, q, p)

Compute the relative humidity from specific humidity.

Parameters:
Returns:

Relative humidity (%)

Return type:

xarray.DataArray

The computation is based on the following formula:

\[r = 100 \frac {e(q, p)}{e_{msat}(t)}\]

where: