geocat.comp.meteorology.relhum_water#
- geocat.comp.meteorology.relhum_water(temperature, mixing_ratio, pressure)#
Calculates relative humidity with respect to water, given temperature, mixing ratio, and pressure.
Definition of mixing ratio if:
es - is the saturation mixing ratio
ep - is the ratio of the molecular weights of water vapor to dry air
p - is the atmospheric pressure
rh - is the relative humidity (given as a percent)
\[rh = 100 q / ( (ep*es)/(p-es) )\]- Parameters:
temperature (
xarray.DataArray,numpy.ndarray,list, orfloat) – Temperature in Kelvinmixing_ratio (
xarray.DataArray,numpy.ndarray,list, orfloat) – Mixing ratio in kg/kg. Must be same type and have the same dimensions astemperaturepressure (
xarray.DataArray,numpy.ndarray,list, orfloat) – Pressure in Pa. Must be same type and have the same dimensions astemperature
- Returns:
relative_humidity (
xarray.DataArray,numpy.ndarray,list, orfloat) – Relative humidity. Will have the same dimensions astemperature
See also
Related GeoCAT Functions:
relhum()_xrelhum()relhum_ice()relhum_water()Related NCL Functions: relhum, relhum_ttd, relhum_ice, relhum_water