File:Sahel rainfall timeseries de.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 1,200 × 500 pixels, file size: 21 KB)

Captions

Captions

Add a one-line explanation of what this file represents
 
W3C-validity not checked.

Summary[edit]

Description
English: More than a century of rainfall data in the Sahel show an unusually wet period from 1950 until 1970 (positive index values), followed by extremely dry years from 1970 to 1990 (negative index values). From 1990 until present rainfall returned to levels slightly below the 1898–1993 average, but year-to-year variability was high.
Deutsch: Abweichung der Sahelzonen-Niederschlagsmenge vom Mittelwert des 20. Jahrhunderts.Der Zeitraum 1950-1970 war ungewöhnlich feucht(positive Werte), der Zeitraum 1970 bis 1990 extrem trocken (negative Werte).
Date
Source Own work, based on JISAO data
Author Benedikt.Seidl
Other versions Image:Sahel_rainfall_timeseries.gif

Licensing[edit]

Public domain I, the copyright holder of this work, release this work into the public domain. This applies worldwide.
In some countries this may not be legally possible; if so:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

Quellcode[edit]

download the data:

#!/usr/bin/python
# -*- coding: utf-8 -*-

import urllib

def main():
    url = "http://jisao.washington.edu/data_sets/sahel/"
    line_before = "        +0    1    2    3    4    5    6    7    8    9\n"
    data = urllib.urlopen(url)
    for line in data:
        if line == line_before:
            for ten_years in data:
                ten_years = ten_years.strip()
                if ten_years == "":
                    break
                elements = map(int, ten_years.split())
                year_start, rain_data = elements[0], elements[1:]
                for year, rain_data in enumerate(rain_data, year_start):
                    print("{0} {1}").format(year, rain_data)

if __name__ == '__main__':
    main()

gnuplot:

#!/usr/bin/gnuplot

set terminal svg enhanced size 1200 500 fname "DejaVuSans" fsize 18
set output "Sahel_rainfall_timeseries_de.svg"

set noborder
set key reverse right bottom
set nokey
set xtics nomirror out
set ytics nomirror out
set ylabel 'Sahel Niederschlag Index'
set yrange [-4:4]
set xlabel 'Jahr'
set style line 12 lc rgb '#cccccc'
set grid ytics front linestyle 12
set xtics ("1900" 0, "1910" 10, "1920" 20, "1930" 30, "1940" 40, "1950" 50, "1960" 60, "1970" 70, "1980" 80, "1990" 90, "2000" 100, "2010" 110, "2020" 120)

set style data histogram
set style histogram cluster gap 0.2
set style fill solid noborder
set boxwidth 0.9

plot 'rain.data' u ($2/100) ti col lc rgb '#000080'

execute:

python rain.py > rain.data && gnuplot rain.dem

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current09:32, 9 July 2014Thumbnail for version as of 09:32, 9 July 20141,200 × 500 (21 KB)Benedikt.Seidl (talk | contribs)update 2013
16:33, 1 July 2008Thumbnail for version as of 16:33, 1 July 2008706 × 322 (48 KB)Benedikt.Seidl (talk | contribs)text für y-achse hinzugefügt + größere text
18:58, 28 June 2008Thumbnail for version as of 18:58, 28 June 20081,275 × 678 (95 KB)Benedikt.Seidl (talk | contribs){{Information |Description={{en|1=More than a century of rainfall data in the Sahel show an unusually wet period from 1950 until 1970 (positive index values), followed by extremely dry years from 1970 to 1990 (negative index values). From 1990 until 2004

The following page uses this file:

File usage on other wikis

The following other wikis use this file:

Metadata