rdwd is an R package to select, download and read climate data from the German Weather Service (Deutscher Wetterdienst, DWD). They provide over 25 thousand datasets with weather observations online at ftp://ftp-cdc.dwd.de/pub/CDC/observations_germany/climate.
rdwd is available on CRAN:
It has been presented at FOSDEM in Brussels, featured in Rstudios data package list and written about in OSOR.
Usage of the package usually looks something like the following:
# download and install the rdwd package (only needed once): 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) # Inspect the data.frame: str(clim)
You can also select datasets with the interactive map. Further instructions and examples are available in the package vignette.
vignette("mapDWD") # interactive map, likely faster than CRAN link above vignette("rdwd") # package instructions and examples
A real-life usage example of the package can be found at https://github.com/brry/prectemp/blob/master/Code_analysis.R
I’m looking for someone to help implement multiple downloads in dataDWD via e.g.
wget. The requirements are as follows: