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.

Usage of the package will usually look 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)

# view package documentation:
?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

Copy Link

Version

Install

install.packages('rdwd')

Monthly Downloads

587

Version

0.7.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Berry Boessenkool

Last Published

February 3rd, 2017

Functions in rdwd (0.7.0)

findID

find DWD weather station ID from name
dataDWD

Download data from the DWD CDC FTP Server
metaIndex

station info (meta data) available on the DWD CDC FTP server
fileIndex

Files available on the DWD CDC FTP server
createIndex

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

Create a recursive index of the DWD CDC FTP Server
geoIndex

coordinatewise station info (meta data) available on the DWD CDC FTP server
dirDWD

directory management for rdwd
metaInfo

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

file management for rdwd
release_questions

Reminders when using devtools::release
rowDisplay

create display character string for leaflet map popup from data.frame rows
rdwd

Download Climate Data from DWD (German Weather Service)
readDWD

Process data from the DWD CDC FTP Server
selectDWD

Select data from the DWD CDC FTP Server