Sha256: 69f768dc2a4049d4f1780aeeb5d32c15bee98149dd9be09bacbbdd7fa9bab857

Contents?: true

Size: 811 Bytes

Versions: 34

Compression:

Stored size: 811 Bytes

Contents

AirConditionerUse.class_eval do
  data_miner do
    process "Ensure ResidentialEnergyConsumptionSurveyResponse is populated" do
      ResidentialEnergyConsumptionSurveyResponse.run_data_miner!
    end
    
    process "Derive from ResidentialEnergyConsumptionSurveyResponse" do
      ::Earth::Utils.insert_ignore(
        :src => ResidentialEnergyConsumptionSurveyResponse,
        :dest => AirConditionerUse,
        :cols => { :central_ac_use => :name }
      )
    end
    
    import "Ian's precalculated fugitive emissions values", :url => 'http://spreadsheets.google.com/pub?key=ri_380yQZAqBKeqie_TECgg&gid=0&output=csv' do
      key 'name', :field_name => 'air_conditioner_use_name'
      store 'fugitive_emission', :units_field_name => 'unit', :to_units => :kilograms_per_square_metre
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
earth-1.2.1 lib/earth/residence/air_conditioner_use/data_miner.rb
earth-1.1.2 lib/earth/residence/air_conditioner_use/data_miner.rb
earth-1.1.1 lib/earth/residence/air_conditioner_use/data_miner.rb
earth-1.1.0 lib/earth/residence/air_conditioner_use/data_miner.rb
earth-1.0.3 lib/earth/residence/air_conditioner_use/data_miner.rb
earth-1.0.2 lib/earth/residence/air_conditioner_use/data_miner.rb
earth-1.0.1 lib/earth/residence/air_conditioner_use/data_miner.rb
earth-1.0.0 lib/earth/residence/air_conditioner_use/data_miner.rb
earth-0.12.4 lib/earth/residence/air_conditioner_use/data_miner.rb
earth-0.12.3 lib/earth/residence/air_conditioner_use/data_miner.rb
earth-0.12.2 lib/earth/residence/air_conditioner_use/data_miner.rb
earth-0.12.1 lib/earth/residence/air_conditioner_use/data_miner.rb
earth-0.12.0 lib/earth/residence/air_conditioner_use/data_miner.rb
earth-0.11.20 lib/earth/residence/air_conditioner_use/data_miner.rb
earth-0.11.19 lib/earth/residence/air_conditioner_use/data_miner.rb
earth-0.11.18 lib/earth/residence/air_conditioner_use/data_miner.rb
earth-0.11.17 lib/earth/residence/air_conditioner_use/data_miner.rb
earth-0.11.16 lib/earth/residence/air_conditioner_use/data_miner.rb
earth-0.11.15 lib/earth/residence/air_conditioner_use/data_miner.rb
earth-0.11.14 lib/earth/residence/air_conditioner_use/data_miner.rb