Coder Social home page Coder Social logo

radolan-scraper's Introduction

RADOLAN Scraper

A pipeline to scrape and transform RADOLAN data into netcdf. RADOLAN is a product from the Deutscher Wetter Dienst that provides high resolution precipitation records from 2005 - present for Germany.

While the data is openly available, it is not in a format that can be easily processed. The included pipeline downloads and transforms data into a single netcdf file, that can be processed by standard tools like xarray.

Installation

Create an environment, using the environment manager of your choice and run

pip install -r requirements.txt

Usage

Add a .env file in the top level directory specifying a path to store the data. Additionally, you can specify a logging configuration, but that is not required as a sensible default is included.

BASE_DATA_DIR=/my/data/dir/
LOG_CFG=logging.yaml  # Not required. 

By default the pipeline will download all data for the year 2005 - 2018. While the pipelines has constant memory requirements, it will create files consuming ~50G disk space. To only download data for a subset of years, edit the __main__ section in pipeline.py directly. Then run

python radonlan_scraper/pipeline.py

Further processing

Once the pipeline ran through, you can visualize the data, for example using xarray

import xarray as xr
ds = xr.open_dataset("path/to/combined.nc")
ds["rain"][2000:2006].plot.imshow("x", "y", col="time", col_wrap=3, robust=True, origin="upper")

example rain visualization

radolan-scraper's People

Contributors

jarnorfb avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

trellixvulnteam

radolan-scraper's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.