kge_nse: Calculate both KGE and NSE of a time series.

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Calculate both Kling-Gutpa model efficiency (KGE), and Nash-Sutcliffe model efficiency (NSE) from an extended time series (xts) and return the negative value

Usage

1
2
3
kge_nse(x, simcol=2,
        OUT = "kge_nse.txt",
        from = NULL, to = NULL)

Arguments

x

An xts object

simcol

A numeric

OUT

A character specifiing the output file or NULL to supress the file

from, to

characters giving the start and enddate of the window that is to be evaluated (see details)

Details

If from and to are given (not NULL), a window of the time series will be evaluated. If one of both is NULL the time series will be cut and evaluated. See xts for more details. If OUT is given, the negative values of KGE and NSE are written whithout column- and rownames.

Value

A data.frame containing the KGE and NSE value.

Author(s)

Simon Frey

References

Nash, J. E. and J. V. Sutcliffe (1970), River flow forecasting through conceptual models part I -A discussion of principles, Journal of Hydrology, 10 (3), 282-290

Gupta, Hoshin V., Harald Kling, Koray K. Yilmaz, Guillermo F. Martinez. Decomposition of the mean squared error and NSE performance criteria: Implications for improving hydrological modelling. Journal of Hydrology, Volume 377, Issues 1-2, 20 October 2009, Pages 80-91. DOI: 10.1016/j.jhydrol.2009.08.003.

See Also

KGE NSE readcosero

Examples

1
2
3
4
5
6
7
8
### load sample output data from cosero
data(qobsqsim)

kge_nse(qobsqsim,
  simcol= 6, # select subbasin nr 3
  OUT = NULL, # suppress writing of an output file
  from = "2008-09-01",
  to = "2013-08-30")

freysimon/PestR documentation built on May 16, 2019, 3:25 p.m.