|Bob Mottram d14e05bb63 Remove gui mention||4 months ago|
|data||4 months ago|
|desktop||6 years ago|
|images||6 years ago|
|man||4 months ago|
|src||4 months ago|
|tgui-build||2 years ago|
|LICENSE||3 years ago|
|Makefile||4 months ago|
|README.md||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 https://code.freedombone.net/bashrc/argograph
To compile from source first install the prerequisites:
On a Debian based system:
sudo apt-get install build-essential gnuplot wget
sudo pacman -S gnuplot wget
To compile the command line program:
make sudo make install
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 wget ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/v3/ghcnm.tavg.latest.qca.tar.gz wget ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/v3/country-codes 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:
v3.country.codes wmo.txt (the weather stations) v3.mean (the temperature data)
For how to use the command see the manpage.