geocat.comp.meteorology.relhum
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://www.osti.gov/scitech/servlets/purl/548871/ https://doi.org/10.2172/548871
- 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 astemperaturepressure (
numpy.ndarray,xarray.DataArray,list, orfloat) – Pressure in Pa. Must have the same dimensions astemperature
- Returns
relative_humidity (
numpy.ndarrayorxarray.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