Function which performs a single model run with the provided function over the selected period.

# S3 method for GR
RunModel(x, RunOptions, Param, ...)

Arguments

x

[object of class InputsModel] InputsModel for airGR::RunModel

RunOptions

[object of class RunOptions] see airGR::CreateRunOptions for details

Param

numeric vector of model parameters (See details for SD lag model)

...

further arguments passed to or from other methods

Value

[list] see RunModel_GR4J or RunModel_CemaNeigeGR4J for details. If InputsModel parameter has been created for using a semi-distributed (SD) lag model (See CreateInputsModel), the list value contains an extra item named QsimDown which is a numeric series of simulated discharge [mm/time step] related to the run-off contribution of the downstream sub-catchment.

Details

If InputsModel parameter has been created for using a semi-distributed (SD) lag model (See CreateInputsModel), the first item of Param parameter should contain a constant lag parameter expressed as a velocity in m/s, parameters for the hydrological model are then shift one position to the right.