Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • hydroportail hydroportail
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 5
    • Issues 5
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • HYCAR-Hydro
  • hydroportailhydroportail
  • Issues
  • #36

Closed
Open
Created Jun 15, 2022 by Delaigue Olivier@olivier.delaigueOwner

Deal with "ghost" codes

There are some "ghost" codes in the Hydroportail.

We can see the behavior in the following way:

get_sf_hydro(code = "G410000301")
## Error: No feature found

get_meta_hydro(code = "G410000301")
## Error in names(x) <- value : 
##   'names' attribute [2] must be the same length as the vector [1]

get_prod_hydro(code = "G410000301")
## named list()
## attr(,"meta_req")
## attr(,"meta_req")$urlRequest
## character(0)
## 
## attr(,"meta_req")$user
## attr(,"meta_req")$user$name
##        user 
## "odelaigue" 
## 
## attr(,"meta_req")$user$date
## [1] "2022-06-14 09:47:04 CEST"

Using this URL: https://www.hydro.eaufrance.fr/stationhydro/G410000301/fiche

In the Hydroportail. If the user is not logged in: image

In the Hydroportail. If the user is logged in: image

Assignee
Assign to
Time tracking