Metrics Calculations
postprocessinglib.evaluation.metrics Module
The metrics module contains all of the metrics required during the prost processing process. Each metric has a function and there are hepler functions that help with error checking and reading and preparation of data to be evaluated. This module contains functions evaluate single sample data such as the
The Slope of Flow duration curve
slope_fdc,Time to peak
ttp,Time to centre of mass
ttcom, and,Spring Pulse Onset Delay
spod.
as well as comparison samples between the measured and predicted data such as
Mean Square Error
mse,Percentage Bias
bias, and ,Kling Gupta Efficiency
kge, amongst others.
Finally we are also able to calculate a number of metrices at the same time or all of them at the same time using one of the two function below:
calculate_metrics([list of metrics])calculate_all_metrics()
All these functions along side their expected inputs and outputs are shown below:
Functions
|
Peak discharge value corresponding to the same peak timing logic used by time_to_peak (TTP). |
|
Calculates the average day of year when the spring pulse (snowmelt) begins for each station. |
Get a list of currently available metrics |
|
|
Calculates the Percentage Bias of the data |
|
Calculate all metrics. |
|
Calculate the requested metrics. |
|
Calculates the Kling-Gupta Efficiency of the data |
|
Calculates the Kling-Gupta Efficiency of the data |
|
Calculates the Logarithmic Nash-Sutcliffe Efficiency of the data |
|
Calculates the Mean Average value of the data |
|
Calculates the Mean Square value of the data |
|
Calculates the Nash-Sutcliffe Efficiency of the data |
|
Calculates the Root Mean Square value of the data |
|
Calculates the slope of the Flow Duration Curve (FDC). |
|
Calculates the time it takes to obtain 50% of the stream flow in a given year |
|
Calculates the time to peak of a given series of data whether observed |