pvlib.atmosphere.rh_from_tdew#
- pvlib.atmosphere.rh_from_tdew(temp_air, temp_dew, coeff=(6.112, 17.62, 243.12))[source]#
Calculate relative humidity from dewpoint temperature using the Magnus equation.
- Parameters:
- Returns:
numeric – Relative humidity (0.0-100.0). [%]
Notes
Relative humidity is computed as
100 * e / es, whereeis the saturation vapor pressure at the dew point temperature, andesis the saturation vapor pressure at the air temperature, both from the Magnus equationA * exp(B * T / (C + T)). The default coefficients(A, B, C) = (6.112, 17.62, 243.12)are the WMO-recommended Magnus form for saturation over liquid water, valid for temperatures from -45 to +60 °C [1]; see [2] for the approximation and its accuracy.References