Learn R Programming

⚠️There's a newer version (1.8.0) of this package.Take me there.

rdwd

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 2017 and UseR!2017 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.
Installation instructions and more 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

help

I'm looking for someone to help implement multiple downloads in dataDWD via e.g. curl or wget. The requirements are as follows:

  • works cross-platform
  • is called from R
  • has as few dependencies as possible
  • optimally enables a progress bar

Copy Link

Version

Install

install.packages('rdwd')

Monthly Downloads

477

Version

0.10.2

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Berry Boessenkool

Last Published

May 29th, 2018

Functions in rdwd (0.10.2)

findID

find DWD weather station ID from name
lldist

distance between lat-long coordinates
rowDisplay

Create leaflet map popup from data.frame rows
selectDWD

Select data from the DWD CDC FTP Server
metaInfo

Information for a station ID on the DWD CDC FTP server
createIndex

Create file and meta index of the DWD CDC FTP Server
rdwd

Download Climate Data from DWD (German Weather Service)
dataDWD

Download data from the DWD CDC FTP Server
readDWD

Process data from the DWD CDC FTP Server
release_questions

Reminders when using devtools::release
nearbyStations

Find DWD stations close to given coordinates
dirDWD

directory management for rdwd
index

Indexes of files and metadata on the DWD CDC FTP server
indexFTP

Create a recursive index of the DWD CDC FTP Server