geocat.comp.meteorology.relhum#
- geocat.comp.meteorology.relhum(temperature, mixing_ratio, pressure)#
This function calculates the relative humidity given temperature, mixing ratio, and pressure.
“Improved Magnus’ Form Approx. of Saturation Vapor pressure” Oleg A. Alduchov and Robert E. Eskridge https://journals.ametsoc.org/view/journals/apme/35/4/1520-0450_1996_035_0601_imfaos_2_0_co_2.xml
- Parameters:
temperature (
numpy.ndarray
,xarray.DataArray
,list
, orfloat
) – Temperature in Kelvinmixing_ratio (
numpy.ndarray
,xarray.DataArray
,list
, orfloat
) – Mixing ratio in kg/kg. Must have the same dimensions astemperature
pressure (
numpy.ndarray
,xarray.DataArray
,list
, orfloat
) – Pressure in Pa. Must have the same dimensions astemperature
- Returns:
relative_humidity (
numpy.ndarray
orxarray.DataArray
) – Relative humidity. Will have the same dimensions astemperature
See also
Related GeoCAT Functions: _xrelhum, relhum_ice, relhum_water
Related NCL Functions: relhum, relhum_ttd, relhum_ice, relhum_water