Skip to contents

Save database of one simulation

Usage

saveFlowDB(
  path,
  InputsModel,
  OutputsModel,
  indicators_periods = NULL,
  cfg = loadConfig()
)

Arguments

path

character the location used to save the database

InputsModel

GRiwrmInputsModel object. See CreateInputsModel.BasinsObs

OutputsModel

GriwrmOutputsModel object. See RunModel.BasinsObs

indicators_periods

list containing item with 2-length POSIXct for starting and ending date of each period used for calculating hydrological indicators

cfg

a config object. Configuration to use. See loadConfig for details

Value

TRUE if the last copy successed