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

Version Path
earth-0.2.0 lib/earth/locality/egrid_region/data_miner.rb
earth-0.1.4 lib/earth/locality/egrid_region/data_miner.rb
earth-0.1.3 lib/earth/locality/egrid_region/data_miner.rb
earth-0.1.2 lib/earth/locality/egrid_region/data_miner.rb
earth-0.1.1 lib/earth/locality/egrid_region/data_miner.rb
earth-0.1.0 lib/earth/locality/egrid_region/data_miner.rb
earth-0.0.43 lib/earth/locality/egrid_region/data_miner.rb
earth-0.0.42 lib/earth/locality/egrid_region/data_miner.rb
earth-0.0.41 lib/earth/locality/egrid_region/data_miner.rb
earth-0.0.40 lib/earth/locality/egrid_region/data_miner.rb
earth-0.0.39 lib/earth/locality/egrid_region/data_miner.rb
earth-0.0.38 lib/earth/locality/egrid_region/data_miner.rb
earth-0.0.37 lib/earth/locality/egrid_region/data_miner.rb
earth-0.0.36 lib/earth/locality/egrid_region/data_miner.rb
earth-0.0.35 lib/earth/locality/egrid_region/data_miner.rb
earth-0.0.34 lib/earth/locality/egrid_region/data_miner.rb
earth-0.0.33 lib/earth/locality/egrid_region/data_miner.rb
earth-0.0.32 lib/earth/locality/egrid_region/data_miner.rb
earth-0.0.31 lib/earth/locality/egrid_region/data_miner.rb
earth-0.0.30 lib/earth/locality/egrid_region/data_miner.rb