NDBC
A ruby gem for getting NDBC (National Data Buoy Center) data. http://www.ndbc.noaa.gov/rt_data_access.shtml
Installation
Add this line to your application's Gemfile:
gem 'ndbc'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ndbc
Usage
station = NDBC::Station.new(41009)
station.standard_meteorological_data
# output
{
units: { "YY" => "yr", "MM" => "mo", ... },
values: [
{"YY" => "2015", "MM" => "08", ... },
{"YY" => "2015", "MM" => "08", ... }
]
}
Contributing
- Fork it ( https://github.com/[my-github-username]/ndbc/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request