waterLevel | R Documentation |
Functions to compute 1d water level information and store it as
column w
of an S4 object of type WaterLevelDataFrame.
waterLevel(wldf, shiny = FALSE)
waterLevelPegelonline(wldf, shiny = FALSE)
wldf |
an object of class WaterLevelDataFrame. |
shiny |
|
waterLevel
interpolates 1d water level along the river axis
of Elbe and Rhine based on daily averaged, mostly validated gauging data
stored in the internal dataset df.gauging_data
. Internally
stored gauging data are available from 1960-01-01 until yesterday.
waterLevelPegelonline
carries out the interpolation with gauging
data obtained through a
REST
service from https://pegelonline.wsv.de/gast/start. The gauging data
from PEGELONLINE have a high
temporal resolution of 15 minutes, enabling meaningful linear temporal
interpolation. Since data from
PEGELONLINE
expire after 31 days, this function is only applicable for
WaterLevelDataFrames with a time
-slot set to
appropriate values within the last 31 days before function call.
An object of class WaterLevelDataFrame.
busch_einheitliche_2009hyd1d
\insertRefhkv_hydrokontor_erstellung_2014hyd1d
\insertRefbundesanstalt_fur_gewasserkunde_flys_2016hyd1d
\insertRefwsv_pegelonline_2018hyd1d
plotShiny
# waterLevel
wldf <- WaterLevelDataFrame(river = "Elbe",
time = as.POSIXct("2016-12-21"),
station = seq(257, 262, 0.1))
wldf <- waterLevel(wldf)
# waterLevelPegelonline
wldf1 <- wldf
setTime(wldf1) <- Sys.time() - as.difftime(60, units = "mins")
wldf1 <- waterLevelPegelonline(wldf1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.