
‘hubeau’ is an R-package proposing a collection of function to help retrieve data from the French national databases on water: https://hubeau.eaufrance.fr
# Install released version from CRAN
install.packages("hubeau")
# Install development version from GitHub:
# install.packages("remotes")
remotes::install_github("inrae/hubeau")library(hubeau)The ‘hubeau’ package provides functions for ‘Hub’Eau’ APIs and their
related endpoints. These functions are named as follow:
hubeau::get_[API]_[endpoint].
Currently available APIs and related endpoints are listed below.
API documentation: https://hubeau.eaufrance.fr/page/api-ecoulement
Available functions:
get_ecoulement_stations:
site data and locationsget_ecoulement_observations:
flow observations collected during campaignsget_ecoulement_campagnes:
observation campaign informationAPI documentation: https://hubeau.eaufrance.fr/page/api-hydrometrie
Available functions:
get_hydrometrie_sites:
hydrometry sites (can contain several stations)get_hydrometrie_stations:
hydrometry stationsget_hydrometrie_observations_tr:
hydrometry water level and discharge time seriesget_hydrometrie_obs_elab:
hydrometric elaborate observations (daily/monthly mean flow)API documentation: https://hubeau.eaufrance.fr/page/api-indicateurs-services
Available functions:
get_indicateurs_services_communes:
performance indicators by communeget_indicateurs_services_indicateurs:
performance indicators by indicatorget_indicateurs_services_services:
performance indicators by commune for each serviceAPI documentation: https://hubeau.eaufrance.fr/page/api-piezometrie
Available functions:
get_niveaux_nappes_chroniques:
archived time series of piezometric stationsget_niveaux_nappes_chroniques_tr:
real-time time series of piezometric stationsget_niveaux_nappes_stations:
piezometric stationsAPI documentation: https://hubeau.eaufrance.fr/page/api-poisson
Available function:
get_poisson_operations:
sampling operations carried out at stations measuring the quality of
riversget_poisson_observations:
fish observations made during sampling operationsget_poisson_indicateurs:
the IPR and IPR+ indicators calculated from fish observationsget_poisson_stations:
stations measuring the quality of riversAPI documentation: https://hubeau.eaufrance.fr/page/api-prelevements-eau
Available functions:
get_prelevements_chroniques:
time series of annual withdrawn volumes by deviceget_prelevements_ouvrages:
withdrawal devices (can contain several withdrawal points)get_prelevements_points_prelevement:
withdrawal pointsAPI documentation: https://hubeau.eaufrance.fr/page/api-qualite-eau-potable
Available functions:
get_qualite_eau_potable_communes_udi:
links between “UDI” (Distribution units or networks) and communesget_qualite_eau_potable_resultats_dis:
samples, analysis results and sanitary conclusions from the sanitary
control of the distributed water commune by communeAPI documentation: https://hubeau.eaufrance.fr/page/api-qualite-cours-deau
Available functions:
get_qualite_rivieres_station:
stations (measuring points) on rivers or water bodies where water
samples have been taken for water quality analysesget_qualite_rivieres_operation:
sampling operations carried out at the stationsget_qualite_rivieres_analyse:
physico-chemical analyses carried out on samples prepared during
sampling operations at the stationsget_qualite_rivieres_condition_environnementale:
environmental conditions (air temperature, presence of leaves, moss,
iridescence, etc.) observed during physico-chemical sampling
operationsAPI documentation: https://hubeau.eaufrance.fr/page/api-qualite-nappes
Available functions:
get_qualite_nappes_stations:
measuring stations for groundwater qualityget_qualite_nappes_analyses:
analysis results of quality measurementAPI Documentation https://hubeau.eaufrance.fr/page/api-temperature-continu
Available functions:
get_temperature_stations:
temperature stations in French riversget_temperature_chronique:
river temperature time seriesA complete documentation is available on the package website: https://inrae.github.io/hubeau/
The authors would like to thank the European Commission and the French National Research Agency (ANR) for funding in the frame of the collaborative international consortium IN-WOP financed under the 2018 Joint call of the WaterWorks2017 ERA-NET Cofund. This ERA-NET is an integral part of the activities developed by the Water JPI.
