Skip to content
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
14 changes: 7 additions & 7 deletions Utilities/SEBESOLWEIGCommonFiles/Perez_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,19 +144,19 @@ def Perez_v3(zen, azimuth, radD, radI, jday, patchchoice, patch_option):
# sky clearness bins
if PerezClearness < 1.065:
intClearness = 0
if PerezClearness > 1.065 and PerezClearness < 1.230:
elif PerezClearness < 1.230:
intClearness = 1
if PerezClearness > 1.230 and PerezClearness < 1.500:
elif PerezClearness < 1.500:
intClearness = 2
if PerezClearness > 1.500 and PerezClearness < 1.950:
elif PerezClearness < 1.950:
intClearness = 3
if PerezClearness > 1.950 and PerezClearness < 2.800:
elif PerezClearness < 2.800:
intClearness = 4
if PerezClearness > 2.800 and PerezClearness < 4.500:
elif PerezClearness < 4.500:
intClearness = 5
if PerezClearness > 4.500 and PerezClearness < 6.200:
elif PerezClearness < 6.200:
intClearness = 6
if PerezClearness > 6.200:
else:
intClearness = 7

m_a = acoeff[intClearness, 0] + acoeff[intClearness, 1] * zen + PerezBrightness * (acoeff[intClearness, 2] + acoeff[intClearness, 3] * zen)
Expand Down