Git Product home page Git Product logo

droughtstripes's Introduction

DROUGHTSTRIPES (Duerrestreifen)

Droughtstripes show the precipitation anomaly for each year (or a specific month of a year) in comparison to the reference period (here: 1971 - 2000). The idea is based on the warming stripes invented by Ed Hawkins (https://showyourstripes.info/faq) and shall show the effects of the climate crisis on precipitation.

This code creates droughtstipes from data of the Deutsche Wetterdienst (DWD) for a selectable month of the year. You can chose to create a plot for as many federal states as you want or for the whole country.

Example

Droughtstripes for Germany and for each April in 1881 - 2020, brown = negative anomaly (less precipitation than average), turquoise = positive anomaly (more precipitation than average). Droughtstripes for April 1881 - 2020 for Germany

Prerequisits

The code is written in Python3 but can be easily adjusted to Python2.7 (see line 37 of the code for information)

Required Python Packages

numpy
matplotlib
pandas
urllib

Manual Adjustments To Be Made When Using This Code

Mandatory

  1. chose month you want to plot (line 18)
  2. chose local file path to store raw data as txt-file (line 20)
  3. chose federal states you want to plot (line 71) by adding the number of the state according to dictionary (lines 62-67)

Not Mandatory Adjustments, Just To Play Around

  1. adjust colorbar by changing colors in function custom_div_cmap or use a predifined colorbar from matplotlib
  2. adjust reference period to see how this changes the anomalies
  3. adjust the limits of the colorbar by chosing different standard deviations

Authors

Scientists for Future Leipzig

droughtstripes's People

Contributors

frydaynext avatar mttfst avatar stef-firestone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

geowazm

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.