# saturation_mixing_ratio¶

metpy.calc.saturation_mixing_ratio(total_press, temperature)[source]

Calculate the saturation mixing ratio of water vapor.

This calculation is given total atmospheric pressure and air temperature.

Parameters
Returns

pint.Quantity – Saturation mixing ratio, dimensionless

Notes

This function is a straightforward implementation of the equation given in many places, such as [Hobbs1977] pg.73:

$r_s = \epsilon \frac{e_s}{p - e_s}$

Changed in version 1.0: Renamed tot_press parameter to total_press