rdwd v1.4.0

0

Monthly downloads

0th

Percentile

Select and Download Climate Data from 'DWD' (German Weather Service)

Handle climate data from the 'DWD' ('Deutscher Wetterdienst', see <https://www.dwd.de/EN/climate_environment/cdc/cdc.html> for more information). Choose observational time series from meteorological stations with 'selectDWD()'. Find raster data from radar and interpolation according to <https://bookdown.org/brry/rdwd/raster-data.html>. Download (multiple) data sets with progress bars and no re-downloads through 'dataDWD()'. Read both tabular observational data and binary gridded datasets with 'readDWD()'.

Readme

rdwd

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.

rdwd is available on CRAN: CRAN_Status_Badge downloads Rdoc "rdwd dependencies"

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.

Documentation

A website with more information, examples, use cases and an interactive map of the DWD stations can be found at https://bookdown.org/brry/rdwd

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):
link <- selectDWD("Potsdam", res="daily", var="kl", per="recent")

# Actually download that dataset, returning the local storage file name:
file <- dataDWD(link, read=FALSE)

# Read the file from the zip folder:
clim <- readDWD(file, varnames=TRUE)

# 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.

New to R

If you're new to R, these links might help you to get started:

back to rdwd:

Installation

Normal

install.packages("rdwd")

Latest version

rdwd::updateRdwd()
# checks version and (if needed) calls  remotes::install_github("brry/rdwd", build_vignettes=TRUE)

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 data
  • readr for readDWD.stand(..., fast=TRUE)
  • knitr, rmarkdown, testthat, roxygen2, devtools, remotes, XML for local testing, development and documentation
  • leaflet, 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

Functions in rdwd

Name Description
DEU Map of German states (Bundeslaender) from GADM through the raster package
checkSuggestedPackage check suggested package for availability
createIndex Create file and meta index of the DWD CDC FTP Server
checkIndex check indexes
addBorders add country and Bundesland borders to a map
fileType determine DWD file type
findID find DWD weather station ID from name
lldist distance between lat-long coordinates
localtestdir local test data directory
projectRasterDWD project DWD raster data
rdwd Handle Climate Data from DWD (German Weather Service)
dirDWD directory management for rdwd
metaInfo Information for a station ID on the DWD CDC FTP server
readDWD.radar read dwd gridded radolan radar data
dataDWD Download data from the DWD CDC FTP Server
newColumnNames Enhance readDWD column names
nearbyStations Find DWD stations close to given coordinates
dwdparams DWD parameter explanations
plotRadar plot radar products on a pretty map
rdwdquiet global quiet option for rdwd
EUR Map of Western European countries through the rworldmap package
dwdbase DWD FTP Server base URL
readDWD.stand read subdaily/standard_format dwd data
index Indexes of files and metadata on the DWD CDC FTP server
rowDisplay Create leaflet map popup from data.frame rows
readMeta Process data from the DWD CDC FTP Server
indexFTP Create a recursive index of an FTP Server
readDWD.multia read multi_annual dwd data
readDWD.asc read dwd gridded radolan asc data
readDWD Process data from the DWD CDC FTP Server
readDWD.nc read dwd netcdf data
readVars Process data from the DWD CDC FTP Server
readDWD.raster read dwd gridded raster data
readDWD.binary read dwd gridded radolan binary data
updateRdwd Update rdwd development version
release_questions Reminders when using devtools::release
runLocalTests run local tests of rdwd
updateIndexes update rdwd indexes
selectDWD Select data from the DWD CDC FTP Server
readDWD.data read regular dwd data
readDWD.meta read dwd metadata (Beschreibung*.txt files)
No Results!

Vignettes of rdwd

Name
hex.png
rdwd.Rmd
No Results!

Last month downloads

Details

Date 2020-07-31
License GPL (>= 2)
Encoding UTF-8
URL https://github.com/brry/rdwd
RoxygenNote 7.1.1
BugReports https://github.com/brry/rdwd/issues
VignetteBuilder knitr
NeedsCompilation no
Packaged 2020-07-31 07:20:43 UTC; berry
Repository CRAN
Date/Publication 2020-08-02 01:10:02 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/rdwd)](http://www.rdocumentation.org/packages/rdwd)