Learn R Programming

hyd1d

The R package hyd1d is designed to compute 1-dimensional water level information along the German Federal Waterways Elbe and Rhine.

Installation

hyd1d is available from CRAN. To install it run:

install.packages("hyd1d")

To install the latest development version from Github run:

install.packages("devtools")
library(devtools)
devtools::install_github("bafg-bund/hyd1d")

Usage

The package hyd1d is build around the S4-class WaterLevelDataFrame. To compute and visualize 1-dimensional water level information an object of class WaterLevelDataFrame has to be initialized. Various functions included in hyd1d use these objects and compute water levels stored in the column w.

# load the package
library(hyd1d)

# initialize a WaterLevelDataFrame
wldf <- WaterLevelDataFrame(river   = "Elbe",
                            time    = as.POSIXct("2016-12-21"),
                            station = seq(257, 262, 0.1))

# compute a water level
wldf <- waterLevel(wldf, TRUE)

# and plot it
plotShiny(wldf, TRUE, TRUE, TRUE, xlim = c(256.8, 262.2))

Copy Link

Version

Install

install.packages('hyd1d')

Monthly Downloads

745

Version

0.4.6

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Arnd Weber

Last Published

August 21st, 2023

Functions in hyd1d (0.4.6)

setGaugingStations<-

Set a WaterLevelDataFrame's slot gauging_stations
hyd1d

hyd1d - 1d Water Level Interpolation along the Rivers Elbe and Rhine
setGaugingStationsMissing<-

Set a WaterLevelDataFrame's slot gauging_stations_missing
plotShiny

Plot a WaterLevelDataFrame in Shiny
getTime

Extract a WaterLevelDataFrame's slot time
subset.WaterLevelDataFrame

Subsetting WaterLevelDataFrames
setTime<-

Set a WaterLevelDataFrame's slot time
summary.WaterLevelDataFrame

WaterLevelDataFrame summary
waterLevel

Compute a 1d water level dataset
waterLevelFlood2

Compute 1d water level data through linear interpolation with neighboring gauging stations according to the INFORM 3-method Flood2 (Flut2)
getGaugingStationsMissing

Extract a WaterLevelDataFrame's slot gauging_stations_missing
rbind.WaterLevelDataFrame

Combine WaterLevelDataFrames by Rows
updateGaugingData

Update local copy of df.gauging data
waterLevelFlood1

Compute 1d water level data from the FLYS3 water level MQ and a gauging station according to the INFORM 3-method Flood1 (Flut1)
setRiver<-

Set a WaterLevelDataFrame's slot river
waterLevelFlys3InterpolateX

Interpolate FLYS3 water levels for given stations
waterLevelFlys3

Obtain 1d water level data from the FLYS3 database
getPegelonlineW

Get W from pegelonline.wsv.de for the specified gauging station and time
names<-,WaterLevelDataFrame,character-method

Set names of a WaterLevelDataFrame
waterLevelFlys3InterpolateY

Compute a 1d water level dataset based on the FLYS3 algorythms
df.gauging_station_data

Gauging station data for all WSV-run gauging stations along Elbe and Rhine
[.WaterLevelDataFrame

Extract or replace parts of a WaterLevelDataFrame
getGaugingStations

Extract a WaterLevelDataFrame's slot gauging_stations
getGaugingDataW

Get W from internal dataset df.gauging_data for the specified gauging station and time
getRiver

Extract a WaterLevelDataFrame's slot river
df.gauging_data

Gauging data for all WSV-run gauging stations along Elbe and Rhine
df.flys_sections

Reference gauging stations according to FLYS3
as.data.frame.WaterLevelDataFrame

Coerce a WaterLevelDataFrame to a data.frame
WaterLevelDataFrame-class

S4 class for 1d water level data
WaterLevelDataFrame

Initialize a WaterLevelDataFrame
df.flys

Stationary water levels from the FLYS 3-database