The docstring for pvlib.irradiance._calc_delta currently states:
Compute the delta parameter, which represents sky dome "brightness" in the Perez and Perez-Driesse models.
This is somewhat misleading, because this function is not currently used In the pvlib.irradiance.perez function. Perhaps it should be? If not, then I suggest updating the language. (_calc_zeta's docstring notably only mentions Perez-Driesse.)
In addition, after a helpful communication with @adriesse, it seems that the inaugural pvlib.irradiance.perez function does not indicate in its doctoring that kastenyoung1989 is (apparently) the preferred method for computing the airmass parameter.
Was there ever a discussion about aligning the airmass input, its (default) calculation, and the delta calculation between pvlib.irradiance.perez and pvlib.irradiance.perez_driesse?
(Same question could be made for zeta and _calc_zeta usage, I suppose.)
I have been somewhat frustrated by the divergence in behavior of perez and perez-driesse, with the latter seeming to have better safeguards in place. This was much of the impetus behind #2808.
The docstring for
pvlib.irradiance._calc_deltacurrently states:This is somewhat misleading, because this function is not currently used In the
pvlib.irradiance.perezfunction. Perhaps it should be? If not, then I suggest updating the language. (_calc_zeta's docstring notably only mentions Perez-Driesse.)In addition, after a helpful communication with @adriesse, it seems that the inaugural
pvlib.irradiance.perezfunction does not indicate in its doctoring thatkastenyoung1989is (apparently) the preferred method for computing theairmassparameter.Was there ever a discussion about aligning the
airmassinput, its (default) calculation, and thedeltacalculation betweenpvlib.irradiance.perezandpvlib.irradiance.perez_driesse?(Same question could be made for
zetaand_calc_zetausage, I suppose.)I have been somewhat frustrated by the divergence in behavior of
perezandperez-driesse, with the latter seeming to have better safeguards in place. This was much of the impetus behind #2808.