Skip to content

s4f-leipzig/warmingstripes

Repository files navigation

WARMINGSTRIPES

Warmingstripes show the temperature 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 original warming stripes invented by Ed Hawkins (https://showyourstripes.info/faq) and shall show the effects of the climate crisis on temperature.

This code creates warmingstripes 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 of Germany as you want or for the whole country.

Example

Warmingstripes for Germany for each April in 1881 - 2020, blue = negative anomaly (lower mean temperature than average), red = positive anomaly (higher mean temperature than average). Warming Stripes for April 1881 - 2020 for Germany

Prerequisits

The code is written in Python3 but can be easily adjusted to Python2.7 (see line 79 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 19)
  2. chose local file path to store raw data as txt-file (line 21)
  3. chose federal states you want to plot (line 113) by adding the number of the state according to dictionary (lines 104 - 109)

Not Mandatory Adjustments, Just To Play Around

  1. adjust colorbar by changing colors in function make_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

About

Code to plot warming stripes for each month

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages