Skip to content
Permalink
Browse files

Fixes to Original ASHRAE Clearsky

  • Loading branch information...
chriswmackey committed Jun 14, 2018
1 parent 909e030 commit 751d27adb2461c150bae020d63b04e67ddfdd1b6
Showing with 6 additions and 10 deletions.
  1. +6 −10 ladybug/wea.py
@@ -236,21 +236,17 @@ def from_ashrae_clear_sky(cls, location, sky_clearness=1, timestep=1):
dir_norm = monthly_a[months[i]] / (math.exp(
monthly_b[months[i]] / (math.sin(math.radians(alt)))))
diff_horiz = 0.17 * dir_norm * math.sin(math.radians(alt))
dir_norm = dir_norm / timestep
diff_horiz = diff_horiz / timestep
dir_norm = (dir_norm * sky_clearness) / timestep
diff_horiz = (diff_horiz * sky_clearness) / timestep
direct_norm_rad.append(
DataPoint(dir_norm, dates[i], 'SI',
'Direct Normal Radiation'))
DataPoint(dir_norm, dates[i], 'SI', 'Direct Normal Radiation'))
diffuse_horiz_rad.append(
DataPoint(diff_horiz, dates[i], 'SI',
'Global Horizontal Radiation'))
DataPoint(diff_horiz, dates[i], 'SI', 'Global Horizontal Radiation'))
else:
direct_norm_rad.append(
DataPoint(0, dates[i], 'SI',
'Direct Normal Radiation'))
DataPoint(0, dates[i], 'SI', 'Direct Normal Radiation'))
diffuse_horiz_rad.append(
DataPoint(0, dates[i], 'SI',
'Diffuse Horizontal Radiation'))
DataPoint(0, dates[i], 'SI', 'Diffuse Horizontal Radiation'))

return cls(location, direct_norm_rad, diffuse_horiz_rad, timestep)

0 comments on commit 751d27a

Please sign in to comment.
You can’t perform that action at this time.