@@ -50,8 +50,8 @@ def snow_nrel_fully_covered(snowfall, threshold=1.):
50
50
return time_adjusted >= threshold
51
51
52
52
53
- def snow_nrel (snowfall , poa_irradiance , temperature , surface_tilt ,
54
- threshold_snowfall = 1. , m = - 80 , sliding_coefficient = 0.197 ):
53
+ def snow_nrel (snowfall , poa_irradiance , temp_air , surface_tilt ,
54
+ threshold_snowfall = 1. , m = 80. , sliding_coefficient = 0.197 ):
55
55
'''
56
56
Calculates the fraction of the slant height of a row of modules covered by
57
57
snow at every time step.
@@ -67,14 +67,14 @@ def snow_nrel(snowfall, poa_irradiance, temperature, surface_tilt,
67
67
Accumulated snowfall within each time period. [cm]
68
68
poa_irradiance : Series
69
69
Total in-plane irradiance [W/m^2]
70
- temperature : Series
70
+ temp_air : Series
71
71
Ambient air temperature at the surface [C]
72
72
surface_tilt : numeric
73
73
Tilt of module's from horizontal, e.g. surface facing up = 0,
74
74
surface facing horizon = 90. Must be between 0 and 180. [degrees]
75
75
threshold_snowfall : float, default 1.0
76
76
Minimum hourly snowfall to cover a row's slant height. [cm/hr]
77
- m : float, default - 80.
77
+ m : float, default 80.
78
78
Coefficient used in [1]_ to determine if snow can slide given
79
79
irradiance and air temperature. [W/(m^2 C)]
80
80
sliding coefficient : float, default 0.197
@@ -102,7 +102,7 @@ def snow_nrel(snowfall, poa_irradiance, temperature, surface_tilt,
102
102
snow_events = snowfall [snow_nrel_fully_covered (snowfall ,
103
103
threshold_snowfall )]
104
104
105
- can_slide = temperature > poa_irradiance / m
105
+ can_slide = temp_air > poa_irradiance / m
106
106
slide_amt = sliding_coefficient * sind (surface_tilt ) * \
107
107
_time_delta_in_hours (poa_irradiance .index )
108
108
0 commit comments