-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Negative "POA horizontal ratio" when sun behind array #641
Comments
Sorry, I realize I ran the example on an older version, but the new version looked the same here: https://pvlib-python.readthedocs.io/en/latest/_modules/pvlib/irradiance.html I guess that address currently is not showing the latest release? |
I believe that link shows the latest GitHub master. #535 went into 0.6.0, so I think release vs. master does not matter in this case. I might not have been clear before. My initial sky diffuse bug-fix proposal included limits in There may be applications where the negative value is useful (filtering data, bifacial), so I'm not convinced that this is really a bug. If we keep the behavior we could add a sentence to the documentation explaining the output when the sun is behind the panel. |
Ok, I'll just close this then. |
@adriesse would you suggest that we change the behavior or at least the documentation? If so, happy to keep the issue open. |
Slightly changing both would be best in my view. Allowing |
|
Describe the bug
The function
poa_horizontal_ratio
gives negative values when the sun is behind the array.To Reproduce
pvlib.irradiance.poa_horizontal_ratio(60, 90, 60, 270)
-0.99999999999999933
Expected behavior
pvlib.irradiance.poa_horizontal_ratio(60, 90, 60, 270)
0.0
Versions:
pvlib.__version__
: '0.5.2'pandas.__version__
: '0.19.2'Additional context
Similar problems were fixed in other irradiance functions already (#526).
The text was updated successfully, but these errors were encountered: