Sha256: 76b61b362b79d38aa776e150cd12037715023cfc92d63a4343dc6ce12382e0d5
Contents?: true
Size: 771 Bytes
Versions: 31
Compression:
Stored size: 771 Bytes
Contents
EgridRegion.class_eval do data_miner do schema Earth.database_options do string 'name' float 'loss_factor' end import "eGRID regions and loss factors derived from eGRID 2007 data", :url => 'http://www.epa.gov/cleanenergy/documents/egridzips/eGRID2007_Version1-1.zip', :filename => 'eGRID2007_Version1-1/eGRID2007V1_1_year0504_STIE_USGC.xls', :sheet => 'STIE05', :select => lambda { |row| row['eGRID2007 2005 file State sequence number'].to_i.between?(1, 51) }, :skip => 4 do key 'name', :field_name => 'Grid region (E=Eastern grid, W=Western grid, AK=Alaska, HI=Hawaii, TX=Texas)' store 'loss_factor', :field_name => '2005 grid gross loss factor' end end end
Version data entries
31 entries across 31 versions & 1 rubygems