It calls automatically:
airGRiwrm::CreateRunOptions
airGRiwrm::CreateInputsCrit
airGRiwrm::CreateCalibOptions
airGRiwrm::Calibration
It calculates performance indicator on the model and save parameters and performance indicators into the file (paramFile
).
Usage
# S3 method for BasinsObs
Calibration(
x,
nodes = selectSubNetwork(x$griwrm),
paramFile,
InputsModel = CreateInputsModel(x, nodes, cfg),
IndPeriod_WarmUp = seq(1, 365),
IndPeriod_Run = seq(366, length(x$DatesR)),
FUN_CRIT = airGR::ErrorCrit_KGE2,
transfo = "sqrt",
cfg = loadConfig(),
AprioriIds = getAprioriIds(x, InputsModel),
...
)
Arguments
- x
an object of class BasinsObs, see loadBasinsObs and createBasinsObs
- nodes
Codes that refers to wanted sub-neworks, see
selectSubNetworks
- paramFile
character the path of the file containing the model parameters (use to call loadCalibrationParams)
- InputsModel
an object of class GRiwrmInputsModel, see CreateInputsModel.BasinsObs
- IndPeriod_WarmUp
(optional) numeric index of period to be used for the model warm-up -. See airGR::CreateRunOptions for details
- IndPeriod_Run
(optional) numeric index of period to be used for the model run -. See airGR::CreateRunOptions for details
- FUN_CRIT
See airGRiwrm::CreateInputsCrit
- transfo
- cfg
a config object. Configuration to use. See loadConfig for details
- AprioriIds
See airGRiwrm::CreateInputsCrit
- ...
not used (compatibility with others S3 methods)
Value
a GRiwrmOutputsCalib
object which is a list of OutputsCalib
objects with one item per modeled sub-catchment. See airGRiwrm::Calibration