relative_humidity_from_mixing_ratio

metpy.calc.relative_humidity_from_mixing_ratio(pressure, temperature, mixing_ratio)[source]

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

Parameters
Returns

pint.Quantity – Relative humidity

Notes

Formula based on that from [Hobbs1977] pg. 74.

\[relative_humidity = \frac{w}{w_s}\]
  • \(relative_humidity\) is relative humidity as a unitless ratio

  • \(w\) is mixing ratio

  • \(w_s\) is the saturation mixing ratio

Changed in version 1.0: Changed signature from (mixing_ratio, temperature, pressure)