Skip to content
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

Update SunDaily.py #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions SunDaily.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,15 +194,15 @@
R21 = GUSEV[J2][I1] # [AziDiff2] [Elev1]
R22 = GUSEV[J2][I2] # [AziDiff2] [Elev2]

R110 = (R11 - R12) / 15 # [AziDiff1] [Elev1] - [AziDiff1] [Elev2]
R220 = (R21 - R22) / 15 # # [AziDiff2] [Elev1] - [AziDiff1] [Elev2]
R110 = (R11 - R12) / 15.0 # [AziDiff1] [Elev1] - [AziDiff1] [Elev2]
R220 = (R21 - R22) / 15.0 # # [AziDiff2] [Elev1] - [AziDiff1] [Elev2]

R01 = R11 - R110 * Elev_diff
R02 = R21 - R220 * Elev_diff

R0012 = (R02 - R01) / 15
R0012 = (R02 - R01) / 15.0

R_sky = (R01 + R0012 * Alf_diff) / 100 # irradiance on a vertical surface related to horizontal irradiance by clear sky only
R_sky = (R01 + R0012 * Alf_diff) / 100.0 # irradiance on a vertical surface related to horizontal irradiance by clear sky only

# Sky irradiance
Surface_sky = Horizontal_sky * R_sky
Expand Down