| Title: | Access Water Quality and Quantity Information from the RWS WADAR Database |
|---|---|
| Description: | A wrapper for the 'Swagger Application Programming Interface' that serves data from the WADAR database of Rijkswaterstaat (RWS). More information at <https://www.rijkswaterstaat.nl/water/waterdata>. |
| Authors: | Pepijn de Vries [aut, cre] (ORCID: <https://orcid.org/0000-0002-7961-6646>), Marinka van Puijenbroek [aut] (ORCID: <https://orcid.org/0000-0003-1237-6403>) |
| Maintainer: | Pepijn de Vries <[email protected]> |
| License: | GPL (>= 3) |
| Version: | 0.0.0.9002 |
| Built: | 2026-12-04 09:18:41 UTC |
| Source: | https://github.com/pepijn-devries/rwswadar |
Query specific fields in the database and find out if there are records available, given the specified restraints.
rws_check(AquoMetadataLijst, LocatieLijst, Periode, ...)rws_check(AquoMetadataLijst, LocatieLijst, Periode, ...)
AquoMetadataLijst |
A named |
LocatieLijst |
A |
Periode |
A vector of two values: a start datetime and end datetime.
The vector can consist of any type that can be converted into a datetime
object by |
... |
Ignored. |
A named list indicating if records are available from the data
base given the specified restrictions.
if (interactive()) { rws_check( AquoMetadataLijst = c( Grootheid = "WATHTE", Hoedanigheid = "NAP", Compartiment = "OW" ), LocatieLijst = "denhelder.marsdiep", Periode = c("1988-01-27", "2023-01-27") ) }if (interactive()) { rws_check( AquoMetadataLijst = c( Grootheid = "WATHTE", Hoedanigheid = "NAP", Compartiment = "OW" ), LocatieLijst = "denhelder.marsdiep", Periode = c("1988-01-27", "2023-01-27") ) }
Need to know which fields you can query, when requesting data? Consult the catologue with this function to find out.
rws_get_catalogue( BemonsteringsApparaten = FALSE, BemonsteringsMethoden = FALSE, BemonsteringsSoorten = FALSE, BioTaxon = FALSE, BioTaxonType = FALSE, Compartimenten = FALSE, Eenheden = FALSE, Grootheden = FALSE, Hoedanigheden = FALSE, MeetApparaten = FALSE, Organen = FALSE, Parameters = FALSE, Typeringen = FALSE, Groeperingen = FALSE, WaardeBepalingsmethoden = FALSE, WaardeBepalingstechnieken = FALSE, WaardeBewerkingsmethoden = FALSE, ProcesTypes = FALSE, simplify = TRUE, join = simplify, ... )rws_get_catalogue( BemonsteringsApparaten = FALSE, BemonsteringsMethoden = FALSE, BemonsteringsSoorten = FALSE, BioTaxon = FALSE, BioTaxonType = FALSE, Compartimenten = FALSE, Eenheden = FALSE, Grootheden = FALSE, Hoedanigheden = FALSE, MeetApparaten = FALSE, Organen = FALSE, Parameters = FALSE, Typeringen = FALSE, Groeperingen = FALSE, WaardeBepalingsmethoden = FALSE, WaardeBepalingstechnieken = FALSE, WaardeBewerkingsmethoden = FALSE, ProcesTypes = FALSE, simplify = TRUE, join = simplify, ... )
BemonsteringsApparaten, BemonsteringsMethoden, BemonsteringsSoorten, BioTaxon, BioTaxonType, Compartimenten, Eenheden, Grootheden, Hoedanigheden, MeetApparaten, Organen, Parameters, Typeringen, Groeperingen, WaardeBepalingsmethoden, WaardeBepalingstechnieken, WaardeBewerkingsmethoden, ProcesTypes
|
Fields for which to obtain valid Codes for querying. If |
simplify |
A |
join |
A |
... |
Ignored. |
Returns a list. If simplify=TRUE it will contain data.frames.
if (interactive()) { rws_get_catalogue(Grootheden = TRUE, Eenheden = TRUE) }if (interactive()) { rws_get_catalogue(Grootheden = TRUE, Eenheden = TRUE) }
Not required for accessing the services. It contains technical specifications and data structures of the RWS WADAR data Swagger API.
rws_get_docs(...)rws_get_docs(...)
... |
Ignored |
if (interactive()) { rws_get_docs() }if (interactive()) { rws_get_docs() }
Download observations for a specific query including a location and period.
rws_get_observation(AquoMetadataLijst, Locatie, Periode, raw = FALSE, ...)rws_get_observation(AquoMetadataLijst, Locatie, Periode, raw = FALSE, ...)
AquoMetadataLijst |
A named |
Locatie |
A location code. A overview of valid codes
can be obtained with |
Periode |
A vector of two values: a start datetime and end datetime.
The vector can consist of any type that can be converted into a datetime
object by |
raw |
A |
... |
Arguments passed on to
|
Returns a named list in case of raw=TRUE, or a data.frame
otherwise.
if (interactive()) { rws_get_observation( AquoMetadataLijst = c( Grootheid = "WATHTE", Hoedanigheid = "NAP", Compartiment = "OW", ProcesType = "meting" ), Locatie = "denhelder.marsdiep", Periode = c("2022-12-27", "2023-01-27") ) }if (interactive()) { rws_get_observation( AquoMetadataLijst = c( Grootheid = "WATHTE", Hoedanigheid = "NAP", Compartiment = "OW", ProcesType = "meting" ), Locatie = "denhelder.marsdiep", Periode = c("2022-12-27", "2023-01-27") ) }
Use the leaflet package to visualise locations. When hovering over
locations with the mouse pointer, the location code will be displayed.
rws_show_locations(...)rws_show_locations(...)
... |
Ignored. |
if (interactive() && requireNamespace("leaflet")) { rws_show_locations() }if (interactive() && requireNamespace("leaflet")) { rws_show_locations() }