Calculate dewpoint temperature \(T_d\) (°C) from air temperature \(T\) (°C) and relative humidity \(RH\) (%).
Details
The dewpoint temperature \(T_d\) (°C) is the temperature at which air becomes saturated (relative humidity reaches 100%). This function uses the approximation derived from the Clausius–Clapeyron equation:
$$e_s = 6.108 \cdot exp(\frac{17.27 \cdot T}{T + 237.3})$$
$$T_d = \frac{237.3 \cdot \ln\left(\frac{e_s \cdot RH}{611}\right)}{7.5 \cdot \ln(10) - \ln\left(\frac{e_s \cdot RH}{611}\right)}$$
where:
\(T\) is air temperature (°C),
\(e_s\) is the saturation vapor pressure in hPa,
\(RH\) is relative humidity in %.
The temperature input is converted to degree Celsius (°C) based on
the provided t_unit
before calculation.
References
National Weather Service. Wet-bulb Temperature and Dewpoint Temperature from Air Temperature and Relative Humidity. Retrieved from https://www.weather.gov/media/epz/wxcalc/wetBulbTdFromRh.pdf