mixing_ratio_from_relative_humidity

metpy.calc.mixing_ratio_from_relative_humidity(relative_humidity, temperature, pressure)[source]

Calculate the mixing ratio from relative humidity, temperature, and pressure.

Parameters
  • relative_humidity (array_like) – The relative humidity expressed as a unitless ratio in the range [0, 1]. Can also pass a percentage if proper units are attached.

  • temperature (pint.Quantity) – Air temperature

  • pressure (pint.Quantity) – Total atmospheric pressure

Returns

pint.Quantity – Dimensionless mixing ratio

Notes

Formula adapted from [Hobbs1977] pg. 74.

\[w = (RH)(w_s)\]
  • \(w\) is mixing ratio

  • \(RH\) is relative humidity as a unitless ratio

  • \(w_s\) is the saturation mixing ratio