-
Notifications
You must be signed in to change notification settings - Fork 1.1k
DISC Knc out of range #450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@adriesse I'm a bit confused by
pvlib currently sets DNI to 0 if zenith > 87:
|
I guess I was looking at an earlier version where that test had Still, I would prefer a solution limiting air mass going into the Knc polynomial. I think then DISC should work ok until zenith=90. |
I forgot to mention that I added the following comment to _disc_kn when I refactored DISC to support GTI-DIRINT: # consider adding
# am = np.maximum(am, 12) # GH 450 I now realize that I got it wrong -- that should be @cwhanse you added the 0.6.1 milestone to this issue. Does that mean that you support adding the airmass limit to |
@wholmgren @adriesse Yes, let's put a |
Don't forget that I think I would prefer to see a hard-coded limit |
Thanks, I did forget this once I ran into an implementation issue. The issue is that
I also support a hard coded limit in I guess another option is add the kwarg to |
The expression for the DNI clearness index for clear conditions (Knc) is a polynomial fit over the air mass range 1 to 12. The values of this polynomial increase with air mass values > 17 and reach as high as 6 with air mass 37, which is clearly not realistic.
In the current DISC implementation air mass values up to 37 are allowed, and unrealistic DNI values appear when zenith > 88 / air mass > 19.
I suggest clipping zenith at 85 or 86 instead of clipping cos(zenith) to 0.065. This produces a more graceful transition to night time.
The text was updated successfully, but these errors were encountered: