fetchBafuTable: Grab daily streamflow series out of BAFU pdf tables

Description Usage Arguments Value Note Author(s) Examples

View source: R/fetchBafuTable.R

Description

The function returns daily streamflow series from pdf tables published by the BAFU (Bundesamt fuer Umwelt Schweiz) on the internet.

Usage

1
fetchBafuTable(id, year,param)

Arguments

id

integer. The id of the gauging station of interest.

year

integer. The year for which to fetch the daily series.

param

character. Parameter (Q or P) for which to fetch the daily series; Q: streamflow, P: water level.

Value

Data frame with columns 'date' (daily time steps), 'discharge' (daily mean streamflow), and 'preliminary'. The latter indicates whether the values are quality controlled and homogenised.

Note

For a few gauging stations the pdf tables have a format different from the ones normally used. This most likely results in an error and holds in particular for the station at Aare Bruegg or some pdf tables containing data before the year 2004.

Author(s)

Original code provided by Jan S.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
## Muota at Ingenbohl
d <- fetchBafuTable(id='2084',year=2010, param='Q')
head(d)

## Sempachersee at Sempach
d <- fetchBafuTable(id='2168',year=2016, param='P')
head(d)
## End(Not run)

hydro-giub/hydroBE documentation built on Sept. 20, 2019, 9:27 a.m.