Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
airGRteaching
airGRteaching
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Redmine
    • Redmine
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • HYCAR-Hydro
  • airGRteachingairGRteaching
  • Issues
  • #35

Closed
Open
Opened Jan 15, 2021 by Delaigue Olivier@olivier.delaigueOwner

Fix plot.PrepGR when all Qobs are missing

The plot.PrepGR() function does not run if Qobs = NA.

data(L0123001, package = "airGR")
prep <- PrepGR(DatesR = BasinObs$DatesR, Precip = BasinObs$P,
               PotEvap = BasinObs$E, Qobs = NA, HydroModel = "GR4J")

plot(prep)
Error in plot.window(...) : valeurs finies requises pour 'ylim'
De plus : Warning messages:
1: In min(x) : aucun argument trouvé pour min ; Inf est renvoyé
2: In max(x) : aucun argument pour max ; -Inf est renvoyé

image

It could be better it to display the following text in the second plot: "No observed discharges".

Assignee
Assign to
v0.2.10
Milestone
v0.2.10
Assign milestone
Time tracking
None
Due date
None
Reference: HYCAR-Hydro/airgrteaching#35