mixing_ratio_from_specific_humidity¶
-
metpy.calc.
mixing_ratio_from_specific_humidity
(specific_humidity)[source]¶ Calculate the mixing ratio from specific humidity.
- Parameters
specific_humidity (
pint.Quantity
) – Specific humidity of air- Returns
pint.Quantity
– Mixing ratio
Notes
Formula from [Salby1996] pg. 118.
\[w = \frac{q}{1-q}\]\(w\) is mixing ratio
\(q\) is the specific humidity