module Noaaish
Class responsible for fetching a specific station’s data from the server for a given year. No attempt to pre or post process the data is made.
Inflates a given gziped file input to an output. input: File object output: File object
Takes the terrible ISH data format and converts it into something “reasonable”.
Constants
- VERSION
Public Class Methods
data_for(station_id, years)
click to toggle source
# 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