Skip to contents

Calibrate GR model

Usage

calib_GR(
  inputs,
  warmup = NULL,
  run_index,
  FUN_CRIT = airGR::ErrorCrit_NSE,
  FUN_CALIB = airGR::Calibration_Michel,
  IniStates = NULL,
  IniResLevels = NULL
)

Arguments

inputs

list; of inputs generated by make_GR_inputs().

warmup

vector; index of inputs$data to be used as a warmup period for the model.

run_index

vector; index of inputs$data to be used for running the GR model.

FUN_CRIT

[function (atomic or list)] error criterion function (e.g. ErrorCrit_RMSE, ErrorCrit_NSE)

FUN_CALIB

(optional) [function] calibration algorithm function (e.g. Calibration_Michel), default = Calibration_Michel

IniStates

(optional) [numeric] object of class IniStates [mm and °C], see CreateIniStates for details

IniResLevels

(optional) [numeric] vector of initial fillings for the GR stores (4 values; use NA when not relevant for a given model) [- and/or mm]. See details

Value

list of airGR calibration outputs.