File:Instrumental-Temperature-Record.svg
Summary
| Description |
English: This image shows the instrumental record of global average temperatures as compiled by the NASA's Goddard Institute for Space Studies. The data set used follows the methodology outlined by Hansen, J., et al. (2006) "Global temperature change". Proc. Natl. Acad. Sci. 103: 14288-14293. |
| Date | 12 January 2009 (original upload date) |
| Source |
This figure was based on one originally prepared by Robert A. Rohde from publicly available data. See the Global Warming Art project for that and other figures by Robert A. Rohde. |
| Author | Robert A. Rohde, Leland McInnes |
| SVG development | |
| Source code | Python code#!/usr/bin/env python
# -*- coding: utf-8 -*-
import matplotlib.pylab as plt
import urllib
import matplotlib
# Download latest data directly from NASA, and process
temp_file = urllib.urlopen("http://data.giss.nasa.gov/gistemp/graphs/Fig.A2.txt")
data_rows = [x.split() for x in temp_file if x.startswith(" 1") or x.startswith(" 2")]
years = [][0]) for x in data_rows if x[1] != "*"]
temps = [][1]) for x in data_rows if x[1] != "*"]
moving_av_temps = [][2]) for x in data_rows if x[2] != "*"]
moving_av_years = [][0]) for x in data_rows if x[2] != "*"]
# Set some parameters to ensure suitable output
matplotlib.rcParams['backend'] = "Cairo"
matplotlib.rcParams['font.sans-serif'] = ["Arial"]
matplotlib.rcParams['xtick.labelsize'] = 20
matplotlib.rcParams['ytick.labelsize'] = 20
matplotlib.rcParams['svg.embed_char_paths'] = False
ax = plt.axes([0.125,0.05,0.835,0.92])
plt.grid(color="#cccccc", linestyle=":", lw=2, zorder=1)
plt.plot(years, temps, "k-", lw=1.2, marker="o", markerfacecolor="blue", zorder=3, solid_joinstyle="round", label="Annual average")
plt.plot(moving_av_years, moving_av_temps, "r-", lw=3.5, zorder=4, label="Five Year Average")
plt.ylabel(u"Temperature anomaly (°C)", size=24)
plt.text(1884,0.55,"Global Temperatures",ha="left", va="center",size=38)
plt.legend(loc=(0.04,0.68), prop=matplotlib.font_manager.FontProperties(size=24))
plt.xlim(1880,2015)
plt.ylim(-0.45,0.65)
plt.savefig("instrumental-temperature-record.svg", facecolor="#e0e0e0")
plt.show()
|
Licensing
Leland McInnes at en.wikipedia, the copyright holder of this work, hereby publishes it under the following license:
This file is licensed under the Creative Commons Attribution 3.0 Unported license.
Attribution:
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
| Dragons flight's Temperature Record Series |
| This figure is part of a series of plots created by Dragons flight to illustrate changes in Earth's temperature and climate across many different time scales. |
| Time Period: 25 yrs | 150 yrs | 1 kyr | 2 kyr | 12 kyr | 450 kyr | 5 Myr | 65 Myr | 500 Myr |
| For articles related to this topic see: Temperature record |
Plot Generation
This plot was generated using python, and the matplotlib library for python. The following code, which will fetch the latest data directly from the Climatic Research Unit, was used. The same code can be used to re-generate new plots as necessary to accommodate more recent data as needed.
Original upload log
The original description page was here. All following user names refer to en.wikipedia.
- 2010-02-20 00:42 Leland McInnes 720×540× (53369 bytes) Reverted to version as of 03:49, 19 February 2010; Character paths messed up kerning, revert back
- 2010-02-20 00:39 Leland McInnes 720×540× (75203 bytes) Embed SVG character paths for better rendering at smaller sizes
- 2010-02-19 03:49 Leland McInnes 720×540× (53369 bytes) SWitch to NASA GISS and use their averaging
- 2009-01-18 19:04 Leland McInnes 720×540× (62214 bytes)
- 2009-01-12 03:12 Leland McInnes 720×540× (62231 bytes) == Summary== This image shows the instrumental record of global average temperatures as compiled by the [[w:Climatic Research Unit|Climatic Research Unit]] of the [[w:University of East Anglia|University of East Anglia]] and the [[w:Hadley Centre|Hadley