hzambran / hydroGOF

Goodness-of-fit functions for comparison of simulated and observed hydrological time series
https://CRAN.R-project.org/package=hydroGOF
39 stars 13 forks source link

weighted Nash-Sutcliffe Efficiency #12

Closed sluedtke closed 9 months ago

sluedtke commented 3 years ago

I added the function "wNSE", a weighted nash-sutcliffe efficiency that puts more emphasis on peak flows in the discharge time series. We (at GFZ Potsdam) use that quite a lot and the measure was published in 2012.

Hundecha, Y. and Merz, B. (2012), Exploring the Relationship between Changes in Climate and Floods Using a Model-Based Analysis, Water Resour. Res., 48(4), 1-21, 10.1029/2011WR010527

I followed the structure of the "rNSE" function, and, as the weights are basically the observed discharge time series, that was pretty straight forward. The package still succeeds to build- tested with:

R CMD build ./

Would be create if that makes it into the package, even thought its just a minor contribution.