specific_humidity_from_mixing_ratio¶
-
metpy.calc.
specific_humidity_from_mixing_ratio
(mixing_ratio)[source]¶ 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