rdwd is an R package to select, download and read climate data from the
German Weather Service (Deutscher Wetterdienst, DWD).
They provide over 228 thousand datasets with weather observations online at
Usage of the package usually looks something like the following:
# download and install the rdwd package (only needed once): install.packages("rdwd") # if wanted, latest development version, incl. vignettes: remotes::install_github("brry/rdwd", build_opts="--no-manual") # 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)
You can also select datasets with the interactive map.
Installation instructions and more examples are available in the package vignette.
Long actual-usage examples can be found in the use cases vignette.
vignette("mapDWD") # interactive map, likely faster than CRAN link above vignette("rdwd") # package instructions and examples vignette("cases") # longer use case examples
I'm looking for someone to help implement multiple downloads in dataDWD via e.g.
The requirements are as follows:
- works cross-platform
- is called from R
- has as few dependencies as possible
- does not fail completely at a single failure, e.g. can be called within
- optimally enables a progress bar