예제 #1
0
 def test_getSlopeFDC(self):
     sig_val = sig.getSlopeFDC(self.simulation,self.observation, mode="get_signature")
     sig_raw = sig.getSlopeFDC(self.simulation, self.observation, mode="get_raw_data")
     sig_dev = sig.getSlopeFDC(self.simulation, self.observation, mode="calc_Dev")
     self.assertEqual(type(float(sig_val)), type(1.0))
     self.assertEqual(type(float(sig_raw)), type(1.0))
     self.assertEqual(type(float(sig_dev)), type(1.0))
예제 #2
0
                                   dd_daily,
                                   threshold_factor=5,
                                   section="day"))

print(
    sig.getAverageBaseflowDuration(simulation,
                                   observation,
                                   dd_daily,
                                   threshold_factor=0.2,
                                   section="day"))
print(
    sig.getAverageBaseflowFrequencyPerSection(simulation, observation,
                                              dd_daily, 3, "day"))
print(
    sig.getAverageBaseflowUnderflowPerSection(simulation,
                                              observation,
                                              dd_daily,
                                              threshold_factor=4,
                                              section="day"))

print(
    sig.getBaseflowIndex(simulation, observation,
                         pd.date_range("2015-05-01", periods=timespanlen)))
print(sig.getSlopeFDC(simulation, observation))
print(
    sig.getLowFlowVar(simulation, observation,
                      pd.date_range("2015-05-01", periods=timespanlen)))
print(
    sig.getHighFlowVar(simulation, observation,
                       pd.date_range("2015-05-01", periods=timespanlen)))