Skip to content

Commit d21c1b3

Browse files
AdamRJensencwhanseechedey-ls
authored
Add hint about Perez discontinuities (#2098)
* Add hint about Perez discontinuities * Update warning * Apply suggestions from code review Co-authored-by: Cliff Hansen <[email protected]> * Apply suggestions from code review Co-authored-by: Echedey Luis <[email protected]> --------- Co-authored-by: Cliff Hansen <[email protected]> Co-authored-by: Echedey Luis <[email protected]>
1 parent 35599e7 commit d21c1b3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pvlib/irradiance.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,11 @@ def get_sky_diffuse(surface_tilt, surface_azimuth,
404404
require ``'dni_extra'``. Values can be calculated using
405405
:py:func:`~pvlib.irradiance.get_extra_radiation`.
406406
407+
The ``'Perez'`` transposition model features discontinuities in the
408+
predicted tilted diffuse irradiance due to relying on discrete input
409+
values. For applications that benefit from continuous output, consider
410+
using :py:func:`~pvlib.irradiance.perez_driesse`.
411+
407412
The ``'perez'`` and ``'perez-driesse'`` models require relative airmass
408413
(``airmass``) as input. If ``airmass`` is not provided, it is calculated
409414
using the defaults in :py:func:`~pvlib.atmosphere.get_relative_airmass`.
@@ -1004,6 +1009,13 @@ def perez(surface_tilt, surface_azimuth, dhi, dni, dni_extra,
10041009
pressure-corrected) airmass. Optionally a selector may be used to
10051010
use any of Perez's model coefficient sets.
10061011
1012+
Warning
1013+
-------
1014+
The Perez transposition model features discontinuities in the
1015+
predicted tilted diffuse irradiance due to relying on discrete input
1016+
values. For applications that benefit from continuous output, consider
1017+
using :py:func:`~pvlib.irradiance.perez_driesse`.
1018+
10071019
Parameters
10081020
----------
10091021
surface_tilt : numeric

0 commit comments

Comments
 (0)