hydroportail issueshttps://gitlab.irstea.fr/HYCAR-Hydro/hydroportail/-/issues2024-03-22T17:05:15+01:00https://gitlab.irstea.fr/HYCAR-Hydro/hydroportail/-/issues/51Remove the use of double colon or triple colon operators to call hydroportail...2024-03-22T17:05:15+01:00Delaigue OlivierRemove the use of double colon or triple colon operators to call hydroportail functionsDouble colon or triple colon operators were use to make tests. As it is not recommanded to use them, thay have to be removed.Double colon or triple colon operators were use to make tests. As it is not recommanded to use them, thay have to be removed.0.1.0.9010https://gitlab.irstea.fr/HYCAR-Hydro/hydroportail/-/issues/50Set 'get_summary_rating_curve_hydro' as deprecated2024-03-22T15:02:19+01:00Delaigue OlivierSet 'get_summary_rating_curve_hydro' as deprecatedNow it is better to use :
- `get_rating_curve_hydro`
- `get_meta_gauging_hydro`
- `get_correction_curve_hydro`
As the `get_summary_rating_curve_hydro` function start to get all information from the "rating curve" page where, it could...Now it is better to use :
- `get_rating_curve_hydro`
- `get_meta_gauging_hydro`
- `get_correction_curve_hydro`
As the `get_summary_rating_curve_hydro` function start to get all information from the "rating curve" page where, it could fail, because this page doesn't always exist, depending on the station.0.1.0.9010https://gitlab.irstea.fr/HYCAR-Hydro/hydroportail/-/issues/44Rename 'get_summary_hydro' function to be more understandable2023-07-26T12:04:23+02:00Delaigue OlivierRename 'get_summary_hydro' function to be more understandableAs there is now a `get_summary_rating_curve_hydro` functio, it would be more understandable to rename `get_summary_hydro` into `get_summary_ts_hydro`As there is now a `get_summary_rating_curve_hydro` functio, it would be more understandable to rename `get_summary_hydro` into `get_summary_ts_hydro`0.1.0.9009https://gitlab.irstea.fr/HYCAR-Hydro/hydroportail/-/issues/33Return 'period$requested' in UTC time zone from 'get_ts_*' functions2023-04-03T10:25:39+02:00Delaigue OlivierReturn 'period$requested' in UTC time zone from 'get_ts_*' functionsCurrently, the `'get_ts_*')` functions return the `period$requested` element as local time `POSIXct` object.
It would be better to return a `POSIXct` vecor in the UTC timezone.Currently, the `'get_ts_*')` functions return the `period$requested` element as local time `POSIXct` object.
It would be better to return a `POSIXct` vecor in the UTC timezone.0.1.0.9005https://gitlab.irstea.fr/HYCAR-Hydro/hydroportail/-/issues/36Deal with "ghost" codes2022-06-16T10:11:51+02:00Delaigue OlivierDeal with "ghost" codesThere are some "ghost" codes in the Hydroportail.
We can see the behavior in the following way:
```r
get_sf_hydro(code = "G410000301")
## Error: No feature found
get_meta_hydro(code = "G410000301")
## Error in names(x) <- value :
##...There are some "ghost" codes in the Hydroportail.
We can see the behavior in the following way:
```r
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](/uploads/94f4a34d751b2acb676dad121a67e805/image.png)
In the Hydroportail. If the user is logged in:
![image](/uploads/bd9c68cd8d6828ade195fbe40d1354f4/image.png)https://gitlab.irstea.fr/HYCAR-Hydro/hydroportail/-/issues/13Split 'utils' functions in many files2022-02-23T10:19:44+01:00Delaigue OlivierSplit 'utils' functions in many filesSplit private functions in various files according to the public functions they refer to.Split private functions in various files according to the public functions they refer to.