easyclimate.physics.moisture.dewpoint

Dewpoint

Functions

calc_dewpoint(→ xarray.DataArray)

Calculate the ambient dew point temperature given the vapor pressure.

Module Contents

easyclimate.physics.moisture.dewpoint.calc_dewpoint(vapor_pressure_data: xarray.DataArray, vapor_pressure_data_units: Literal['hPa', 'Pa', 'mbar']) xarray.DataArray

Calculate the ambient dew point temperature given the vapor pressure.

This function inverts the Bolton (1980) formula for saturation vapor pressure to instead calculate the temperature. This yields the following formula for dewpoint in degrees Celsius, where \(e\) is the ambient vapor pressure in millibars:

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

Parameters

vapor_pressure_data: xarray.DataArray.

Water vapor partial pressure.

vapor_pressure_data_units: str.

The unit corresponding to vapor_pressure_data value. Optional values are hPa, Pa.

Returns

The dew point ( \(\\mathrm{degC}\) ).

xarray.DataArray

See also