Skip to content
GitLab
    • Explore Projects Groups Topics Snippets
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • hubeau hubeau
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

La forge institutionnelle d'INRAE étant en production depuis le 10 juin 2025, nous vous invitons à y créer vos nouveaux projets.

  • IN-WOP
  • hubeauhubeau
  • Merge requests
  • !2
An error occurred while fetching the assigned milestone of the selected merge_request.

Resolve "Add French gauging station daily data"

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Dorchies David requested to merge 14-add-french-gauging-station-daily-data into master 3 years ago
  • Overview 0
  • Commits 1
  • Pipelines 3
  • Changes 4

Closes #14 (closed)

Edited 3 years ago by Dorchies David
Compare
  • master (base)

and
  • latest version
    962d99d1
    1 commit, 3 years ago

4 files
+ 66
− 0

    Preferences

    File browser
    Compare changes
R/get_hydrometrie_obs_elab.R 0 → 100644
+ 23
− 0
  • View file @ 962d99d1

  • Edit in single-file editor

  • Open in Web IDE

#' Retrieve hydrometric elaborate observations from API "Hydrométrie"
#'
#' See the API documentation for available filter parameters: \url{https://hubeau.eaufrance.fr/page/api-hydrometrie#operations-hydrometrie-observationsElaborees}
#'
#' @template param_get_common
#'
#' @return a [tibble::tibble] with all available parameters in columns and one row by time step and by station.
#' @export
#'
#' @examples
#' # Retrieve the hydrometric last real time observed discharge at station 'H020302002'
#' get_hydrometrie_obs_elab(list(code_entite = "H0203020", grandeur_hydro_elab = "QmM"))
get_hydrometrie_obs_elab <- function(params,
cfg = config::get(file = system.file("config.yml",
package = "hubeau"))) {
l <- doApiQuery(
api = "hydrometrie",
operation = "obs_elab",
params = params,
cfg = cfg
)
convert_list_to_tibble(l)
}
inst/config.yml
+ 15
− 0
  • View file @ 962d99d1

  • Edit in single-file editor

  • Open in Web IDE


@@ -150,6 +150,21 @@ default:
- latitude
- longitude
- timestep
obs_elab:
path: obs_elab
fields:
- bbox
- code_entite
- cursor
- date_debut_obs_elab
- date_fin_obs_elab
- distance
- fields
- grandeur_hydro_elab
- latitude
- longitude
- resultat_max
- resultat_min
niveaux_nappes:
path: v1/niveaux_nappes
operations:
man/get_hydrometrie_obs_elab.Rd 0 → 100644
+ 27
− 0
  • View file @ 962d99d1

  • Edit in single-file editor

  • Open in Web IDE

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_hydrometrie_obs_elab.R
\name{get_hydrometrie_obs_elab}
\alias{get_hydrometrie_obs_elab}
\title{Retrieve hydrometric elaborate observations from API "Hydrométrie"}
\usage{
get_hydrometrie_obs_elab(
params,
cfg = config::get(file = system.file("config.yml", package = "hubeau"))
)
}
\arguments{
\item{params}{a \link{list} the list of parameters of the queries and their values in the format \code{list(ParamName = "Param value", ...)}, use the function \link{get_available_params} for a list of the available parameters for a given operation in an API and see the API documentation for the complete list of available filter parameters}
\item{cfg}{a \link{config} object Configuration of the communication. Use by default the internal package
configuration}
}
\value{
a \link[tibble:tibble]{tibble::tibble} with all available parameters in columns and one row by time step and by station.
}
\description{
See the API documentation for available filter parameters: \url{https://hubeau.eaufrance.fr/page/api-hydrometrie#operations-hydrometrie-observationsElaborees}
}
\examples{
# Retrieve the hydrometric last real time observed discharge at station 'H020302002'
get_hydrometrie_obs_elab(list(code_entite = "H0203020", grandeur_hydro_elab = "QmM"))
}
NAMESPACE
+ 1
− 0
  • View file @ 962d99d1

  • Edit in single-file editor

  • Open in Web IDE


@@ -2,6 +2,7 @@
export(doApiQuery)
export(get_available_params)
export(get_hydrometrie_obs_elab)
export(get_hydrometrie_observations_tr)
export(get_hydrometrie_sites)
export(get_hydrometrie_stations)
Assignee
Dorchies David's avatar
Dorchies David
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
0
0 Participants
Reference:
Source branch: 14-add-french-gauging-station-daily-data

Menu

Explore Projects Groups Topics Snippets