Plot historical temperature trends

Bob Mottram d14e05bb63 Remove gui mention 4 months ago
data 035eb837f0 Update data sets 4 months ago
desktop 087e87c419 Improved SVG icon 6 years ago
images c2540ae38b Additional images for wiki 6 years ago
man e6fe065ca4 Remove gui mention 4 months ago
src 5339e6f202 remove gui 4 months ago
tgui-build efa3ffe6ef Example data set 2 years ago
LICENSE 7f1e93b4c1 License file 3 years ago
Makefile 92c297171f Remove gui elements from makefile 4 months ago d14e05bb63 Remove gui mention 4 months ago

This is a commandline tool for educational or research purposes which generates graphs showing changes in average temperatures over time, using data from the Global Historical Climatology Network.

Also for temperatures below sea level see


To compile from source first install the prerequisites:

On a Debian based system:

sudo apt-get install build-essential gnuplot wget

On Arch/Parabola:

sudo pacman -S gnuplot wget

To compile the command line program:

sudo make install

Obtaining the data

Before you begin you'll need to download the latest version of the GHCN version 3 data. tempgraph needs three files: the country codes, the weather stations and the temperature data itself. These files can be obtained here:

cd data
tar -xzvf ghcnm.tavg.latest.qca.tar.gz
cd ..

The compressed archive contains two files, one which is the temperature data (.dat) and the other which contains details of the weather stations (.inv). I typically rename these to:
wmo.txt (the weather stations)
v3.mean (the temperature data)


For how to use the command see the manpage.

man tempgraph