A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

rdwd

An R package to select, download and read climate data from the German Weather Service.
https://github.com/brry/rdwd

Category: Atmosphere
Sub Category: Meteorological Observation and Forecast

Last synced: about 21 hours ago
JSON representation

Repository metadata

download climate data from DWD (German Weather Service)

README.md

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 with a 5 Minute video at e-Rum2020,
featured in Rstudio's data package list,
written about in OSOR and used e.g. for
NDR: Starkregen im Norden.
Development of rdwd was triggered 2016 by flash flood research in Braunsbach
(1, 2,
3,
4).

- HELP NEEDED
- with the new 5-minute data (April 2022), the fileIndex etc are getting very big.
- ideas on package size reduction are welcome at  https://github.com/brry/rdwd/issues/35

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) # can happen directly in dataDWD

# Inspect the data.frame:
str(clim)
# Quick time series graphic:
plotDWD(clim, "FM.Windgeschwindigkeit")

For data interpolated onto a 1 km raster, including radar data up to the last hour,
see the corresponding chapter on the website.

App

Since April 2023, there is an interactive app to compare weather periods:

With rdwd::app(), you can run this locally with cached data, i.e. faster responses.

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)
  • terra, stars, R.utils, ncdf4, dwdradar for readDWD with gridded data
  • readr for readDWD.stand(..., fast=TRUE)
  • knitr, rmarkdown, testthat, roxygen2, devtools, remotes, XML, gsheet for local testing, development and documentation
  • leaflet, OSMscale for interactive/static maps, see rJava installation tips
  • shiny for the interactive weather comparison app

Note: on Linux (Ubuntu), install RCurl via the terminal (CTRL+ALT+T, note lowercase rcurl):

sudo apt install r-cran-rcurl

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 7 days ago

Total Commits: 894
Total Committers: 3
Avg Commits per committer: 298.0
Development Distribution Score (DDS): 0.008

Commits in past year: 33
Committers in past year: 2
Avg Commits per committer in past year: 16.5
Development Distribution Score (DDS) in past year: 0.03

Name Email Commits
brry b****l@h****m 887
Avraham Adler A****r@g****m 6
Markus ›fin‹ Hametner f****b@x****g 1

Committer domains:


Issue and Pull Request metadata

Last synced: 2 days ago

Total issues: 43
Total pull requests: 3
Average time to close issues: 3 months
Average time to close pull requests: about 18 hours
Total issue authors: 24
Total pull request authors: 3
Average comments per issue: 3.05
Average comments per pull request: 1.67
Merged pull request: 3
Bot issues: 0
Bot pull requests: 0

Past year issues: 3
Past year pull requests: 1
Past year average time to close issues: about 2 months
Past year average time to close pull requests: about 9 hours
Past year issue authors: 3
Past year pull request authors: 1
Past year average comments per issue: 2.67
Past year average comments per pull request: 2.0
Past year merged pull request: 1
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/brry/rdwd

Top Issue Authors

  • brry (15)
  • NandhiniS08 (3)
  • rubran (2)
  • yannikbuhl (2)
  • phit0 (2)
  • psteinb (1)
  • fdetsch (1)
  • Bernd-Vogelgesang (1)
  • ChrisHH (1)
  • Mightynasty (1)
  • PThuer (1)
  • ERottler (1)
  • ckluss (1)
  • tillschwoerer (1)
  • EtienneClaverie (1)

Top Pull Request Authors

  • aadler (1)
  • fin (1)
  • brry (1)

Top Issue Labels

  • enhancement (16)
  • bug (9)
  • question (4)
  • update file index (4)
  • invalid (3)
  • duplicate (2)
  • wontfix (1)
  • help wanted (1)

Top Pull Request Labels


Package metadata

cran.r-project.org: rdwd

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

  • Homepage: https://github.com/brry/rdwd
  • Documentation: http://cran.r-project.org/web/packages/rdwd/rdwd.pdf
  • Licenses: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
  • Latest release: 1.8.0 (published almost 2 years ago)
  • Last Synced: 2025-04-25T13:03:12.499Z (2 days ago)
  • Versions: 16
  • Dependent Packages: 1
  • Dependent Repositories: 3
  • Downloads: 571 Last month
  • Docker Downloads: 42,010
  • Rankings:
    • Stargazers count: 5.623%
    • Forks count: 6.901%
    • Average: 12.805%
    • Docker downloads count: 14.104%
    • Downloads: 15.868%
    • Dependent repos count: 16.76%
    • Dependent packages count: 17.575%
  • Maintainers (1)

Dependencies

DESCRIPTION cran
  • R >= 2.10 depends
  • berryFunctions >= 1.21.11 imports
  • pbapply * imports
  • OSMscale * suggests
  • R.utils * suggests
  • RCurl * suggests
  • XML * suggests
  • bit64 * suggests
  • data.table * suggests
  • devtools * suggests
  • dwdradar * suggests
  • knitr * suggests
  • leaflet * suggests
  • ncdf4 * suggests
  • raster * suggests
  • readr * suggests
  • remotes * suggests
  • rgdal * suggests
  • rmarkdown * suggests
  • roxygen2 * suggests
  • sp * suggests
  • stars * suggests
  • terra * suggests
  • testthat * suggests

Score: 16.088743871286123