ccg is a program which enables you to plot ERSL atmospheric gas data from the US National Oceanic and Atmospheric Administration (NOAA) web site.
sudo apt install gnuplot python3For Carbon Dioxide:
cd data
rm -rf surface_co2
wget https://gml.noaa.gov/aftp/data/trace_gases/co2/flask/surface/co2_surface-flask_ccgg_text.tar.gz
tar -xzvf co2_surface-flask_ccgg_text.tar.gz
mv co2_surface-flask_ccgg_text surface_co2
cd ..
python3 ccg2.py --title "Atmospheric CO2"
ls *.jpg *.kmlFor Methane:
cd data
rm -rf surface_ch4
wget https://gml.noaa.gov/aftp/data/trace_gases/ch4/flask/surface/ch4_surface-flask_ccgg_text.tar.gz
tar -xzvf ch4_surface-flask_ccgg_text.tar.gz
mv ch4_surface-flask_ccgg_text surface_ch4
cd ..
python3 ccg2.py --title "Atmospheric CH4" --dir data/surface_ch4
ls *.jpg *.kml--dir [directory] Directory where data resides
--startyear [year] Year to begin the plot
--endyear [year] Year to end the plot
--minlat [degrees] Minimum latitude
--maxlat [degrees] Maximum latitude
--minlong [degrees] Minimum longitude
--maxlong [degrees] Maximum longitude
--minalt [metres] Minimum altitude
--maxalt [metres] Maximum altitude
--title [text] Title of the graph
--tests Run unit tests