-
Notifications
You must be signed in to change notification settings - Fork 149
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
A problem about calculating DLS_irradiance, a bug? #19
Comments
The results came from running the code in tutorial 3 and “Capture.dls_irradiance()” function in capture.py are totally different. |
Good catch. The library code was updated to fix that bug but we missed it
in the tutorial. The library code should be the correct implementation.
…On Sat, Sep 8, 2018, 08:58 yellowpuppy ***@***.***> wrote:
The results came from running the code in tutorial 3 and
“Capture.dls_irradiance()” function in capture.py are totally different.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGTc086FGXCyJYpwTdoAUSQZO4cT_S1jks5uY-klgaJpZM4Wf7R6>
.
|
Hi, |
Fixed in c1483c4 |
As the introduction in tutorial3.ipynb , in Cell 3,
# compute irradiance on the ground using the solar altitude angle
dls_irr = untilted_direct_irr * (percent_diffuse + np.sin(solar_elevation))
The DLS_irr was calculated by "sin" of solar_elevation.
However, in capture.py , line 162
# compute irradiance on the ground using the solar altitude angle
ground_irr = untiltied_direct_irr * (percent_diffuse + np.cos (self.solar_elevation))
The same var was calculated by "cos" of solar_elevation.
This is a bug and which one is correct? Anyone can help me?
The text was updated successfully, but these errors were encountered: