nwm_metrics.metric_functions.pbias_fdc#

nwm_metrics.metric_functions.pbias_fdc(y_true, y_pred, bqthr=0.9, lqthr=0.7, hqthr=0.2, pqthr=0.1, warning_msg=False)[source]#

Compute percent bias of flow duration curve (FDC) high-segment volume, midsegment slope and low-segment volume according to Yilmaz et al (2008).

Return type:

Dict[str, float]

Parameters:
  • y_true (pd.Series) – Ground truth or observations

  • y_pred (pd.Series) – Modeled values or simulations

  • bqthr (float, optional) – baseflow exceedance probability (default is 0.9)

  • lqthr (float, optional) – low flow exceedance probability (default is 0.7)

  • hqthr (float, optional) – high flow exceedance probability (default is 0.2)

  • pqthr (float, optional) – peak flow exceedance probability (default is 0.1)

  • warning_msg (bool, optional) – If True, print warining messages.

Returns:

Dictionary of pbias of peak flow, slope and low flow of FDC

Return type:

Dict[str, float]

References

Yilmaz, K. K., H. V. Gupta, and T. Wagener (2008), A process-based diagnostic approach to modelevaluation: Application to the NWS distributed hydrologic model, Water Resource Research, 44, W09417,doi:10.1029/2007WR006716.