rdwd

download climate data from DWD (German Weather Service)

https://github.com/brry/rdwd

Science Score: 39.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 4 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.0%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

download climate data from DWD (German Weather Service)

Basic Info
Statistics
  • Stars: 75
  • Watchers: 10
  • Forks: 14
  • Open Issues: 2
  • Releases: 14
Created over 9 years ago · Last pushed 11 months ago
Metadata Files
Readme Changelog

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: <!-- badges: start --> CRAN_Status_Badge downloads Lifecycle: stable <!-- badges: end -->

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).

diff - 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:

```R

Download and install (once only):

install.packages("rdwd")

update to the most recent fileIndex (ca monthly):

rdwd::updateRdwd()

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

R install.packages("rdwd")

Latest version

```R rdwd::updateRdwd()

checks version and (if needed) calls remotes::installgithub("brry/rdwd", buildvignettes=TRUE)

```

Full

Suggested (not mandatory) dependencies:
R 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

  • Name: Berry Boessenkool
  • Login: brry
  • Kind: user
  • Location: Potsdam, Germany

GitHub Events

Total
  • Create event: 1
  • Release event: 1
  • Issues event: 17
  • Watch event: 5
  • Issue comment event: 11
  • Push event: 22
  • Fork event: 2
Last Year
  • Create event: 1
  • Release event: 1
  • Issues event: 17
  • Watch event: 5
  • Issue comment event: 11
  • Push event: 22
  • Fork event: 2

Committers

Last synced: 10 months ago

All Time
  • Total Commits: 923
  • Total Committers: 4
  • Avg Commits per committer: 230.75
  • Development Distribution Score (DDS): 0.021
Past Year
  • Commits: 43
  • Committers: 1
  • Avg Commits per committer: 43.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
brry b****l@h****m 904
brry b****b@g****e 12
Avraham Adler A****r@g****m 6
Markus ›fin‹ Hametner f****b@x****g 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 50
  • Total pull requests: 3
  • Average time to close issues: 2 months
  • Average time to close pull requests: about 18 hours
  • Total issue authors: 25
  • Total pull request authors: 3
  • Average comments per issue: 2.66
  • Average comments per pull request: 1.67
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 10
  • Pull requests: 1
  • Average time to close issues: 10 days
  • Average time to close pull requests: about 9 hours
  • Issue authors: 4
  • Pull request authors: 1
  • Average comments per issue: 0.6
  • Average comments per pull request: 2.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • brry (22)
  • NandhiniS08 (3)
  • rubran (2)
  • yannikbuhl (2)
  • psteinb (1)
  • fdetsch (1)
  • Bernd-Vogelgesang (1)
  • ChrisHH (1)
  • Mightynasty (1)
  • PThuer (1)
  • ERottler (1)
  • ckluss (1)
  • tillschwoerer (1)
  • EtienneClaverie (1)
  • MxNl (1)
Pull Request Authors
  • fin (2)
  • brry (1)
  • aadler (1)
Top Labels
Issue Labels
enhancement (16) bug (9) question (4) update file index (4) invalid (3) duplicate (2) wontfix (1) help wanted (1)
Pull Request Labels

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