vapor_pressure

metpy.calc.vapor_pressure(pressure, mixing)[source]

Calculate water vapor (partial) pressure.

Given total pressure and water vapor mixing ratio, calculates the partial pressure of water vapor.

Parameters:
  • pressure (pint.Quantity) – total atmospheric pressure
  • mixing (pint.Quantity) – dimensionless mass mixing ratio
Returns:

pint.Quantity – The ambient water vapor (partial) pressure in the same units as pressure.

Notes

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

\[e = p \frac{r}{r + \epsilon}\]

Examples using metpy.calc.vapor_pressure