Sha256: f96193df0426ff2c7b05af557f169f4c8367f02e962e5edb2a6c0b56035e38cd
Contents?: true
Size: 1.65 KB
Versions: 33
Compression:
Stored size: 1.65 KB
Contents
# DEPRECATED but FuelPurchase still uses this FuelType.class_eval do # FIXME TODO phase 2 # annual emissions factors # annual energy contents # gas-specific emissions factors data_miner do # process "Define some necessary conversions" do # Conversions.register :teragrams_per_quadrillion_british_thermal_units, :kilograms_per_joule, 0.000000000947817123 # Conversions.register :million_british_thermal_units_per_short_ton, :joules_per_kilogram, 1.16300000 # Conversions.register :million_british_thermal_units_per_cubic_foot, :joules_per_cubic_metre, 37_258.9457 # Conversions.register :million_british_thermal_units_per_barrel, :joules_per_litre, 6.63610165 # Conversions.register :carbon, :carbon_dioxide, 3.66666667 # end import "a list of fuels and their emission factors and densities", :url => 'https://spreadsheets.google.com/pub?key=0AoQJbWqPrREqdDR3RjlTcWlsLTc2TzQ0cERTMElJbHc&gid=0&output=csv' do key 'name', :field_name => 'fuel' store 'emission_factor', :units_field_name => 'emission_factor_units' store 'average_purchase_volume', :units_field_name => 'average_purchase_volume_units' store 'density', :units_field_name => 'density_units' # store 'energy_content', :field_name => 'energy_content', :units_field_name => 'energy_content_units', :to_units => 'FIXME' # FIXME need different conversions for different rows... # store 'carbon_content', :field_name => 'carbon_content', :units_field_name => 'carbon_content_units', :to_units => :kilograms_per_joule end end end
Version data entries
33 entries across 33 versions & 1 rubygems