dewpoint

metpy.calc.dewpoint(e)[source]

Calculate the ambient dewpoint given the vapor pressure.

Parameters

e (pint.Quantity) – Water vapor partial pressure

Returns

pint.Quantity – dewpoint temperature

Notes

This function inverts the [Bolton1980] formula for saturation vapor pressure to instead calculate the temperature. This yield the following formula for dewpoint in degrees Celsius:

\[T = \frac{243.5 log(e / 6.112)}{17.67 - log(e / 6.112)}\]

Examples using metpy.calc.dewpoint