18
18
from matplotlib import pyplot as plt
19
19
20
20
# For this example, we will be using Golden, Colorado
21
- tz = 'MST'
22
21
lat , lon = 39.755 , - 105.221
23
22
24
23
# Create location object to store lat, lon, timezone
25
- site = location .Location (lat , lon , tz = tz )
24
+ site = location .Location (lat , lon , tz = 'MST' )
26
25
27
26
28
27
# Calculate clear-sky GHI and transpose to plane of array
@@ -52,7 +51,7 @@ def get_irradiance(site_location, date, tilt, surface_azimuth):
52
51
'POA' : POA_irradiance ['poa_global' ]})
53
52
54
53
55
- # Get irradiance data for summer and winter solstice, assuming 25 degree tilt
54
+ # Get irradiance data for summer and winter solstice, assuming 25 degrees tilt
56
55
# and a south facing array
57
56
summer_irradiance = get_irradiance (site , '06-20-2020' , 25 , 180 )
58
57
winter_irradiance = get_irradiance (site , '12-21-2020' , 25 , 180 )
@@ -67,8 +66,8 @@ def get_irradiance(site_location, date, tilt, surface_azimuth):
67
66
summer_irradiance ['POA' ].plot (ax = ax1 , label = 'POA' )
68
67
winter_irradiance ['GHI' ].plot (ax = ax2 , label = 'GHI' )
69
68
winter_irradiance ['POA' ].plot (ax = ax2 , label = 'POA' )
70
- ax1 .set_xlabel ('Time of day (Summer)' )
71
- ax2 .set_xlabel ('Time of day (Winter)' )
69
+ ax1 .set_xlabel ('Time of day (in Summer)' )
70
+ ax2 .set_xlabel ('Time of day (in Winter)' )
72
71
ax1 .set_ylabel ('Irradiance ($W/m^2$)' )
73
72
ax1 .legend ()
74
73
ax2 .legend ()
0 commit comments