Skip to content

Commit e9e4723

Browse files
committed
Address rh_from_tdew review wording
1 parent 19ae5f1 commit e9e4723

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

docs/sphinx/source/whatsnew/v0.15.2.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ Documentation
5858
:py:func:`pvlib.clearsky.lookup_linke_turbidity` (:issue:`2598`, :pull:`2746`)
5959
* Clarifies the variable naming, comments and references in
6060
:py:func:`pvlib.atmosphere.rh_from_tdew` (and the related comments in
61-
:py:func:`pvlib.atmosphere.tdew_from_rh`) so the actual and saturation vapor
62-
pressures are no longer swapped in the source. The returned values are
61+
:py:func:`pvlib.atmosphere.tdew_from_rh`) related to the actual
62+
and saturation vapor pressures. Function output is
6363
unchanged. (:issue:`2734`, :pull:`2782`)
6464

6565

pvlib/atmosphere.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,9 @@ def rh_from_tdew(temp_air, temp_dew, coeff=(6.112, 17.62, 243.12)):
365365
366366
Notes
367367
-----
368-
Relative humidity is computed as ``100 * e / es``, where the actual vapor
369-
pressure ``e`` is the saturation vapor pressure at the dew point and the
370-
saturation vapor pressure ``es`` is evaluated at the air temperature, both
368+
Relative humidity is computed as ``100 * e / es``, where ``e`` is the
369+
saturation vapor pressure at the dew point temperature, and ``es``
370+
is the saturation vapor pressure at the air temperature, both
371371
from the Magnus equation ``A * exp(B * T / (C + T))``. The default
372372
coefficients ``(A, B, C) = (6.112, 17.62, 243.12)`` are the WMO-recommended
373373
Magnus form for saturation over liquid water, valid for temperatures from

0 commit comments

Comments
 (0)