Skip to content

wdenton/noa2co2

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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.

About

Scrape NOAA web site to get daily atmospheric CO₂ data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published