Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • airGRiwrm airGRiwrm
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 27
    • Issues 27
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

La forge institutionnelle d'INRAE étant en production depuis le 10 juin 2025, nous vous invitons à y créer vos nouveaux projets.

  • IN-WOP
  • airGRiwrmairGRiwrm
  • Issues
  • #107
Closed
Open
Issue created Nov 22, 2022 by Dorchies David@david.dorchiesOwner

Allow to use node with model RunModel_Lag

The easiest way to simulate nodes that represents canal outlets without impluvium should be to use a model RunModel_Lag to only transfer flows from upstream nodes without taking into account potential run-off.

Unfortunately using RunModel_Lag as a model, raises lot of issues which seems to be related to malfunctions on both airGRiwrm and airGR...

For example the following code based on the data available in the vignette Severn_01 crashes:

db <- data.frame(id = c("54095", "DownLag"),
                   length = c(1, NA),
                   down = c("DownLag", NA),
                   area = as.double(c(3722.68, NA)),
                   model = c("RunModel_GR4J", "RunModel_Lag"),
                   stringsAsFactors = FALSE)
  g <- CreateGRiwrm(db)
  IM <- CreateInputsModel(g,
                          DatesR = DatesR,
                          Precip = Precip[, "54095", drop = FALSE],
                          PotEvap = PotEvap[, "54095", drop = FALSE])
CreateInputsModel.GRiwrm: Processing sub-basin 54095...
CreateInputsModel.GRiwrm: Processing sub-basin DownLag...
Error in if (BasinAreas[length(BasinAreas)] < 0) { : 
  missing value where TRUE/FALSE needed
Edited Nov 22, 2022 by Dorchies David
Assignee
Assign to
Time tracking