get_ecoulement_stations {hubeau} | R Documentation |
Retrieve data from API "Ecoulement des cours d'eau"
Description
The data originate from the "ONDE" river low waters monitoring network. Available endpoints are:
-
get_ecoulement_stations
retrieves site data and locations -
get_ecoulement_observations
retrieves flow information -
get_ecoulement_campagnes
retrieves annual surveys
See the API documentation for available filter parameters: https://hubeau.eaufrance.fr/page/api-ecoulement
Usage
get_ecoulement_stations(...)
get_ecoulement_observations(...)
get_ecoulement_campagnes(...)
Arguments
... |
parameters of the queries and their values in the format
|
Value
A tibble::tibble with one row by record and one column by field.
Examples
## Not run:
# Retrieve 2022 observation campaigns in the Jura French department
get_ecoulement_campagnes(
list(code_departement = "39",
date_campagne_min = "2022-01-01",
date_campagne_max = "2022-12-31")
)
# Retrieve river stations
stations_39 <- get_ecoulement_stations(
list(code_departement = "39",
fields = "code_station,libelle_cours_eau,libelle_commune")
)
stations_39
# Get the query parameters for the requested API/endpoint
list_params(api = "ecoulement",
endpoint = "observations")
# Retrieve the river flow data in the Jura departement in 2022 with
# a selection of the fields
onde_39 <- get_ecoulement_observations(
list(code_departement = "39",
date_observation_min = "2022-01-01",
date_observation_max = "2022-12-31",
fields = "code_station,libelle_station,date_observation,libelle_ecoulement")
)
onde_39
## End(Not run)
[Package hubeau version 0.5.0 Index]