-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
74 lines (52 loc) · 1.71 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# NRWgauges
<!-- badges: start -->
[![R-CMD-check](https://github.com/dimfalk/NRWgauges/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/dimfalk/NRWgauges/actions/workflows/R-CMD-check.yaml)
[![codecov](https://codecov.io/gh/dimfalk/NRWgauges/branch/main/graph/badge.svg?token=3JJOI51OT8)](https://codecov.io/gh/dimfalk/NRWgauges)
<!-- badges: end -->
NRWgauges aims to grant easy access to gauge (meta-)data published on distributed web-based platforms by various water management associations in North Rhine-Westphalia, Germany.
As of today, the following platforms can be harvested:
- pegel.eglv.de (Emschergenossenschaft / Lippeverband)
## Installation
You can install the development version of NRWgauges with:
``` r
# install.packages("devtools")
devtools::install_github("dimfalk/NRWgauges")
```
and load the package via
```{r}
library(NRWgauges)
```
## Basic example: EGLV
### Get gauge metadata, locations and latest measurements
```{r}
# fetch all available gauges
gauges <- get_eglv_gauges()
gauges
# ... eventually filter the dataset to the objects you're interested in
gauge <- gauges |> dplyr::filter(id == "10119")
gauge
```
### Get (extended) metadata for selected gauges
```{r}
get_eglv_meta(gauge)
```
### Get available measurements for selected gauges
```{r, warning = FALSE}
# fetch water level measurements
meas <- get_eglv_measurements(gauge)[[1]]
meas
class(meas)
plot(meas, main = "10119 Adenauerallee", ylab = "Water level [cm]")
```