Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • airGR airGR
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 60
    • Issues 60
    • List
    • Boards
    • Service Desk
    • Milestones
  • Redmine
    • Redmine
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • HYCAR-Hydro
  • airGRairGR
  • Issues
  • #124

Closed
Open
Created May 28, 2021 by Dorchies David@david.dorchiesDeveloper

RunOptions always warning "model states initialisation not defined" on GR1A model

The following code:

library(airGR)
data(L0123001)

InputsModel <- CreateInputsModel(FUN_MOD = RunModel_GR4J,
                                 DatesR = BasinObs$DatesR,
                                 Precip = BasinObs$P,
                                 PotEvap = BasinObs$E)
# conversion of InputsModel to target time step
InputsModel <- SeriesAggreg(InputsModel, Format = "%Y")

Ind_WarmUp <- seq(
  which(format(InputsModel$DatesR, format = "%Y")=="1985"),
  which(format(InputsModel$DatesR, format = "%Y")=="1985")
)
Ind_Run <- seq(
  which(format(InputsModel$DatesR, format = "%Y")=="1986"),
  which(format(InputsModel$DatesR, format = "%Y")=="2011")
)

# preparation of the RunOptions object
RunOptions <- CreateRunOptions(FUN_MOD = RunModel_GR1A,
                               InputsModel = InputsModel,
                               IndPeriod_Run = Ind_Run,
                               IndPeriod_WarmUp = Ind_WarmUp)

results with the following warning:

Warning message:
In CreateRunOptions(FUN_MOD = RunModel_GR1A, InputsModel = InputsModel,  :
  model states initialisation not defined: default configuration used

If I let the default warm up, the warning appears with the usual default warm-up warning:

RunOptions <- CreateRunOptions(FUN_MOD = RunModel_GR1A,
                               InputsModel = InputsModel,
                               IndPeriod_Run = Ind_Run)

There is still a warning indicating a wrong initialisation...

Warning messages:
1: In CreateRunOptions(FUN_MOD = RunModel_GR1A, InputsModel = InputsModel,  :
  model warm up period not defined: default configuration used
  the year preceding the run period is used 

2: In CreateRunOptions(FUN_MOD = RunModel_GR1A, InputsModel = InputsModel,  :
  model states initialisation not defined: default configuration used

Is it a normal behavior? I don't see any clue about this in the documentation.

Assignee
Assign to
Time tracking