earth 0.0.39 → 0.0.40

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,13 +13,21 @@ CensusDivision.class_eval do
13
13
  string 'meeting_building_electricity_intensity_units'
14
14
  float 'meeting_building_district_heat_intensity'
15
15
  string 'meeting_building_district_heat_intensity_units'
16
+ float 'lodging_building_natural_gas_intensity'
17
+ string 'lodging_building_natural_gas_intensity_units'
18
+ float 'lodging_building_fuel_oil_intensity'
19
+ string 'lodging_building_fuel_oil_intensity_units'
20
+ float 'lodging_building_electricity_intensity'
21
+ string 'lodging_building_electricity_intensity_units'
22
+ float 'lodging_building_district_heat_intensity'
23
+ string 'lodging_building_district_heat_intensity_units'
16
24
  end
17
25
 
18
26
  falls_back_on :meeting_building_natural_gas_intensity => 0.011973,
19
27
  :meeting_building_fuel_oil_intensity => 0.0037381,
20
28
  :meeting_building_electricity_intensity => 0.072444,
21
29
  :meeting_building_district_heat_intensity => 3458.7
22
-
30
+
23
31
  import 'the U.S. Census Geographic Terms and Definitions',
24
32
  :url => 'http://www.census.gov/popest/geographic/codes02.csv',
25
33
  :skip => 9,
@@ -29,14 +37,17 @@ CensusDivision.class_eval do
29
37
  store 'census_region_number', :field_name => 'Region'
30
38
  store 'census_region_name', :field_name => 'Region', :dictionary => { :input => 'number', :output => 'name', :url => 'http://data.brighterplanet.com/census_regions.csv' }
31
39
  end
32
-
40
+
33
41
  process 'Define some unit conversions' do
34
42
  Conversions.register :hundred_cubic_feet_per_square_foot_hour, :cubic_metres_per_square_metre_hour, 30.48
35
43
  Conversions.register :gallons_per_square_foot_hour, :litres_per_square_metre_hour, 40.745833
36
44
  Conversions.register :kilowatt_hours_per_square_foot_hour, :kilowatt_hours_per_square_metre_hour, 10.76391
37
45
  Conversions.register :thousand_btu_per_square_foot_hour, :joules_per_square_metre_hour, 11_356_527
46
+ Conversions.register :hundred_cubic_feet_per_room_night, :cubic_metres_per_room_night, 2.8317
47
+ Conversions.register :gallons_per_room_night, :litres_per_room_night, 3.7854
48
+ Conversions.register :thousand_btu_per_room_night, :joules_per_room_night, 1_055_056
38
49
  end
39
-
50
+
40
51
  import 'meeting building fuel intensities calculated from CBECS 2003',
41
52
  :url => 'https://spreadsheets.google.com/pub?key=0AoQJbWqPrREqdGotdjgtUEk0eUU0R3lxM1hHdlF1V0E&hl=en&output=csv' do
42
53
  key 'number', :field_name => 'census_division'
@@ -45,5 +56,14 @@ CensusDivision.class_eval do
45
56
  store 'meeting_building_electricity_intensity', :from_units => :kilowatt_hours_per_square_foot_hour, :to_units => :kilowatt_hours_per_square_metre_hour
46
57
  store 'meeting_building_district_heat_intensity', :from_units => :thousand_btu_per_square_foot_hour, :to_units => :joules_per_square_metre_hour
47
58
  end
59
+
60
+ import 'lodging building fuel intensities calculated from CBECS 2003',
61
+ :url => 'https://spreadsheets.google.com/pub?key=0AoQJbWqPrREqdHZ1QjdNTGVpbWxmZDVLbjlpTHlFVHc&hl=en&output=csv' do
62
+ key 'number', :field_name => 'census_division'
63
+ store 'lodging_building_natural_gas_intensity', :from_units => :hundred_cubic_feet_per_room_night, :to_units => :cubic_metres_per_room_night
64
+ store 'lodging_building_fuel_oil_intensity', :from_units => :gallons_per_room_night, :to_units => :litres_per_room_night
65
+ store 'lodging_building_electricity_intensity', :units_field_name => 'lodging_building_electricity_intensity_units'
66
+ store 'lodging_building_district_heat_intensity', :from_units => :thousand_btu_per_room_night, :to_units => :joules_per_room_night
67
+ end
48
68
  end
49
69
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: earth
3
3
  version: !ruby/object:Gem::Version
4
- hash: 81
4
+ hash: 79
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 39
10
- version: 0.0.39
9
+ - 40
10
+ version: 0.0.40
11
11
  platform: ruby
12
12
  authors:
13
13
  - Seamus Abshere
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-09-14 00:00:00 -07:00
20
+ date: 2010-09-15 00:00:00 -07:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency