\encoding{UTF-8} \name{SimGR} \alias{SimGR} \title{Perform a run for the GR hydrological models} \usage{ SimGR(ObsGR, CalGR = NULL, Param = NULL, EffCrit = c("NSE", "KGE", "KGE2", "RMSE"), WupPer = NULL, SimPer, transfo = c("", "sqrt", "log", "inv", "sort"), verbose = TRUE) } \arguments{ \item{ObsGR}{[object of class \emph{ObsGR}] (see \code{\link{ObsGR}} for details)} \item{CalGR}{(optional) [object of class \emph{CalGR}] (see \code{\link{CalGR}} for details)} \item{Param}{(optional) [numeric] vector of parameters (the number depends on the model used)} \item{EffCrit}{[character] name of the efficiency criterion (must be one of \code{"NSE"}, \code{"KGE"}, \code{"KGE2"}, \code{"RMSE"})} \item{WupPer}{(optional) [character] vector of 2 values to define the warm-up period [\code{"YYYY-mm-dd"} or \code{"YYYY-mm-dd HH:MM:SS"}]} \item{SimPer}{[character] vector of 2 values to define the simulation period [\code{"YYYY-mm-dd"} or \code{"YYYY-mm-dd HH:MM:SS"}]} \item{transfo}{(optional) [character] name of the transformation (must be one of \code{""}, \code{"sqrt"}, \code{"log"}, \code{"inv"} or \code{"sort"})} \item{verbose}{(optional) [boolean] logical value indicating if the function is run in verbose mode or not} } \value{ [list] object of class \code{SimGR} containing: \item{OptionsSimul}{[list] object of class \code{RunOptions} (see: \code{\link{CreateRunOptions}})} \item{OptionsCrit}{[list] object of class \code{InputsCrit} (see: \code{\link{CreateInputsCrit}})} \item{OutputsModel}{[list] object of class \code{OutputsModel} (see: \code{\link{RunModel}})} \item{Qobs}{[numeric] series of observed discharges [mm/time step]} \item{TypeModel}{[character] name of the function of the hydrological model used} \item{CalCrit}{[character] name of the function that computes the error criterion during the calibration step} \item{EffCrit}{[list] name of the function that computes the error criterion during the simulation step} \item{PeriodModel}{[list] \code{$WarmUp}: vector of 2 \code{POSIXct} values defining the warm-up period, \code{$Run}: vector of 2 \code{POSIXct} values defining the calibration period} } \seealso{ \code{\link{CreateRunOptions}}, \code{\link{CreateInputsCrit}}, \code{\link{RunModel}}, \code{\link{ErrorCrit_RMSE}}, \code{\link{ErrorCrit_NSE}}, \code{\link{ErrorCrit_KGE}}, \code{\link{ErrorCrit_KGE2}} } \description{Function for running the GR hydrological models} \author{Olivier Delaigue} \examples{ library(airGR) ## data.frame of observed data data(L0123001) BasinObs2 <- BasinObs[, c("DatesR", "P", "E", "Qmm", "T")] ## Preparation of observed data for modelling OBS <- ObsGR(ObsBV = BasinObs2, TypeModel = "GR4J", CemaNeige = FALSE) ## Calibration step CAL <- CalGR(ObsGR = OBS, CalCrit = "KGE2", WupPer = NULL, CalPer = c("1990-01-01", "1993-12-31")) ## Simulation step using the result of the automatic calibration method to set the model parameters SIM <- SimGR(ObsGR = OBS, CalGR = CAL, EffCrit = "KGE2", WupPer = NULL, SimPer = c("1994-01-01", "1998-12-31")) ## Simulation step using model parameters set by the user SIM <- SimGR(ObsGR = OBS, Param = c(270.426, 0.984, 108.853, 2.149), EffCrit = "KGE2", WupPer = NULL, SimPer = c("1994-01-01", "1998-12-31")) str(SIM) }