specific_humidity_from_mixing_ratio#

metpy.calc.specific_humidity_from_mixing_ratio(mixing_ratio)#

Calculate the specific humidity from the mixing ratio.

Parameters

mixing_ratio (pint.Quantity) – Mixing ratio

Returns

pint.Quantity – Specific humidity

Notes

Formula from [Salby1996] pg. 118.

\[q = \frac{w}{1+w}\]
  • \(w\) is mixing ratio

  • \(q\) is the specific humidity