rdwd
build 2021-04-08 with rdwd version 1.4.18 and dwdradar version 0.2.4
1 Intro
rdwd
is an R package to handle data from the German Weather Service (DWD).
This website has 3 main sections:
- time series from meteorological stations (chapters 3-7)
- raster data from radar + interpolation (chapter 8)
- use cases, i.e. extended usage examples (chapter 9-end)
Important links:
- further details on the data: DWD FTP server documentation
- website source code and files
- feedback is very welcome via github or berry-b@gmx.de!
The remainder of this intro chapter is a copy of the github README file.
rdwd
is an R package to select, download and read climate data from the
German Weather Service (Deutscher Wetterdienst, DWD).
The DWD provides thousands of datasets with weather observations online at
opendata.dwd.de.
Since May 2019, rdwd
also supports reading the Radolan (binary) raster data at
grids_germany.
It has been presented at FOSDEM 2017 and UseR!2017 in Brussels and e-Rum2020, featured in Rstudio’s data package list and written about in OSOR.
1.1 Usage
Usage for observational weather data from the measuring stations usually looks something like the following:
# Download and install (once only):
install.packages("rdwd")
# Load the package into library (needed in every R session):
library(rdwd)
# select a dataset (e.g. last year's daily climate data from Potsdam city):
<- selectDWD("Potsdam", res="daily", var="kl", per="recent")
link
# Actually download that dataset, returning the local storage file name:
<- dataDWD(link, read=FALSE)
file
# Read the file from the zip folder:
<- readDWD(file, varnames=TRUE)
clim
# Inspect the data.frame:
str(clim)
For data interpolated onto a 1 km raster, including radar data up to the last hour, see the corresponding chapter on the website.
1.2 New to R
If you’re new to R, these links might help you to get started:
back to rdwd
:
1.3 Installation
1.3.1 Normal
install.packages("rdwd")
1.3.2 Latest version
::updateRdwd()
rdwd# checks version and (if needed) calls remotes::install_github("brry/rdwd", build_vignettes=TRUE)
1.3.3 Full
Suggested (not mandatory) dependencies:
install.packages("rdwd", dependencies="Suggests")
RCurl
for indexFTP and selectDWD(…, current=TRUE)data.table
,bit64
for readDWD(…, fread=TRUE)raster
,R.utils
,ncdf4
,dwdradar
for readDWD with gridded datareadr
for readDWD.stand(…, fast=TRUE)knitr
,rmarkdown
,testthat
,roxygen2
,devtools
,remotes
,XML
for local testing, development and documentationleaflet
,OSMscale
,sp
for interactive/static maps, see OSMscale installation tips
Note: on Linux (Ubuntu), install RCurl
via the terminal (CTRL+ALT+T, note lowercase rcurl):
sudo apt install r-cran-rcurl