Skip to content

Commit b92efee

Browse files
committed
put m=-80 back
1 parent e80763c commit b92efee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pvlib/snowcoverage.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def snow_nrel_fully_covered(snowfall, threshold=1.):
5151

5252

5353
def snow_nrel(snowfall, poa_irradiance, temp_air, surface_tilt,
54-
threshold_snowfall=1., m=80., sliding_coefficient=0.197):
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.

pvlib/tests/test_snowcoverage.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ def test_snow_nrel_subhourly():
4343
dt = pd.date_range(start="2019-1-1 11:00:00", end="2019-1-1 14:00:00",
4444
freq='15T')
4545
poa_irradiance = pd.Series([400, 200, 100, 1234, 134, 982, 100, 100, 100,
46-
100, 1000, 1000, 0],
46+
100, 100, 100, 0],
4747
index=dt)
48-
temp_air = pd.Series([10, 2, 10, 1234, 34, 982, 10, 10, 10, 10, 10, 10,
48+
temp_air = pd.Series([10, 2, 10, 1234, 34, 982, 10, 10, 10, 10, -10, -10,
4949
10], index=dt)
5050
snowfall_data = pd.Series([1, .5, .6, .4, .23, -5, .1, .1, 0., 1., 0., 0.,
5151
0.], index=dt)

0 commit comments

Comments
 (0)