Skip to content
GitLab
Projects Groups 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
    • Contributors
    • Graph
    • Compare
  • Issues 18
    • Issues 18
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • 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
  • IN-WOP
  • airGRiwrmairGRiwrm
  • Issues
  • #30
Closed
Open
Issue created Mar 03, 2021 by Dorchies David@david.dorchiesOwner

RunModel of GRiwrm networks: add a data.frame of simulated flows in OutputsModel

Currently, GRiwrmOutputsModel produced by either RunModel.GRiwrmInputsModel or RunModel.Supervisor produce a list of airGR::OutputsModel where only GR or GRSD outputs are available.

It would be consistant to get a data.frame with dates and one column by node of the complete GRiwrm network in these outputs including flows that don't depend on a model like injected flows (see vignette V03) or flows influenced by a controller.

There are two possibilities for storing such a data.frame in the GRiwrmOutputsModel object:

  1. add a specific items between other items of the list which are airGR::OutputsModel objects. This item should be named with a reserved name (E.g.: "__Qsim__") in order to not match with an existing node name.
  2. add an attribute "Qsim" to the GRiwrmOutputsModel object with attr(x, "Qsim") <- data.frame(...).

Second solution has my preference because grouping airGR::OutputsModel object and a data.frame in the same list forces to handle exception in any process that loop over the list items of GRiwrmOutputsModel. Retrieving the data.frame is then done with the simple instruction: attr(x, "Qsim") with x a GRiwrmOutputsModel object.

Edited Mar 03, 2021 by Dorchies David
Assignee
Assign to
Time tracking