Skip to content

bashrc2/ccg2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

ccg is a program which enables you to plot ERSL atmospheric gas data from the US National Oceanic and Atmospheric Administration (NOAA) web site.

Install

sudo apt install gnuplot python3

Usage

For 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 *.kml

For 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

Command Options

--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

About

Plot carbon cycle gasses

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors