View source: R/getPegelonlineW.R
getPegelonlineW | R Documentation |
Download and temporarily interpolate or average water level data from https://pegelonline.wsv.de/gast/start.
getPegelonlineW(gauging_station, time, uuid)
gauging_station |
must be type |
time |
must be type |
uuid |
must be type |
This functions queries online water level data through the
REST
service of PEGELONLINE. The
gauging data from PEGELONLINE
have a high temporal resolution of 15 minutes, enabling meaningful linear
temporal interpolation if time
is supplied with type
c("POSIXct", "POSIXt")
. If time
is
supplied with type Date
water level data are aggregated to daily
averages.
Since data from PEGELONLINE expire after 31 days, this function is only applicable to query unvalidated water level values for the last 31 days before function call. If you need older and validated data, feel free to contact the data service at the Federal Institute of Hydrology by email (Datenstelle-M1@bafg.de).
The returned output depends on the type of the input parameter
time
. If time
is type
c("POSIXct", "POSIXt")
the
returned object contains queried and interpolated water levels. If
time
is type Date
the returned object contains daily averaged
water levels.
wsv_pegelonline_2018hyd1d
waterLevelPegelonline
getPegelonlineW(gauging_station = "DESSAU", time = Sys.time() - 3600)
getPegelonlineW(gauging_station = "DESSAU", time = Sys.Date() - 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.