Bug in absolute_humidity_from_dewpoint function
Bug in absolute_humidity_from_dewpoint
function: water_vapour_pressure_over_water_magnus
function is used instead of saturation_water_vapour_pressure_over_water_magnus
function.
Possible fix
def absolute_humidity_from_dewpoint(dewpoint_temperature):
r"""
Calculate the absolute humidity :math:`\rho_\mathrm{w}` from the dewpoint
temperature :math:`T_\mathrm{d}` like
:func:`absolute_humidity_from_water_vapour_pressure` using
:func:`saturation_water_vapour_pressure_over_water_magnus`:
.. math::
\rho_\mathrm{w} = \frac
{e_\mathrm{s,Magnus}\left(T_\mathrm{d}\right)}
{R_\mathrm{H_2O} \cdot T_\mathrm{d}}
"""
return absolute_humidity_from_water_vapour_pressure(
water_vapour_pressure=saturation_water_vapour_pressure_over_water_magnus(
temperature=dewpoint_temperature
),
temperature=dewpoint_temperature,
)