@@ -50,8 +50,8 @@ def snow_nrel_fully_covered(snowfall, threshold=1.):
5050 return time_adjusted >= threshold
5151
5252
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 ):
5555 '''
5656 Calculates the fraction of the slant height of a row of modules covered by
5757 snow at every time step.
@@ -67,14 +67,14 @@ def snow_nrel(snowfall, poa_irradiance, temperature, surface_tilt,
6767 Accumulated snowfall within each time period. [cm]
6868 poa_irradiance : Series
6969 Total in-plane irradiance [W/m^2]
70- temperature : Series
70+ temp_air : Series
7171 Ambient air temperature at the surface [C]
7272 surface_tilt : numeric
7373 Tilt of module's from horizontal, e.g. surface facing up = 0,
7474 surface facing horizon = 90. Must be between 0 and 180. [degrees]
7575 threshold_snowfall : float, default 1.0
7676 Minimum hourly snowfall to cover a row's slant height. [cm/hr]
77- m : float, default - 80.
77+ m : float, default 80.
7878 Coefficient used in [1]_ to determine if snow can slide given
7979 irradiance and air temperature. [W/(m^2 C)]
8080 sliding coefficient : float, default 0.197
@@ -102,7 +102,7 @@ def snow_nrel(snowfall, poa_irradiance, temperature, surface_tilt,
102102 snow_events = snowfall [snow_nrel_fully_covered (snowfall ,
103103 threshold_snowfall )]
104104
105- can_slide = temperature > poa_irradiance / m
105+ can_slide = temp_air > poa_irradiance / m
106106 slide_amt = sliding_coefficient * sind (surface_tilt ) * \
107107 _time_delta_in_hours (poa_irradiance .index )
108108
0 commit comments