Beispiel #1
0
 def test_multi_max(self):
     a = self.time_series(np.array([20, 4, 20, 20, 0]))
     rx1day = xci.max_1day_precipitation_amount(a)
     assert rx1day == 20
     assert rx1day.time.dt.year == 2000
     assert len(rx1day) == 1
Beispiel #2
0
 def test_single_max(self):
     a = self.time_series(np.array([3, 4, 20, 0, 0]))
     rx1day = xci.max_1day_precipitation_amount(a)
     assert rx1day == 20
     assert rx1day.time.dt.year == 2000