Scrape NOAA web site to get daily atmospheric CO₂ data.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
COPYING
Gemfile
README.org
mauna-loa-latest.json
mauna-loa.csv
noa₂co₂.rb
rvm_noa₂co₂.sh
update_github.sh

README.org

noa₂co₂

There is as yet no machine-readable data file available that gives daily atmospheric CO₂ readings from any of the many monitoring stations around the globe. Until there is, this fills in.

It scrapes the manually-entered data out of Recent Daily Average Mauna Loa CO₂ that is maintained by the Earth System Research Laboratory (part of the US government’s National Oceanic & Atmospheric Administration). That data is added to a CSV file (of all recent readings) and a JSON file (of just the last valid reading, ignoring any NAs).

How to use it

This requires Ruby and the Bundler gem.

To install:

git clone git@github.com:wdenton/noa2co2.git
cd noa2co2/
bundle install

To use:

./noa₂co₂.rb

To run from crontab with RVM you need a special wrapper script (change the directory as needed):

30 5-12 * * * cd ~/noa2co2/; ./rvm_noa₂co₂.sh

Direct links to the data

License

GPL v3. See COPYING.