File:Temp-sunspot-co2.svg

From Wikimedia Commons, the free media repository

Jump to: navigation, search

Temp-sunspot-co2.svg(SVG file, nominally 720 × 540 pixels, file size: 100 KB)

Moved This image was moved to Wikimedia Commons from en.wikipedia using a bot script. All source information is still present. It requires review. Additionally, there may be errors in any or all of the information fields; information on this image should not be considered reliable and the image should not be used until it has been reviewed and any needed corrections have been made. Once the review has been completed, this template should be removed. For details, see below. Check now!

Afrikaans | Català | Česky | Cymraeg | Deutsch | English | Español | Eesti | Suomi | Français | עברית | Italiano | Lietuvių | Magyar | Македонски | Malti | Plattdüütsch | Nederlands | Polski | العربية | Português | Română | Русский | ไทย | 中文 | ‪中文(简体)‬ | ‪中文(繁體)‬ | +/−

Description
English: Global average temperature, atmospheric CO2, and sunspot activity since 1850. Thick lines for temperature and sunspots represent a 25 year moving average smoothing of the raw data.
Date

11 January 2009(2009-01-11) (first version); 10 March 2007(2007-03-10) (last version)

Source

Transferred from en.wikipedia; transferred to Commons by User:Anrie using CommonsHelper.

Author

Original uploader was Leland McInnes at en.wikipedia

Permission
(Reusing this image)

Released under the GNU Free Documentation License.

Global average temperature, atmospheric CO2, and sunspot activity since 1850. Thick lines for temperature and sunspots represent a 25 year moving average smoothing of the raw data.

This figure was produced by Leland McInnes using python and matplotlib and is licensed under the GFDL. All data is from publicly available sources.

[edit] Data Sources

  1. (light blue) Law Dome CO2 Data: ftp://ftp.ncdc.noaa.gov/pub/data/paleo/icecore/antarctica/law/law_co2.txt
  2. (blue) Mauna Loa CO2 data:http://www.esrl.noaa.gov/gmd/ccgg/trends/co2_mm_mlo.dat
  3. (red) Temperature Data: http://www.cru.uea.ac.uk/cru/data/temperature/hadcrut3gl.txt
  4. (orange) Sunspot data:http://sidc.oma.be/DATA/yearssn.dat

[edit] Plot Generation

The plot was generated by the following python script:

# -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pylab as plt
import urllib
 
def smooth(signal, window_size):
    extended_signal = signal[window_size:0:-1] + signal + signal[-1:-window_size:-1]
    s = np.array(extended_signal)
    w = np.hamming(window_size)
    y = np.convolve(w/w.sum(), s, mode="same")
    return y[window_size:-window_size+1]
 
temp_file = urllib.urlopen("http://www.cru.uea.ac.uk/cru/data/temperature/hadcrut3gl.txt")
data_rows = [x.split() for x in temp_file][0:-1:2]
temp_years = [int(x[0]) for x in data_rows]
temps = [float(x[-1]) for x in data_rows]
 
co2_file = urllib.urlopen("http://web.archive.org/web/20070829134646/http://www.esrl.noaa.gov/gmd/ccgg/trends/co2_mm_mlo.dat")
data_rows = [x.split() for x in co2_file if x.startswith("MLO")]
co2_years = [(float(x[1]) + (float(x[2])-0.5)/12.) for x in data_rows]
co2concs = [float(x[3]) for x in data_rows]
 
lawco2_file = urllib.urlopen("ftp://ftp.ncdc.noaa.gov/pub/data/paleo/icecore/antarctica/law/law_co2.txt")
data_rows = [x.split() for x in lawco2_file if x.startswith("     1")]
del data_rows[[float(x[0]) for x in data_rows].index(1010.):]
lawco2_years = [float(x[0]) for x in data_rows]
lawco2concs = [float(x[-1]) for x in data_rows]
 
sunspot_file = urllib.urlopen("http://sidc.oma.be/DATA/yearssn.dat")
data_rows = [x.split() for x in sunspot_file if "*" not in x]
sun_years = [float(x[0]) for x in data_rows]
sunspots = [float(x[-1]) for x in data_rows]
 
smoothed_temps = smooth(temps, 25)
smoothed_sunspots = smooth(sunspots, 25)
 
base_ax = plt.axes()
base_ax.yaxis.tick_left()
plt.yticks([])
plt.xlim(1850,2010)
plt.xlabel("Year", size=16)
plt.title("Temperature, CO$_2$, and Sunspots", size=22)
 
temp_ax = plt.axes([0.125,0.5,0.775,0.4], frameon=False)
temp_ax.yaxis.tick_left()
plt.plot(temp_years, temps, '#FF2200')
tline  = plt.plot(temp_years, smoothed_temps, '#AA0000', lw=3)
plt.xlim(1850,2010)
plt.yticks(np.arange(-0.6,0.6,0.2))
plt.ylabel(u'Temperature anomaly (C)', size=14)
plt.xticks([])
 
co2_ax = plt.axes([0.125,0.3,0.775,0.4], frameon=False)
co2_ax.yaxis.tick_right()
co2_ax.yaxis.set_label_position("right")
co2_ax.xaxis.tick_bottom()
plt.plot(co2_years, co2concs, '#44AAFF')
cline = plt.plot(lawco2_years, lawco2concs, '#2288EE', lw=2)
plt.xlim(1850,2010)
plt.ylabel(r'CO$_2$ (ppm)', size=14)
plt.xticks([])
 
sun_ax = plt.axes([0.125,0.1,0.775,0.4], frameon=False)
sun_ax.yaxis.tick_left()
plt.plot(sun_years, sunspots, "#FFDD00")
sline = plt.plot(sun_years, smoothed_sunspots, "#FF9900", lw=3)
plt.xlim(1850,2010)
plt.yticks(np.arange(0,200,50))
plt.ylabel("Sunspot number", size=14)
plt.xticks([])
 
plt.axes(base_ax)
plt.legend((tline, cline, sline), ("Temperature", "CO$_2$", "Sunspots"), "upper left")
plt.savefig("temp-co2-sunspot.svg")
plt.show()

The plot can likely be updated for more recent data using these same script, though minor modifications may be required for changes in data formats, locations, etc.

[edit] Related Images

[edit] License information

Leland McInnes at the English language Wikipedia, the copyright holder of this work, has published or hereby publishes it under the following license:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
Subject to disclaimers.

Asturianu | Български | Català | Deutsch | English | Español | Eesti | Suomi | Français | Gaeilge | Italiano | 한국어 | Lietuvių | Македонски | Plattdüütsch | Nederlands | Polski | Português | Русский | +/−

Creative Commons license
Creative Commons Attribution Creative Commons Share Alike
This file is licensed under the Creative Commons Attribution ShareAlike 3.0 License. In short: you are free to share and make derivative works of the file under the conditions that you appropriately attribute it, and that you distribute it only under a license identical to this one. Official license Subject to disclaimers.

This licensing tag was added to this file as part of the GFDL licensing update.


English | Suomi | Italiano | Македонски | Српски / Srpski | العربية | +/−

[edit] Original upload log

The original description page is/was here. All following user names refer to en.wikipedia.

  • 2009-01-11 03:45 Leland McInnes 720×540× (102750 bytes)
  • 2008-10-09 00:57 Leland McInnes 600×480× (34962 bytes)
  • 2007-03-11 02:47 Leland McInnes 600×480× (48910 bytes) Fix for wrong data selection
  • 2007-03-11 02:10 Leland McInnes 600×480× (48672 bytes) Update to Had CRUT3 instead of CRUTEM
  • 2007-03-10 20:46 Leland McInnes 600×480× (48525 bytes)
  • 2007-03-10 20:41 Leland McInnes 600×480× (47761 bytes)
  • 2007-03-10 05:01 Leland McInnes 600×480× (33704 bytes) Global average temperature, Mauna Loa CO<sub>2</sub>, and sunspot activity for the last 50 years.

File history

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

Date/TimeThumbnailDimensionsUserComment
current12:10, 4 May 2009Thumbnail for version as of 12:10, 4 May 2009720×540 (100 KB)File Upload Bot (Magnus Manske) (Talk | contribs) ( {{BotMoveToCommons|en.wikipedia|year={{subst:CURRENTYEAR}}|month={{subst:CURRENTMONTHNAME}}|day={{subst:CURRENTDAY}}}} {{Information |Description={{en|__NOTOC__ Global average temperature, atmospheric CO<sub>2</sub>, and sunspot activity since 1850. Thi)

The following page on Wikimedia Commons links to this file. Some pages on other Wikimedia projects may also link to it.

Global file usage

The following other wikis use this file: