Closed
Description
Hi,
I tried to look for previous issues that address this question ( #24 and #6 ) but I don't think they did.
I noticed that a threshold was used on zenith values in the DISC model above which the calculated DNI was set to 0.
https://github.com/pvlib/pvlib-python/blob/master/pvlib/irradiance.py#L1158
dni = np.where((zenith > 87) | (ghi < 0) | (dni < 0), 0, dni)
Does the condition (zenith > 87)
come from the original model or was it implemented to filter potential outliers? In which case why 87
? And can we create a function argument that would allow us to use different threshold values?
Thanks!