Module: Noaaish
- Defined in:
- lib/noaaish/fetch.rb,
lib/noaaish.rb,
lib/noaaish/gunzip.rb,
lib/noaaish/version.rb,
lib/noaaish/extractor.rb,
lib/noaaish/translator.rb
Overview
Takes the terrible ISH data format and converts it into something “reasonable”.
Defined Under Namespace
Classes: Extractor, Fetch, Gunzip, Translator
Constant Summary collapse
- VERSION =
"1.0.1"
Class Method Summary collapse
Class Method Details
.data_for(station_id, years) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/noaaish.rb', line 8 def self.data_for(station_id, years) station_id = station_id years = Array(years) years.map { |year| Fetch.new(station_id, year).call } .map { |io| Gunzip.new(io).call } .map { |io| Translator.new(io).call } .map { |io| Extractor.new(io).call } end |