get_niveaux_nappes_stations {hubeau} | R Documentation |
Retrieve data from API "Piézométrie"
Description
The available endpoints are:
-
get_niveaux_nappes_stations
retrieves list of piezometric stations -
get_nappes_chroniques
retrieves piezometric archived time series -
get_nappes_chroniques_tr
retrieves piezometric "real time" data
See the API documentation for available filter parameters: https://hubeau.eaufrance.fr/page/api-piezometrie
Usage
get_niveaux_nappes_stations(...)
get_niveaux_nappes_chroniques(...)
get_niveaux_nappes_chroniques_tr(...)
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 the hydrometric stations in the department of Aube
get_niveaux_nappes_stations(code_departement = "10")
# Retrieve the archived observed piezometric level at station '07548X0009/F' (old BSS identifier)
# for the year 2020
df <- get_niveaux_nappes_chroniques(code_bss = "07548X0009/F",
date_debut_mesure = "2020-01-01",
date_fin_mesure = "2020-12-31")
# Plot the water elevation (NGF)
plot(as.POSIXct(df$date_mesure), df$niveau_nappe_eau, type = "l")
# For retrieving the last real time observed piezometric level
# at station 'BSS001VZGZ' (new BSS identifier)
df <- get_niveaux_nappes_chroniques_tr(bss_id = "BSS001VZGZ")
# Plot the water elevation (NGF)
plot(as.POSIXct(df$date_mesure), df$niveau_eau_ngf, type = "l")
## End(Not run)
[Package hubeau version 0.5.0 Index]