rubyfromexcel 0.0.17 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. data/examples/ruby-versions/test1-ruby/sheets/sheet1.rb +7 -0
  2. data/examples/ruby-versions/test1-ruby/sheets/sheet2.rb +6 -0
  3. data/examples/ruby-versions/test1-ruby/specs/sheet1_rspec.rb +12 -0
  4. data/examples/ruby-versions/test1-ruby/specs/sheet2_rspec.rb +12 -0
  5. data/examples/ruby-versions/test1-ruby/spreadsheet.rb +9 -0
  6. data/examples/ruby-versions/test2-ruby/sheets/sheet1.rb +1334 -0
  7. data/examples/ruby-versions/test2-ruby/sheets/sheet2.rb +25 -0
  8. data/examples/ruby-versions/test2-ruby/sheets/sheet3.rb +3703 -0
  9. data/examples/ruby-versions/test2-ruby/specs/sheet1_rspec.rb +648 -0
  10. data/examples/ruby-versions/test2-ruby/specs/sheet2_rspec.rb +24 -0
  11. data/examples/ruby-versions/test2-ruby/specs/sheet3_rspec.rb +11364 -0
  12. data/examples/ruby-versions/test2-ruby/spreadsheet.rb +9 -0
  13. data/examples/sheets/test1.xlsx +0 -0
  14. data/examples/sheets/test2.xlsx +0 -0
  15. data/examples/sheets/~$test1.xlsx +0 -0
  16. data/examples/unzipped-sheets/array-formulas/[Content_Types].xml +2 -0
  17. data/examples/unzipped-sheets/array-formulas/docProps/app.xml +2 -0
  18. data/examples/unzipped-sheets/array-formulas/docProps/core.xml +2 -0
  19. data/examples/unzipped-sheets/array-formulas/docProps/thumbnail.jpeg +0 -0
  20. data/examples/unzipped-sheets/array-formulas/xl/_rels/workbook.xml.rels +2 -0
  21. data/examples/unzipped-sheets/array-formulas/xl/calcChain.xml +2 -0
  22. data/examples/unzipped-sheets/array-formulas/xl/sharedStrings.xml +2 -0
  23. data/examples/unzipped-sheets/array-formulas/xl/styles.xml +2 -0
  24. data/examples/unzipped-sheets/array-formulas/xl/theme/theme1.xml +2 -0
  25. data/examples/unzipped-sheets/array-formulas/xl/workbook.xml +2 -0
  26. data/examples/unzipped-sheets/array-formulas/xl/worksheets/sheet1.xml +2 -0
  27. data/examples/unzipped-sheets/array-formulas/xl/worksheets/sheet2.xml +2 -0
  28. data/examples/unzipped-sheets/checkpoint/[Content_Types].xml +2 -0
  29. data/examples/unzipped-sheets/checkpoint/docProps/app.xml +2 -0
  30. data/examples/unzipped-sheets/checkpoint/docProps/core.xml +2 -0
  31. data/examples/unzipped-sheets/checkpoint/xl/_rels/workbook.xml.rels +2 -0
  32. data/examples/unzipped-sheets/checkpoint/xl/calcChain.xml +2 -0
  33. data/examples/unzipped-sheets/checkpoint/xl/charts/chart1.xml +2 -0
  34. data/examples/unzipped-sheets/checkpoint/xl/charts/chart2.xml +2 -0
  35. data/examples/unzipped-sheets/checkpoint/xl/comments1.xml +5 -0
  36. data/examples/unzipped-sheets/checkpoint/xl/comments2.xml +5 -0
  37. data/examples/unzipped-sheets/checkpoint/xl/drawings/_rels/drawing1.xml.rels +2 -0
  38. data/examples/unzipped-sheets/checkpoint/xl/drawings/_rels/drawing2.xml.rels +2 -0
  39. data/examples/unzipped-sheets/checkpoint/xl/drawings/drawing1.xml +2 -0
  40. data/examples/unzipped-sheets/checkpoint/xl/drawings/drawing2.xml +2 -0
  41. data/examples/unzipped-sheets/checkpoint/xl/drawings/vmlDrawing1.vml +47 -0
  42. data/examples/unzipped-sheets/checkpoint/xl/drawings/vmlDrawing2.vml +47 -0
  43. data/examples/unzipped-sheets/checkpoint/xl/sharedStrings.xml +2 -0
  44. data/examples/unzipped-sheets/checkpoint/xl/styles.xml +2 -0
  45. data/examples/unzipped-sheets/checkpoint/xl/theme/theme1.xml +2 -0
  46. data/examples/unzipped-sheets/checkpoint/xl/workbook.xml +2 -0
  47. data/examples/unzipped-sheets/checkpoint/xl/worksheets/_rels/sheet1.xml.rels +2 -0
  48. data/examples/unzipped-sheets/checkpoint/xl/worksheets/_rels/sheet2.xml.rels +2 -0
  49. data/examples/unzipped-sheets/checkpoint/xl/worksheets/sheet1.xml +2 -0
  50. data/examples/unzipped-sheets/checkpoint/xl/worksheets/sheet2.xml +2 -0
  51. data/examples/unzipped-sheets/complex-test/[Content_Types].xml +2 -0
  52. data/examples/unzipped-sheets/complex-test/docProps/app.xml +2 -0
  53. data/examples/unzipped-sheets/complex-test/docProps/core.xml +2 -0
  54. data/examples/unzipped-sheets/complex-test/xl/_rels/workbook.xml.rels +2 -0
  55. data/examples/unzipped-sheets/complex-test/xl/calcChain.xml +2 -0
  56. data/examples/unzipped-sheets/complex-test/xl/charts/chart1.xml +2 -0
  57. data/examples/unzipped-sheets/complex-test/xl/charts/chart2.xml +2 -0
  58. data/examples/unzipped-sheets/complex-test/xl/comments1.xml +5 -0
  59. data/examples/unzipped-sheets/complex-test/xl/comments2.xml +5 -0
  60. data/examples/unzipped-sheets/complex-test/xl/drawings/_rels/drawing1.xml.rels +2 -0
  61. data/examples/unzipped-sheets/complex-test/xl/drawings/_rels/drawing2.xml.rels +2 -0
  62. data/examples/unzipped-sheets/complex-test/xl/drawings/drawing1.xml +2 -0
  63. data/examples/unzipped-sheets/complex-test/xl/drawings/drawing2.xml +2 -0
  64. data/examples/unzipped-sheets/complex-test/xl/drawings/vmlDrawing1.vml +46 -0
  65. data/examples/unzipped-sheets/complex-test/xl/drawings/vmlDrawing2.vml +46 -0
  66. data/examples/unzipped-sheets/complex-test/xl/sharedStrings.xml +2 -0
  67. data/examples/unzipped-sheets/complex-test/xl/styles.xml +2 -0
  68. data/examples/unzipped-sheets/complex-test/xl/theme/theme1.xml +2 -0
  69. data/examples/unzipped-sheets/complex-test/xl/workbook.xml +2 -0
  70. data/examples/unzipped-sheets/complex-test/xl/worksheets/_rels/sheet1.xml.rels +2 -0
  71. data/examples/unzipped-sheets/complex-test/xl/worksheets/_rels/sheet2.xml.rels +2 -0
  72. data/examples/unzipped-sheets/complex-test/xl/worksheets/sheet1.xml +2 -0
  73. data/examples/unzipped-sheets/complex-test/xl/worksheets/sheet2.xml +2 -0
  74. data/examples/unzipped-sheets/namedReferenceTest/[Content_Types].xml +2 -0
  75. data/examples/unzipped-sheets/namedReferenceTest/docProps/app.xml +2 -0
  76. data/examples/unzipped-sheets/namedReferenceTest/docProps/core.xml +2 -0
  77. data/examples/unzipped-sheets/namedReferenceTest/docProps/thumbnail.jpeg +0 -0
  78. data/examples/unzipped-sheets/namedReferenceTest/xl/_rels/workbook.xml.rels +2 -0
  79. data/examples/unzipped-sheets/namedReferenceTest/xl/calcChain.xml +2 -0
  80. data/examples/unzipped-sheets/namedReferenceTest/xl/styles.xml +2 -0
  81. data/examples/unzipped-sheets/namedReferenceTest/xl/theme/theme1.xml +2 -0
  82. data/examples/unzipped-sheets/namedReferenceTest/xl/workbook.xml +2 -0
  83. data/examples/unzipped-sheets/namedReferenceTest/xl/worksheets/sheet1.xml +2 -0
  84. data/examples/unzipped-sheets/namedReferenceTest/xl/worksheets/sheet2.xml +2 -0
  85. data/examples/unzipped-sheets/sharedFormulaTest/[Content_Types].xml +2 -0
  86. data/examples/unzipped-sheets/sharedFormulaTest/docProps/app.xml +2 -0
  87. data/examples/unzipped-sheets/sharedFormulaTest/docProps/core.xml +2 -0
  88. data/examples/unzipped-sheets/sharedFormulaTest/docProps/thumbnail.jpeg +0 -0
  89. data/examples/unzipped-sheets/sharedFormulaTest/xl/_rels/workbook.xml.rels +2 -0
  90. data/examples/unzipped-sheets/sharedFormulaTest/xl/calcChain.xml +2 -0
  91. data/examples/unzipped-sheets/sharedFormulaTest/xl/styles.xml +2 -0
  92. data/examples/unzipped-sheets/sharedFormulaTest/xl/theme/theme1.xml +2 -0
  93. data/examples/unzipped-sheets/sharedFormulaTest/xl/workbook.xml +2 -0
  94. data/examples/unzipped-sheets/sharedFormulaTest/xl/worksheets/sheet1.xml +2 -0
  95. data/examples/unzipped-sheets/table-test/[Content_Types].xml +2 -0
  96. data/examples/unzipped-sheets/table-test/docProps/app.xml +2 -0
  97. data/examples/unzipped-sheets/table-test/docProps/core.xml +2 -0
  98. data/examples/unzipped-sheets/table-test/xl/_rels/workbook.xml.rels +2 -0
  99. data/examples/unzipped-sheets/table-test/xl/calcChain.xml +2 -0
  100. data/examples/unzipped-sheets/table-test/xl/printerSettings/printerSettings1.bin +0 -0
  101. data/examples/unzipped-sheets/table-test/xl/sharedStrings.xml +2 -0
  102. data/examples/unzipped-sheets/table-test/xl/styles.xml +2 -0
  103. data/examples/unzipped-sheets/table-test/xl/tables/table1.xml +2 -0
  104. data/examples/unzipped-sheets/table-test/xl/theme/theme1.xml +2 -0
  105. data/examples/unzipped-sheets/table-test/xl/workbook.xml +2 -0
  106. data/examples/unzipped-sheets/table-test/xl/worksheets/_rels/sheet1.xml.rels +2 -0
  107. data/examples/unzipped-sheets/table-test/xl/worksheets/sheet1.xml +2 -0
  108. data/examples/unzipped-sheets/table-test/xl/worksheets/sheet2.xml +2 -0
  109. data/examples/unzipped-sheets/table-test/xl/worksheets/sheet3.xml +2 -0
  110. data/examples/unzipped-sheets/test1/[Content_Types].xml +2 -0
  111. data/examples/unzipped-sheets/test1/docProps/app.xml +2 -0
  112. data/examples/unzipped-sheets/test1/docProps/core.xml +2 -0
  113. data/examples/unzipped-sheets/test1/docProps/thumbnail.jpeg +0 -0
  114. data/examples/unzipped-sheets/test1/xl/_rels/workbook.xml.rels +2 -0
  115. data/examples/unzipped-sheets/test1/xl/calcChain.xml +2 -0
  116. data/examples/unzipped-sheets/test1/xl/sharedStrings.xml +2 -0
  117. data/examples/unzipped-sheets/test1/xl/styles.xml +2 -0
  118. data/examples/unzipped-sheets/test1/xl/theme/theme1.xml +2 -0
  119. data/examples/unzipped-sheets/test1/xl/workbook.xml +2 -0
  120. data/examples/unzipped-sheets/test1/xl/worksheets/sheet1.xml +2 -0
  121. data/examples/unzipped-sheets/test1/xl/worksheets/sheet2.xml +2 -0
  122. data/examples/unzipped-sheets/test2/[Content_Types].xml +2 -0
  123. data/examples/unzipped-sheets/test2/docProps/app.xml +2 -0
  124. data/examples/unzipped-sheets/test2/docProps/core.xml +2 -0
  125. data/examples/unzipped-sheets/test2/xl/_rels/workbook.xml.rels +2 -0
  126. data/examples/unzipped-sheets/test2/xl/calcChain.xml +2 -0
  127. data/examples/unzipped-sheets/test2/xl/charts/chart1.xml +2 -0
  128. data/examples/unzipped-sheets/test2/xl/charts/chart2.xml +2 -0
  129. data/examples/unzipped-sheets/test2/xl/charts/chart3.xml +2 -0
  130. data/examples/unzipped-sheets/test2/xl/charts/chart4.xml +2 -0
  131. data/examples/unzipped-sheets/test2/xl/drawings/_rels/drawing1.xml.rels +2 -0
  132. data/examples/unzipped-sheets/test2/xl/drawings/drawing1.xml +2 -0
  133. data/examples/unzipped-sheets/test2/xl/sharedStrings.xml +2 -0
  134. data/examples/unzipped-sheets/test2/xl/styles.xml +2 -0
  135. data/examples/unzipped-sheets/test2/xl/tables/table1.xml +2 -0
  136. data/examples/unzipped-sheets/test2/xl/theme/theme1.xml +2 -0
  137. data/examples/unzipped-sheets/test2/xl/workbook.xml +2 -0
  138. data/examples/unzipped-sheets/test2/xl/worksheets/_rels/sheet1.xml.rels +2 -0
  139. data/examples/unzipped-sheets/test2/xl/worksheets/_rels/sheet3.xml.rels +2 -0
  140. data/examples/unzipped-sheets/test2/xl/worksheets/sheet1.xml +2 -0
  141. data/examples/unzipped-sheets/test2/xl/worksheets/sheet2.xml +2 -0
  142. data/examples/unzipped-sheets/test2/xl/worksheets/sheet3.xml +2 -0
  143. data/lib/formulae/parse/formula_peg.rb +4 -3
  144. data/lib/formulae/parse/formula_peg.txt +3 -3
  145. data/lib/formulae/run/reference.rb +1 -1
  146. data/spec/formula_peg_spec.rb +13 -0
  147. metadata +152 -9
@@ -0,0 +1,3703 @@
1
+ # coding: utf-8
2
+ # Intermediate output
3
+ class Sheet3 < Spreadsheet
4
+ def b2; "Energy source / use charts"; end
5
+ def d4; @d4 ||= (sheet2.c3).to_s+" / year"; end
6
+ def f4; "2007 (Consistent)"; end
7
+ def h4; 2007.0; end
8
+ def i4; 2010.0; end
9
+ def j4; 2015.0; end
10
+ def k4; 2020.0; end
11
+ def l4; 2025.0; end
12
+ def m4; 2030.0; end
13
+ def n4; 2035.0; end
14
+ def o4; 2040.0; end
15
+ def p4; 2045.0; end
16
+ def q4; 2050.0; end
17
+ def c6; "Use"; end
18
+ def c7; "T.01"; end
19
+ def d7; @d7 ||= index(:name,match(c7,:name,0.0)); end
20
+ def f7; @f7 ||= index(:ref,match(sheet3.c7,:ref,0.0)); end
21
+ def h7; @h7 ||= index(:ref,match(sheet3.c7,:ref,0.0)); end
22
+ def i7; @i7 ||= index(:ref,match(sheet3.c7,:ref,0.0)); end
23
+ def j7; @j7 ||= index(:ref,match(sheet3.c7,:ref,0.0)); end
24
+ def k7; @k7 ||= index(:ref,match(sheet3.c7,:ref,0.0)); end
25
+ def l7; @l7 ||= index(:ref,match(sheet3.c7,:ref,0.0)); end
26
+ def m7; @m7 ||= index(:ref,match(sheet3.c7,:ref,0.0)); end
27
+ def n7; @n7 ||= index(:ref,match(sheet3.c7,:ref,0.0)); end
28
+ def o7; @o7 ||= index(:ref,match(sheet3.c7,:ref,0.0)); end
29
+ def p7; @p7 ||= index(:ref,match(sheet3.c7,:ref,0.0)); end
30
+ def q7; @q7 ||= index(:ref,match(sheet3.c7,:ref,0.0)); end
31
+ def c8; "T.02"; end
32
+ def d8; @d8 ||= index(:name,match(c8,:name,0.0)); end
33
+ def f8; @f8 ||= index(:ref,match(sheet3.c8,:ref,0.0)); end
34
+ def h8; @h8 ||= index(:ref,match(sheet3.c8,:ref,0.0)); end
35
+ def i8; @i8 ||= index(:ref,match(sheet3.c8,:ref,0.0)); end
36
+ def j8; @j8 ||= index(:ref,match(sheet3.c8,:ref,0.0)); end
37
+ def k8; @k8 ||= index(:ref,match(sheet3.c8,:ref,0.0)); end
38
+ def l8; @l8 ||= index(:ref,match(sheet3.c8,:ref,0.0)); end
39
+ def m8; @m8 ||= index(:ref,match(sheet3.c8,:ref,0.0)); end
40
+ def n8; @n8 ||= index(:ref,match(sheet3.c8,:ref,0.0)); end
41
+ def o8; @o8 ||= index(:ref,match(sheet3.c8,:ref,0.0)); end
42
+ def p8; @p8 ||= index(:ref,match(sheet3.c8,:ref,0.0)); end
43
+ def q8; @q8 ||= index(:ref,match(sheet3.c8,:ref,0.0)); end
44
+ def c9; "T.03"; end
45
+ def d9; @d9 ||= index(:name,match(c9,:name,0.0)); end
46
+ def f9; @f9 ||= index(:ref,match(sheet3.c9,:ref,0.0)); end
47
+ def h9; @h9 ||= index(:ref,match(sheet3.c9,:ref,0.0)); end
48
+ def i9; @i9 ||= index(:ref,match(sheet3.c9,:ref,0.0)); end
49
+ def j9; @j9 ||= index(:ref,match(sheet3.c9,:ref,0.0)); end
50
+ def k9; @k9 ||= index(:ref,match(sheet3.c9,:ref,0.0)); end
51
+ def l9; @l9 ||= index(:ref,match(sheet3.c9,:ref,0.0)); end
52
+ def m9; @m9 ||= index(:ref,match(sheet3.c9,:ref,0.0)); end
53
+ def n9; @n9 ||= index(:ref,match(sheet3.c9,:ref,0.0)); end
54
+ def o9; @o9 ||= index(:ref,match(sheet3.c9,:ref,0.0)); end
55
+ def p9; @p9 ||= index(:ref,match(sheet3.c9,:ref,0.0)); end
56
+ def q9; @q9 ||= index(:ref,match(sheet3.c9,:ref,0.0)); end
57
+ def c10; "T.04"; end
58
+ def d10; @d10 ||= index(:name,match(c10,:name,0.0)); end
59
+ def f10; @f10 ||= index(:ref,match(sheet3.c10,:ref,0.0)); end
60
+ def h10; @h10 ||= index(:ref,match(sheet3.c10,:ref,0.0)); end
61
+ def i10; @i10 ||= index(:ref,match(sheet3.c10,:ref,0.0)); end
62
+ def j10; @j10 ||= index(:ref,match(sheet3.c10,:ref,0.0)); end
63
+ def k10; @k10 ||= index(:ref,match(sheet3.c10,:ref,0.0)); end
64
+ def l10; @l10 ||= index(:ref,match(sheet3.c10,:ref,0.0)); end
65
+ def m10; @m10 ||= index(:ref,match(sheet3.c10,:ref,0.0)); end
66
+ def n10; @n10 ||= index(:ref,match(sheet3.c10,:ref,0.0)); end
67
+ def o10; @o10 ||= index(:ref,match(sheet3.c10,:ref,0.0)); end
68
+ def p10; @p10 ||= index(:ref,match(sheet3.c10,:ref,0.0)); end
69
+ def q10; @q10 ||= index(:ref,match(sheet3.c10,:ref,0.0)); end
70
+ def c11; "T.05"; end
71
+ def d11; @d11 ||= index(:name,match(c11,:name,0.0)); end
72
+ def f11; @f11 ||= index(:ref,match(sheet3.c11,:ref,0.0)); end
73
+ def h11; @h11 ||= index(:ref,match(sheet3.c11,:ref,0.0)); end
74
+ def i11; @i11 ||= index(:ref,match(sheet3.c11,:ref,0.0)); end
75
+ def j11; @j11 ||= index(:ref,match(sheet3.c11,:ref,0.0)); end
76
+ def k11; @k11 ||= index(:ref,match(sheet3.c11,:ref,0.0)); end
77
+ def l11; @l11 ||= index(:ref,match(sheet3.c11,:ref,0.0)); end
78
+ def m11; @m11 ||= index(:ref,match(sheet3.c11,:ref,0.0)); end
79
+ def n11; @n11 ||= index(:ref,match(sheet3.c11,:ref,0.0)); end
80
+ def o11; @o11 ||= index(:ref,match(sheet3.c11,:ref,0.0)); end
81
+ def p11; @p11 ||= index(:ref,match(sheet3.c11,:ref,0.0)); end
82
+ def q11; @q11 ||= index(:ref,match(sheet3.c11,:ref,0.0)); end
83
+ def c12; "T.06"; end
84
+ def d12; @d12 ||= index(:name,match(c12,:name,0.0)); end
85
+ def f12; @f12 ||= index(:ref,match(sheet3.c12,:ref,0.0)); end
86
+ def h12; @h12 ||= index(:ref,match(sheet3.c12,:ref,0.0)); end
87
+ def i12; @i12 ||= index(:ref,match(sheet3.c12,:ref,0.0)); end
88
+ def j12; @j12 ||= index(:ref,match(sheet3.c12,:ref,0.0)); end
89
+ def k12; @k12 ||= index(:ref,match(sheet3.c12,:ref,0.0)); end
90
+ def l12; @l12 ||= index(:ref,match(sheet3.c12,:ref,0.0)); end
91
+ def m12; @m12 ||= index(:ref,match(sheet3.c12,:ref,0.0)); end
92
+ def n12; @n12 ||= index(:ref,match(sheet3.c12,:ref,0.0)); end
93
+ def o12; @o12 ||= index(:ref,match(sheet3.c12,:ref,0.0)); end
94
+ def p12; @p12 ||= index(:ref,match(sheet3.c12,:ref,0.0)); end
95
+ def q12; @q12 ||= index(:ref,match(sheet3.c12,:ref,0.0)); end
96
+ def d13; "交通"; end
97
+ def f13; @f13 ||= sum(a('f7','f12')); end
98
+ def h13; @h13 ||= sum(a('h7','h12')); end
99
+ def i13; @i13 ||= sum(a('i7','i12')); end
100
+ def j13; @j13 ||= sum(a('j7','j12')); end
101
+ def k13; @k13 ||= sum(a('k7','k12')); end
102
+ def l13; @l13 ||= sum(a('l7','l12')); end
103
+ def m13; @m13 ||= sum(a('m7','m12')); end
104
+ def n13; @n13 ||= sum(a('n7','n12')); end
105
+ def o13; @o13 ||= sum(a('o7','o12')); end
106
+ def p13; @p13 ||= sum(a('p7','p12')); end
107
+ def q13; @q13 ||= sum(a('q7','q12')); end
108
+ def c14; "I.01"; end
109
+ def d14; @d14 ||= index(:name,match(c14,:name,0.0)); end
110
+ def f14; @f14 ||= index(:ref,match(sheet3.c14,:ref,0.0)); end
111
+ def h14; @h14 ||= index(:ref,match(sheet3.c14,:ref,0.0)); end
112
+ def i14; @i14 ||= index(:ref,match(sheet3.c14,:ref,0.0)); end
113
+ def j14; @j14 ||= index(:ref,match(sheet3.c14,:ref,0.0)); end
114
+ def k14; @k14 ||= index(:ref,match(sheet3.c14,:ref,0.0)); end
115
+ def l14; @l14 ||= index(:ref,match(sheet3.c14,:ref,0.0)); end
116
+ def m14; @m14 ||= index(:ref,match(sheet3.c14,:ref,0.0)); end
117
+ def n14; @n14 ||= index(:ref,match(sheet3.c14,:ref,0.0)); end
118
+ def o14; @o14 ||= index(:ref,match(sheet3.c14,:ref,0.0)); end
119
+ def p14; @p14 ||= index(:ref,match(sheet3.c14,:ref,0.0)); end
120
+ def q14; @q14 ||= index(:ref,match(sheet3.c14,:ref,0.0)); end
121
+ def c15; "H.01"; end
122
+ def d15; @d15 ||= index(:name,match(c15,:name,0.0)); end
123
+ def f15; @f15 ||= index(:ref,match(sheet3.c15,:ref,0.0)); end
124
+ def h15; @h15 ||= index(:ref,match(sheet3.c15,:ref,0.0)); end
125
+ def i15; @i15 ||= index(:ref,match(sheet3.c15,:ref,0.0)); end
126
+ def j15; @j15 ||= index(:ref,match(sheet3.c15,:ref,0.0)); end
127
+ def k15; @k15 ||= index(:ref,match(sheet3.c15,:ref,0.0)); end
128
+ def l15; @l15 ||= index(:ref,match(sheet3.c15,:ref,0.0)); end
129
+ def m15; @m15 ||= index(:ref,match(sheet3.c15,:ref,0.0)); end
130
+ def n15; @n15 ||= index(:ref,match(sheet3.c15,:ref,0.0)); end
131
+ def o15; @o15 ||= index(:ref,match(sheet3.c15,:ref,0.0)); end
132
+ def p15; @p15 ||= index(:ref,match(sheet3.c15,:ref,0.0)); end
133
+ def q15; @q15 ||= index(:ref,match(sheet3.c15,:ref,0.0)); end
134
+ def c16; "L.01"; end
135
+ def d16; @d16 ||= index(:name,match(c16,:name,0.0)); end
136
+ def f16; @f16 ||= index(:ref,match(sheet3.c16,:ref,0.0)); end
137
+ def h16; @h16 ||= index(:ref,match(sheet3.c16,:ref,0.0)); end
138
+ def i16; @i16 ||= index(:ref,match(sheet3.c16,:ref,0.0)); end
139
+ def j16; @j16 ||= index(:ref,match(sheet3.c16,:ref,0.0)); end
140
+ def k16; @k16 ||= index(:ref,match(sheet3.c16,:ref,0.0)); end
141
+ def l16; @l16 ||= index(:ref,match(sheet3.c16,:ref,0.0)); end
142
+ def m16; @m16 ||= index(:ref,match(sheet3.c16,:ref,0.0)); end
143
+ def n16; @n16 ||= index(:ref,match(sheet3.c16,:ref,0.0)); end
144
+ def o16; @o16 ||= index(:ref,match(sheet3.c16,:ref,0.0)); end
145
+ def p16; @p16 ||= index(:ref,match(sheet3.c16,:ref,0.0)); end
146
+ def q16; @q16 ||= index(:ref,match(sheet3.c16,:ref,0.0)); end
147
+ def c17; "F.01"; end
148
+ def d17; @d17 ||= index(:name,match(c17,:name,0.0)); end
149
+ def f17; @f17 ||= index(:ref,match(sheet3.c17,:ref,0.0)); end
150
+ def h17; @h17 ||= index(:ref,match(sheet3.c17,:ref,0.0)); end
151
+ def i17; @i17 ||= index(:ref,match(sheet3.c17,:ref,0.0)); end
152
+ def j17; @j17 ||= index(:ref,match(sheet3.c17,:ref,0.0)); end
153
+ def k17; @k17 ||= index(:ref,match(sheet3.c17,:ref,0.0)); end
154
+ def l17; @l17 ||= index(:ref,match(sheet3.c17,:ref,0.0)); end
155
+ def m17; @m17 ||= index(:ref,match(sheet3.c17,:ref,0.0)); end
156
+ def n17; @n17 ||= index(:ref,match(sheet3.c17,:ref,0.0)); end
157
+ def o17; @o17 ||= index(:ref,match(sheet3.c17,:ref,0.0)); end
158
+ def p17; @p17 ||= index(:ref,match(sheet3.c17,:ref,0.0)); end
159
+ def q17; @q17 ||= index(:ref,match(sheet3.c17,:ref,0.0)); end
160
+ def d18; "Total Use"; end
161
+ def f18; @f18 ||= f13+f14+f15+f16+f17; end
162
+ def h18; @h18 ||= h13+h14+h15+h16+h17; end
163
+ def i18; @i18 ||= i13+i14+i15+i16+i17; end
164
+ def j18; @j18 ||= j13+j14+j15+j16+j17; end
165
+ def k18; @k18 ||= k13+k14+k15+k16+k17; end
166
+ def l18; @l18 ||= l13+l14+l15+l16+l17; end
167
+ def m18; @m18 ||= m13+m14+m15+m16+m17; end
168
+ def n18; @n18 ||= n13+n14+n15+n16+n17; end
169
+ def o18; @o18 ||= o13+o14+o15+o16+o17; end
170
+ def p18; @p18 ||= p13+p14+p15+p16+p17; end
171
+ def q18; @q18 ||= q13+q14+q15+q16+q17; end
172
+ def d20; "Dummy for charting uses"; end
173
+ def h20; @h20 ||= max(0.0,h47-h18); end
174
+ def i20; @i20 ||= max(0.0,i47-i18); end
175
+ def j20; @j20 ||= max(0.0,j47-j18); end
176
+ def k20; @k20 ||= max(0.0,k47-k18); end
177
+ def l20; @l20 ||= max(0.0,l47-l18); end
178
+ def m20; @m20 ||= max(0.0,m47-m18); end
179
+ def n20; @n20 ||= max(0.0,n47-n18); end
180
+ def o20; @o20 ||= max(0.0,o47-o18); end
181
+ def p20; @p20 ||= max(0.0,p47-p18); end
182
+ def q20; @q20 ||= max(0.0,q47-q18); end
183
+ def c22; "Source"; end
184
+ def c23; "N.01"; end
185
+ def d23; @d23 ||= index(:name,match(c23,:name,0.0)); end
186
+ def f23; @f23 ||= -index(:ref,match(sheet3.c23,:ref,0.0)); end
187
+ def h23; @h23 ||= -index(:ref,match(sheet3.c23,:ref,0.0)); end
188
+ def i23; @i23 ||= -index(:ref,match(sheet3.c23,:ref,0.0)); end
189
+ def j23; @j23 ||= -index(:ref,match(sheet3.c23,:ref,0.0)); end
190
+ def k23; @k23 ||= -index(:ref,match(sheet3.c23,:ref,0.0)); end
191
+ def l23; @l23 ||= -index(:ref,match(sheet3.c23,:ref,0.0)); end
192
+ def m23; @m23 ||= -index(:ref,match(sheet3.c23,:ref,0.0)); end
193
+ def n23; @n23 ||= -index(:ref,match(sheet3.c23,:ref,0.0)); end
194
+ def o23; @o23 ||= -index(:ref,match(sheet3.c23,:ref,0.0)); end
195
+ def p23; @p23 ||= -index(:ref,match(sheet3.c23,:ref,0.0)); end
196
+ def q23; @q23 ||= -index(:ref,match(sheet3.c23,:ref,0.0)); end
197
+ def c24; "R.01"; end
198
+ def d24; @d24 ||= index(:name,match(c24,:name,0.0)); end
199
+ def f24; @f24 ||= -index(:ref,match(sheet3.c24,:ref,0.0)); end
200
+ def h24; @h24 ||= -index(:ref,match(sheet3.c24,:ref,0.0)); end
201
+ def i24; @i24 ||= -index(:ref,match(sheet3.c24,:ref,0.0)); end
202
+ def j24; @j24 ||= -index(:ref,match(sheet3.c24,:ref,0.0)); end
203
+ def k24; @k24 ||= -index(:ref,match(sheet3.c24,:ref,0.0)); end
204
+ def l24; @l24 ||= -index(:ref,match(sheet3.c24,:ref,0.0)); end
205
+ def m24; @m24 ||= -index(:ref,match(sheet3.c24,:ref,0.0)); end
206
+ def n24; @n24 ||= -index(:ref,match(sheet3.c24,:ref,0.0)); end
207
+ def o24; @o24 ||= -index(:ref,match(sheet3.c24,:ref,0.0)); end
208
+ def p24; @p24 ||= -index(:ref,match(sheet3.c24,:ref,0.0)); end
209
+ def q24; @q24 ||= -index(:ref,match(sheet3.c24,:ref,0.0)); end
210
+ def c25; "R.02"; end
211
+ def d25; @d25 ||= index(:name,match(c25,:name,0.0)); end
212
+ def f25; @f25 ||= -index(:ref,match(sheet3.c25,:ref,0.0)); end
213
+ def h25; @h25 ||= -index(:ref,match(sheet3.c25,:ref,0.0)); end
214
+ def i25; @i25 ||= -index(:ref,match(sheet3.c25,:ref,0.0)); end
215
+ def j25; @j25 ||= -index(:ref,match(sheet3.c25,:ref,0.0)); end
216
+ def k25; @k25 ||= -index(:ref,match(sheet3.c25,:ref,0.0)); end
217
+ def l25; @l25 ||= -index(:ref,match(sheet3.c25,:ref,0.0)); end
218
+ def m25; @m25 ||= -index(:ref,match(sheet3.c25,:ref,0.0)); end
219
+ def n25; @n25 ||= -index(:ref,match(sheet3.c25,:ref,0.0)); end
220
+ def o25; @o25 ||= -index(:ref,match(sheet3.c25,:ref,0.0)); end
221
+ def p25; @p25 ||= -index(:ref,match(sheet3.c25,:ref,0.0)); end
222
+ def q25; @q25 ||= -index(:ref,match(sheet3.c25,:ref,0.0)); end
223
+ def c26; "R.03"; end
224
+ def d26; @d26 ||= index(:name,match(c26,:name,0.0)); end
225
+ def f26; @f26 ||= -index(:ref,match(sheet3.c26,:ref,0.0)); end
226
+ def h26; @h26 ||= -index(:ref,match(sheet3.c26,:ref,0.0)); end
227
+ def i26; @i26 ||= -index(:ref,match(sheet3.c26,:ref,0.0)); end
228
+ def j26; @j26 ||= -index(:ref,match(sheet3.c26,:ref,0.0)); end
229
+ def k26; @k26 ||= -index(:ref,match(sheet3.c26,:ref,0.0)); end
230
+ def l26; @l26 ||= -index(:ref,match(sheet3.c26,:ref,0.0)); end
231
+ def m26; @m26 ||= -index(:ref,match(sheet3.c26,:ref,0.0)); end
232
+ def n26; @n26 ||= -index(:ref,match(sheet3.c26,:ref,0.0)); end
233
+ def o26; @o26 ||= -index(:ref,match(sheet3.c26,:ref,0.0)); end
234
+ def p26; @p26 ||= -index(:ref,match(sheet3.c26,:ref,0.0)); end
235
+ def q26; @q26 ||= -index(:ref,match(sheet3.c26,:ref,0.0)); end
236
+ def c27; "R.04"; end
237
+ def d27; @d27 ||= index(:name,match(c27,:name,0.0)); end
238
+ def f27; @f27 ||= -index(:ref,match(sheet3.c27,:ref,0.0)); end
239
+ def h27; @h27 ||= -index(:ref,match(sheet3.c27,:ref,0.0)); end
240
+ def i27; @i27 ||= -index(:ref,match(sheet3.c27,:ref,0.0)); end
241
+ def j27; @j27 ||= -index(:ref,match(sheet3.c27,:ref,0.0)); end
242
+ def k27; @k27 ||= -index(:ref,match(sheet3.c27,:ref,0.0)); end
243
+ def l27; @l27 ||= -index(:ref,match(sheet3.c27,:ref,0.0)); end
244
+ def m27; @m27 ||= -index(:ref,match(sheet3.c27,:ref,0.0)); end
245
+ def n27; @n27 ||= -index(:ref,match(sheet3.c27,:ref,0.0)); end
246
+ def o27; @o27 ||= -index(:ref,match(sheet3.c27,:ref,0.0)); end
247
+ def p27; @p27 ||= -index(:ref,match(sheet3.c27,:ref,0.0)); end
248
+ def q27; @q27 ||= -index(:ref,match(sheet3.c27,:ref,0.0)); end
249
+ def c28; "R.05"; end
250
+ def d28; @d28 ||= index(:name,match(c28,:name,0.0)); end
251
+ def f28; @f28 ||= -index(:ref,match(sheet3.c28,:ref,0.0)); end
252
+ def h28; @h28 ||= -index(:ref,match(sheet3.c28,:ref,0.0)); end
253
+ def i28; @i28 ||= -index(:ref,match(sheet3.c28,:ref,0.0)); end
254
+ def j28; @j28 ||= -index(:ref,match(sheet3.c28,:ref,0.0)); end
255
+ def k28; @k28 ||= -index(:ref,match(sheet3.c28,:ref,0.0)); end
256
+ def l28; @l28 ||= -index(:ref,match(sheet3.c28,:ref,0.0)); end
257
+ def m28; @m28 ||= -index(:ref,match(sheet3.c28,:ref,0.0)); end
258
+ def n28; @n28 ||= -index(:ref,match(sheet3.c28,:ref,0.0)); end
259
+ def o28; @o28 ||= -index(:ref,match(sheet3.c28,:ref,0.0)); end
260
+ def p28; @p28 ||= -index(:ref,match(sheet3.c28,:ref,0.0)); end
261
+ def q28; @q28 ||= -index(:ref,match(sheet3.c28,:ref,0.0)); end
262
+ def c29; "R.06"; end
263
+ def d29; @d29 ||= index(:name,match(c29,:name,0.0)); end
264
+ def f29; @f29 ||= -index(:ref,match(sheet3.c29,:ref,0.0)); end
265
+ def h29; @h29 ||= -index(:ref,match(sheet3.c29,:ref,0.0)); end
266
+ def i29; @i29 ||= -index(:ref,match(sheet3.c29,:ref,0.0)); end
267
+ def j29; @j29 ||= -index(:ref,match(sheet3.c29,:ref,0.0)); end
268
+ def k29; @k29 ||= -index(:ref,match(sheet3.c29,:ref,0.0)); end
269
+ def l29; @l29 ||= -index(:ref,match(sheet3.c29,:ref,0.0)); end
270
+ def m29; @m29 ||= -index(:ref,match(sheet3.c29,:ref,0.0)); end
271
+ def n29; @n29 ||= -index(:ref,match(sheet3.c29,:ref,0.0)); end
272
+ def o29; @o29 ||= -index(:ref,match(sheet3.c29,:ref,0.0)); end
273
+ def p29; @p29 ||= -index(:ref,match(sheet3.c29,:ref,0.0)); end
274
+ def q29; @q29 ||= -index(:ref,match(sheet3.c29,:ref,0.0)); end
275
+ def c30; "Y.02"; end
276
+ def d30; @d30 ||= index(:name,match(c30,:name,0.0)); end
277
+ def f30; @f30 ||= -index(:ref,match(sheet3.c30,:ref,0.0)); end
278
+ def h30; @h30 ||= -index(:ref,match(sheet3.c30,:ref,0.0)); end
279
+ def i30; @i30 ||= -index(:ref,match(sheet3.c30,:ref,0.0)); end
280
+ def j30; @j30 ||= -index(:ref,match(sheet3.c30,:ref,0.0)); end
281
+ def k30; @k30 ||= -index(:ref,match(sheet3.c30,:ref,0.0)); end
282
+ def l30; @l30 ||= -index(:ref,match(sheet3.c30,:ref,0.0)); end
283
+ def m30; @m30 ||= -index(:ref,match(sheet3.c30,:ref,0.0)); end
284
+ def n30; @n30 ||= -index(:ref,match(sheet3.c30,:ref,0.0)); end
285
+ def o30; @o30 ||= -index(:ref,match(sheet3.c30,:ref,0.0)); end
286
+ def p30; @p30 ||= -index(:ref,match(sheet3.c30,:ref,0.0)); end
287
+ def q30; @q30 ||= -index(:ref,match(sheet3.c30,:ref,0.0)); end
288
+ def d31; "Primary electricity, solar, marine, and net imports"; end
289
+ def f31; @f31 ||= sum(a('f23','f30')); end
290
+ def h31; @h31 ||= sum(a('h23','h30')); end
291
+ def i31; @i31 ||= sum(a('i23','i30')); end
292
+ def j31; @j31 ||= sum(a('j23','j30')); end
293
+ def k31; @k31 ||= sum(a('k23','k30')); end
294
+ def l31; @l31 ||= sum(a('l23','l30')); end
295
+ def m31; @m31 ||= sum(a('m23','m30')); end
296
+ def n31; @n31 ||= sum(a('n23','n30')); end
297
+ def o31; @o31 ||= sum(a('o23','o30')); end
298
+ def p31; @p31 ||= sum(a('p23','p30')); end
299
+ def q31; @q31 ||= sum(a('q23','q30')); end
300
+ def c32; "R.07"; end
301
+ def d32; @d32 ||= index(:name,match(c32,:name,0.0)); end
302
+ def f32; @f32 ||= -index(:ref,match(sheet3.c32,:ref,0.0)); end
303
+ def h32; @h32 ||= -index(:ref,match(sheet3.c32,:ref,0.0)); end
304
+ def i32; @i32 ||= -index(:ref,match(sheet3.c32,:ref,0.0)); end
305
+ def j32; @j32 ||= -index(:ref,match(sheet3.c32,:ref,0.0)); end
306
+ def k32; @k32 ||= -index(:ref,match(sheet3.c32,:ref,0.0)); end
307
+ def l32; @l32 ||= -index(:ref,match(sheet3.c32,:ref,0.0)); end
308
+ def m32; @m32 ||= -index(:ref,match(sheet3.c32,:ref,0.0)); end
309
+ def n32; @n32 ||= -index(:ref,match(sheet3.c32,:ref,0.0)); end
310
+ def o32; @o32 ||= -index(:ref,match(sheet3.c32,:ref,0.0)); end
311
+ def p32; @p32 ||= -index(:ref,match(sheet3.c32,:ref,0.0)); end
312
+ def q32; @q32 ||= -index(:ref,match(sheet3.c32,:ref,0.0)); end
313
+ def c33; "W.01"; end
314
+ def d33; @d33 ||= index(:name,match(c33,:name,0.0)); end
315
+ def f33; @f33 ||= -index(:ref,match(sheet3.c33,:ref,0.0)); end
316
+ def h33; @h33 ||= -index(:ref,match(sheet3.c33,:ref,0.0)); end
317
+ def i33; @i33 ||= -index(:ref,match(sheet3.c33,:ref,0.0)); end
318
+ def j33; @j33 ||= -index(:ref,match(sheet3.c33,:ref,0.0)); end
319
+ def k33; @k33 ||= -index(:ref,match(sheet3.c33,:ref,0.0)); end
320
+ def l33; @l33 ||= -index(:ref,match(sheet3.c33,:ref,0.0)); end
321
+ def m33; @m33 ||= -index(:ref,match(sheet3.c33,:ref,0.0)); end
322
+ def n33; @n33 ||= -index(:ref,match(sheet3.c33,:ref,0.0)); end
323
+ def o33; @o33 ||= -index(:ref,match(sheet3.c33,:ref,0.0)); end
324
+ def p33; @p33 ||= -index(:ref,match(sheet3.c33,:ref,0.0)); end
325
+ def q33; @q33 ||= -index(:ref,match(sheet3.c33,:ref,0.0)); end
326
+ def c34; "A.01"; end
327
+ def d34; @d34 ||= index(:name,match(c34,:name,0.0)); end
328
+ def f34; @f34 ||= -index(:ref,match(sheet3.c34,:ref,0.0)); end
329
+ def h34; @h34 ||= -index(:ref,match(sheet3.c34,:ref,0.0)); end
330
+ def i34; @i34 ||= -index(:ref,match(sheet3.c34,:ref,0.0)); end
331
+ def j34; @j34 ||= -index(:ref,match(sheet3.c34,:ref,0.0)); end
332
+ def k34; @k34 ||= -index(:ref,match(sheet3.c34,:ref,0.0)); end
333
+ def l34; @l34 ||= -index(:ref,match(sheet3.c34,:ref,0.0)); end
334
+ def m34; @m34 ||= -index(:ref,match(sheet3.c34,:ref,0.0)); end
335
+ def n34; @n34 ||= -index(:ref,match(sheet3.c34,:ref,0.0)); end
336
+ def o34; @o34 ||= -index(:ref,match(sheet3.c34,:ref,0.0)); end
337
+ def p34; @p34 ||= -index(:ref,match(sheet3.c34,:ref,0.0)); end
338
+ def q34; @q34 ||= -index(:ref,match(sheet3.c34,:ref,0.0)); end
339
+ def c35; "Y.01"; end
340
+ def d35; @d35 ||= index(:name,match(c35,:name,0.0)); end
341
+ def f35; @f35 ||= -index(:ref,match(sheet3.c35,:ref,0.0)); end
342
+ def h35; @h35 ||= -index(:ref,match(sheet3.c35,:ref,0.0)); end
343
+ def i35; @i35 ||= -index(:ref,match(sheet3.c35,:ref,0.0)); end
344
+ def j35; @j35 ||= -index(:ref,match(sheet3.c35,:ref,0.0)); end
345
+ def k35; @k35 ||= -index(:ref,match(sheet3.c35,:ref,0.0)); end
346
+ def l35; @l35 ||= -index(:ref,match(sheet3.c35,:ref,0.0)); end
347
+ def m35; @m35 ||= -index(:ref,match(sheet3.c35,:ref,0.0)); end
348
+ def n35; @n35 ||= -index(:ref,match(sheet3.c35,:ref,0.0)); end
349
+ def o35; @o35 ||= -index(:ref,match(sheet3.c35,:ref,0.0)); end
350
+ def p35; @p35 ||= -index(:ref,match(sheet3.c35,:ref,0.0)); end
351
+ def q35; @q35 ||= -index(:ref,match(sheet3.c35,:ref,0.0)); end
352
+ def d36; "Agriculture, waste, and biomatter imports"; end
353
+ def f36; @f36 ||= sum(a('f33','f35')); end
354
+ def h36; @h36 ||= sum(a('h33','h35')); end
355
+ def i36; @i36 ||= sum(a('i33','i35')); end
356
+ def j36; @j36 ||= sum(a('j33','j35')); end
357
+ def k36; @k36 ||= sum(a('k33','k35')); end
358
+ def l36; @l36 ||= sum(a('l33','l35')); end
359
+ def m36; @m36 ||= sum(a('m33','m35')); end
360
+ def n36; @n36 ||= sum(a('n33','n35')); end
361
+ def o36; @o36 ||= sum(a('o33','o35')); end
362
+ def p36; @p36 ||= sum(a('p33','p35')); end
363
+ def q36; @q36 ||= sum(a('q33','q35')); end
364
+ def c37; "Y.04"; end
365
+ def d37; @d37 ||= index(:name,match(c37,:name,0.0)); end
366
+ def f37; @f37 ||= -index(:ref,match(sheet3.c37,:ref,0.0)); end
367
+ def h37; @h37 ||= -index(:ref,match(sheet3.c37,:ref,0.0)); end
368
+ def i37; @i37 ||= -index(:ref,match(sheet3.c37,:ref,0.0)); end
369
+ def j37; @j37 ||= -index(:ref,match(sheet3.c37,:ref,0.0)); end
370
+ def k37; @k37 ||= -index(:ref,match(sheet3.c37,:ref,0.0)); end
371
+ def l37; @l37 ||= -index(:ref,match(sheet3.c37,:ref,0.0)); end
372
+ def m37; @m37 ||= -index(:ref,match(sheet3.c37,:ref,0.0)); end
373
+ def n37; @n37 ||= -index(:ref,match(sheet3.c37,:ref,0.0)); end
374
+ def o37; @o37 ||= -index(:ref,match(sheet3.c37,:ref,0.0)); end
375
+ def p37; @p37 ||= -index(:ref,match(sheet3.c37,:ref,0.0)); end
376
+ def q37; @q37 ||= -index(:ref,match(sheet3.c37,:ref,0.0)); end
377
+ def c38; "Q.01"; end
378
+ def d38; @d38 ||= index(:name,match(c38,:name,0.0)); end
379
+ def f38; @f38 ||= -index(:ref,match(sheet3.c38,:ref,0.0)); end
380
+ def h38; @h38 ||= -index(:ref,match(sheet3.c38,:ref,0.0)); end
381
+ def i38; @i38 ||= -index(:ref,match(sheet3.c38,:ref,0.0)); end
382
+ def j38; @j38 ||= -index(:ref,match(sheet3.c38,:ref,0.0)); end
383
+ def k38; @k38 ||= -index(:ref,match(sheet3.c38,:ref,0.0)); end
384
+ def l38; @l38 ||= -index(:ref,match(sheet3.c38,:ref,0.0)); end
385
+ def m38; @m38 ||= -index(:ref,match(sheet3.c38,:ref,0.0)); end
386
+ def n38; @n38 ||= -index(:ref,match(sheet3.c38,:ref,0.0)); end
387
+ def o38; @o38 ||= -index(:ref,match(sheet3.c38,:ref,0.0)); end
388
+ def p38; @p38 ||= -index(:ref,match(sheet3.c38,:ref,0.0)); end
389
+ def q38; @q38 ||= -index(:ref,match(sheet3.c38,:ref,0.0)); end
390
+ def d39; "Coal"; end
391
+ def f39; @f39 ||= sum(a('f37','f38')); end
392
+ def h39; @h39 ||= sum(a('h37','h38')); end
393
+ def i39; @i39 ||= sum(a('i37','i38')); end
394
+ def j39; @j39 ||= sum(a('j37','j38')); end
395
+ def k39; @k39 ||= sum(a('k37','k38')); end
396
+ def l39; @l39 ||= sum(a('l37','l38')); end
397
+ def m39; @m39 ||= sum(a('m37','m38')); end
398
+ def n39; @n39 ||= sum(a('n37','n38')); end
399
+ def o39; @o39 ||= sum(a('o37','o38')); end
400
+ def p39; @p39 ||= sum(a('p37','p38')); end
401
+ def q39; @q39 ||= sum(a('q37','q38')); end
402
+ def c40; "Q.02"; end
403
+ def d40; @d40 ||= index(:name,match(c40,:name,0.0)); end
404
+ def f40; @f40 ||= -index(:ref,match(sheet3.c40,:ref,0.0)); end
405
+ def h40; @h40 ||= -index(:ref,match(sheet3.c40,:ref,0.0)); end
406
+ def i40; @i40 ||= -index(:ref,match(sheet3.c40,:ref,0.0)); end
407
+ def j40; @j40 ||= -index(:ref,match(sheet3.c40,:ref,0.0)); end
408
+ def k40; @k40 ||= -index(:ref,match(sheet3.c40,:ref,0.0)); end
409
+ def l40; @l40 ||= -index(:ref,match(sheet3.c40,:ref,0.0)); end
410
+ def m40; @m40 ||= -index(:ref,match(sheet3.c40,:ref,0.0)); end
411
+ def n40; @n40 ||= -index(:ref,match(sheet3.c40,:ref,0.0)); end
412
+ def o40; @o40 ||= -index(:ref,match(sheet3.c40,:ref,0.0)); end
413
+ def p40; @p40 ||= -index(:ref,match(sheet3.c40,:ref,0.0)); end
414
+ def q40; @q40 ||= -index(:ref,match(sheet3.c40,:ref,0.0)); end
415
+ def c41; "Y.05"; end
416
+ def d41; @d41 ||= index(:name,match(c41,:name,0.0)); end
417
+ def f41; @f41 ||= -index(:ref,match(sheet3.c41,:ref,0.0)); end
418
+ def h41; @h41 ||= -index(:ref,match(sheet3.c41,:ref,0.0)); end
419
+ def i41; @i41 ||= -index(:ref,match(sheet3.c41,:ref,0.0)); end
420
+ def j41; @j41 ||= -index(:ref,match(sheet3.c41,:ref,0.0)); end
421
+ def k41; @k41 ||= -index(:ref,match(sheet3.c41,:ref,0.0)); end
422
+ def l41; @l41 ||= -index(:ref,match(sheet3.c41,:ref,0.0)); end
423
+ def m41; @m41 ||= -index(:ref,match(sheet3.c41,:ref,0.0)); end
424
+ def n41; @n41 ||= -index(:ref,match(sheet3.c41,:ref,0.0)); end
425
+ def o41; @o41 ||= -index(:ref,match(sheet3.c41,:ref,0.0)); end
426
+ def p41; @p41 ||= -index(:ref,match(sheet3.c41,:ref,0.0)); end
427
+ def q41; @q41 ||= -index(:ref,match(sheet3.c41,:ref,0.0)); end
428
+ def c42; "Y.03"; end
429
+ def d42; @d42 ||= index(:name,match(c42,:name,0.0)); end
430
+ def f42; @f42 ||= -index(:ref,match(sheet3.c42,:ref,0.0)); end
431
+ def h42; @h42 ||= -index(:ref,match(sheet3.c42,:ref,0.0)); end
432
+ def i42; @i42 ||= -index(:ref,match(sheet3.c42,:ref,0.0)); end
433
+ def j42; @j42 ||= -index(:ref,match(sheet3.c42,:ref,0.0)); end
434
+ def k42; @k42 ||= -index(:ref,match(sheet3.c42,:ref,0.0)); end
435
+ def l42; @l42 ||= -index(:ref,match(sheet3.c42,:ref,0.0)); end
436
+ def m42; @m42 ||= -index(:ref,match(sheet3.c42,:ref,0.0)); end
437
+ def n42; @n42 ||= -index(:ref,match(sheet3.c42,:ref,0.0)); end
438
+ def o42; @o42 ||= -index(:ref,match(sheet3.c42,:ref,0.0)); end
439
+ def p42; @p42 ||= -index(:ref,match(sheet3.c42,:ref,0.0)); end
440
+ def q42; @q42 ||= -index(:ref,match(sheet3.c42,:ref,0.0)); end
441
+ def d43; "Oil and petroleum products"; end
442
+ def f43; @f43 ||= sum(a('f40','f42')); end
443
+ def h43; @h43 ||= sum(a('h40','h42')); end
444
+ def i43; @i43 ||= sum(a('i40','i42')); end
445
+ def j43; @j43 ||= sum(a('j40','j42')); end
446
+ def k43; @k43 ||= sum(a('k40','k42')); end
447
+ def l43; @l43 ||= sum(a('l40','l42')); end
448
+ def m43; @m43 ||= sum(a('m40','m42')); end
449
+ def n43; @n43 ||= sum(a('n40','n42')); end
450
+ def o43; @o43 ||= sum(a('o40','o42')); end
451
+ def p43; @p43 ||= sum(a('p40','p42')); end
452
+ def q43; @q43 ||= sum(a('q40','q42')); end
453
+ def c44; "Y.06"; end
454
+ def d44; @d44 ||= index(:name,match(c44,:name,0.0)); end
455
+ def f44; @f44 ||= -index(:ref,match(sheet3.c44,:ref,0.0)); end
456
+ def h44; @h44 ||= -index(:ref,match(sheet3.c44,:ref,0.0)); end
457
+ def i44; @i44 ||= -index(:ref,match(sheet3.c44,:ref,0.0)); end
458
+ def j44; @j44 ||= -index(:ref,match(sheet3.c44,:ref,0.0)); end
459
+ def k44; @k44 ||= -index(:ref,match(sheet3.c44,:ref,0.0)); end
460
+ def l44; @l44 ||= -index(:ref,match(sheet3.c44,:ref,0.0)); end
461
+ def m44; @m44 ||= -index(:ref,match(sheet3.c44,:ref,0.0)); end
462
+ def n44; @n44 ||= -index(:ref,match(sheet3.c44,:ref,0.0)); end
463
+ def o44; @o44 ||= -index(:ref,match(sheet3.c44,:ref,0.0)); end
464
+ def p44; @p44 ||= -index(:ref,match(sheet3.c44,:ref,0.0)); end
465
+ def q44; @q44 ||= -index(:ref,match(sheet3.c44,:ref,0.0)); end
466
+ def c45; "Q.03"; end
467
+ def d45; @d45 ||= index(:name,match(c45,:name,0.0)); end
468
+ def f45; @f45 ||= -index(:ref,match(sheet3.c45,:ref,0.0)); end
469
+ def h45; @h45 ||= -index(:ref,match(sheet3.c45,:ref,0.0)); end
470
+ def i45; @i45 ||= -index(:ref,match(sheet3.c45,:ref,0.0)); end
471
+ def j45; @j45 ||= -index(:ref,match(sheet3.c45,:ref,0.0)); end
472
+ def k45; @k45 ||= -index(:ref,match(sheet3.c45,:ref,0.0)); end
473
+ def l45; @l45 ||= -index(:ref,match(sheet3.c45,:ref,0.0)); end
474
+ def m45; @m45 ||= -index(:ref,match(sheet3.c45,:ref,0.0)); end
475
+ def n45; @n45 ||= -index(:ref,match(sheet3.c45,:ref,0.0)); end
476
+ def o45; @o45 ||= -index(:ref,match(sheet3.c45,:ref,0.0)); end
477
+ def p45; @p45 ||= -index(:ref,match(sheet3.c45,:ref,0.0)); end
478
+ def q45; @q45 ||= -index(:ref,match(sheet3.c45,:ref,0.0)); end
479
+ def d46; "Natural gas"; end
480
+ def f46; @f46 ||= sum(a('f44','f45')); end
481
+ def h46; @h46 ||= sum(a('h44','h45')); end
482
+ def i46; @i46 ||= sum(a('i44','i45')); end
483
+ def j46; @j46 ||= sum(a('j44','j45')); end
484
+ def k46; @k46 ||= sum(a('k44','k45')); end
485
+ def l46; @l46 ||= sum(a('l44','l45')); end
486
+ def m46; @m46 ||= sum(a('m44','m45')); end
487
+ def n46; @n46 ||= sum(a('n44','n45')); end
488
+ def o46; @o46 ||= sum(a('o44','o45')); end
489
+ def p46; @p46 ||= sum(a('p44','p45')); end
490
+ def q46; @q46 ||= sum(a('q44','q45')); end
491
+ def d47; "Total Primary Supply"; end
492
+ def f47; @f47 ||= f31+f32+f36+f39+f43+f46; end
493
+ def h47; @h47 ||= h31+h32+h36+h39+h43+h46; end
494
+ def i47; @i47 ||= i31+i32+i36+i39+i43+i46; end
495
+ def j47; @j47 ||= j31+j32+j36+j39+j43+j46; end
496
+ def k47; @k47 ||= k31+k32+k36+k39+k43+k46; end
497
+ def l47; @l47 ||= l31+l32+l36+l39+l43+l46; end
498
+ def m47; @m47 ||= m31+m32+m36+m39+m43+m46; end
499
+ def n47; @n47 ||= n31+n32+n36+n39+n43+n46; end
500
+ def o47; @o47 ||= o31+o32+o36+o39+o43+o46; end
501
+ def p47; @p47 ||= p31+p32+p36+p39+p43+p46; end
502
+ def q47; @q47 ||= q31+q32+q36+q39+q43+q46; end
503
+ def d49; "Dummy for charting supply"; end
504
+ def h49; @h49 ||= max(0.0,-(h47-h18)); end
505
+ def i49; @i49 ||= max(0.0,-(i47-i18)); end
506
+ def j49; @j49 ||= max(0.0,-(j47-j18)); end
507
+ def k49; @k49 ||= max(0.0,-(k47-k18)); end
508
+ def l49; @l49 ||= max(0.0,-(l47-l18)); end
509
+ def m49; @m49 ||= max(0.0,-(m47-m18)); end
510
+ def n49; @n49 ||= max(0.0,-(n47-n18)); end
511
+ def o49; @o49 ||= max(0.0,-(o47-o18)); end
512
+ def p49; @p49 ||= max(0.0,-(p47-p18)); end
513
+ def q49; @q49 ||= max(0.0,-(q47-q18)); end
514
+ def c51; "Conversion losses, distribution, and own use"; end
515
+ def c52; "X.01"; end
516
+ def d52; @d52 ||= index(:name,match(c52,:name,0.0)); end
517
+ def f52; @f52 ||= index(:ref,match(sheet3.c52,:ref,0.0)); end
518
+ def h52; @h52 ||= index(:ref,match(sheet3.c52,:ref,0.0)); end
519
+ def i52; @i52 ||= index(:ref,match(sheet3.c52,:ref,0.0)); end
520
+ def j52; @j52 ||= index(:ref,match(sheet3.c52,:ref,0.0)); end
521
+ def k52; @k52 ||= index(:ref,match(sheet3.c52,:ref,0.0)); end
522
+ def l52; @l52 ||= index(:ref,match(sheet3.c52,:ref,0.0)); end
523
+ def m52; @m52 ||= index(:ref,match(sheet3.c52,:ref,0.0)); end
524
+ def n52; @n52 ||= index(:ref,match(sheet3.c52,:ref,0.0)); end
525
+ def o52; @o52 ||= index(:ref,match(sheet3.c52,:ref,0.0)); end
526
+ def p52; @p52 ||= index(:ref,match(sheet3.c52,:ref,0.0)); end
527
+ def q52; @q52 ||= index(:ref,match(sheet3.c52,:ref,0.0)); end
528
+ def c53; "X.02"; end
529
+ def d53; @d53 ||= index(:name,match(c53,:name,0.0)); end
530
+ def f53; @f53 ||= index(:ref,match(sheet3.c53,:ref,0.0)); end
531
+ def h53; @h53 ||= index(:ref,match(sheet3.c53,:ref,0.0)); end
532
+ def i53; @i53 ||= index(:ref,match(sheet3.c53,:ref,0.0)); end
533
+ def j53; @j53 ||= index(:ref,match(sheet3.c53,:ref,0.0)); end
534
+ def k53; @k53 ||= index(:ref,match(sheet3.c53,:ref,0.0)); end
535
+ def l53; @l53 ||= index(:ref,match(sheet3.c53,:ref,0.0)); end
536
+ def m53; @m53 ||= index(:ref,match(sheet3.c53,:ref,0.0)); end
537
+ def n53; @n53 ||= index(:ref,match(sheet3.c53,:ref,0.0)); end
538
+ def o53; @o53 ||= index(:ref,match(sheet3.c53,:ref,0.0)); end
539
+ def p53; @p53 ||= index(:ref,match(sheet3.c53,:ref,0.0)); end
540
+ def q53; @q53 ||= index(:ref,match(sheet3.c53,:ref,0.0)); end
541
+ def d54; "Supply net of losses"; end
542
+ def f54; @f54 ||= f47-sum(a('f52','f53')); end
543
+ def h54; @h54 ||= h47-sum(a('h52','h53')); end
544
+ def i54; @i54 ||= i47-sum(a('i52','i53')); end
545
+ def j54; @j54 ||= j47-sum(a('j52','j53')); end
546
+ def k54; @k54 ||= k47-sum(a('k52','k53')); end
547
+ def l54; @l54 ||= l47-sum(a('l52','l53')); end
548
+ def m54; @m54 ||= m47-sum(a('m52','m53')); end
549
+ def n54; @n54 ||= n47-sum(a('n52','n53')); end
550
+ def o54; @o54 ||= o47-sum(a('o52','o53')); end
551
+ def p54; @p54 ||= p47-sum(a('p52','p53')); end
552
+ def q54; @q54 ||= q47-sum(a('q52','q53')); end
553
+ def c56; "Supply / demand not accounted for"; end
554
+ def c58; "C.01"; end
555
+ def d58; @d58 ||= index(:name,match(c58,:name,0.0)); end
556
+ def f58; @f58 ||= index(:ref,match(sheet3.c58,:ref,0.0)); end
557
+ def h58; @h58 ||= index(:ref,match(sheet3.c58,:ref,0.0)); end
558
+ def i58; @i58 ||= index(:ref,match(sheet3.c58,:ref,0.0)); end
559
+ def j58; @j58 ||= index(:ref,match(sheet3.c58,:ref,0.0)); end
560
+ def k58; @k58 ||= index(:ref,match(sheet3.c58,:ref,0.0)); end
561
+ def l58; @l58 ||= index(:ref,match(sheet3.c58,:ref,0.0)); end
562
+ def m58; @m58 ||= index(:ref,match(sheet3.c58,:ref,0.0)); end
563
+ def n58; @n58 ||= index(:ref,match(sheet3.c58,:ref,0.0)); end
564
+ def o58; @o58 ||= index(:ref,match(sheet3.c58,:ref,0.0)); end
565
+ def p58; @p58 ||= index(:ref,match(sheet3.c58,:ref,0.0)); end
566
+ def q58; @q58 ||= index(:ref,match(sheet3.c58,:ref,0.0)); end
567
+ def c59; "C.02"; end
568
+ def d59; @d59 ||= index(:name,match(c59,:name,0.0)); end
569
+ def f59; @f59 ||= index(:ref,match(sheet3.c59,:ref,0.0)); end
570
+ def h59; @h59 ||= index(:ref,match(sheet3.c59,:ref,0.0)); end
571
+ def i59; @i59 ||= index(:ref,match(sheet3.c59,:ref,0.0)); end
572
+ def j59; @j59 ||= index(:ref,match(sheet3.c59,:ref,0.0)); end
573
+ def k59; @k59 ||= index(:ref,match(sheet3.c59,:ref,0.0)); end
574
+ def l59; @l59 ||= index(:ref,match(sheet3.c59,:ref,0.0)); end
575
+ def m59; @m59 ||= index(:ref,match(sheet3.c59,:ref,0.0)); end
576
+ def n59; @n59 ||= index(:ref,match(sheet3.c59,:ref,0.0)); end
577
+ def o59; @o59 ||= index(:ref,match(sheet3.c59,:ref,0.0)); end
578
+ def p59; @p59 ||= index(:ref,match(sheet3.c59,:ref,0.0)); end
579
+ def q59; @q59 ||= index(:ref,match(sheet3.c59,:ref,0.0)); end
580
+ def c60; "C.03"; end
581
+ def d60; @d60 ||= index(:name,match(c60,:name,0.0)); end
582
+ def f60; @f60 ||= index(:ref,match(sheet3.c60,:ref,0.0)); end
583
+ def h60; @h60 ||= index(:ref,match(sheet3.c60,:ref,0.0)); end
584
+ def i60; @i60 ||= index(:ref,match(sheet3.c60,:ref,0.0)); end
585
+ def j60; @j60 ||= index(:ref,match(sheet3.c60,:ref,0.0)); end
586
+ def k60; @k60 ||= index(:ref,match(sheet3.c60,:ref,0.0)); end
587
+ def l60; @l60 ||= index(:ref,match(sheet3.c60,:ref,0.0)); end
588
+ def m60; @m60 ||= index(:ref,match(sheet3.c60,:ref,0.0)); end
589
+ def n60; @n60 ||= index(:ref,match(sheet3.c60,:ref,0.0)); end
590
+ def o60; @o60 ||= index(:ref,match(sheet3.c60,:ref,0.0)); end
591
+ def p60; @p60 ||= index(:ref,match(sheet3.c60,:ref,0.0)); end
592
+ def q60; @q60 ||= index(:ref,match(sheet3.c60,:ref,0.0)); end
593
+ def c61; "V.03"; end
594
+ def d61; @d61 ||= index(:name,match(c61,:name,0.0)); end
595
+ def f61; @f61 ||= index(:ref,match(sheet3.c61,:ref,0.0)); end
596
+ def h61; @h61 ||= index(:ref,match(sheet3.c61,:ref,0.0)); end
597
+ def i61; @i61 ||= index(:ref,match(sheet3.c61,:ref,0.0)); end
598
+ def j61; @j61 ||= index(:ref,match(sheet3.c61,:ref,0.0)); end
599
+ def k61; @k61 ||= index(:ref,match(sheet3.c61,:ref,0.0)); end
600
+ def l61; @l61 ||= index(:ref,match(sheet3.c61,:ref,0.0)); end
601
+ def m61; @m61 ||= index(:ref,match(sheet3.c61,:ref,0.0)); end
602
+ def n61; @n61 ||= index(:ref,match(sheet3.c61,:ref,0.0)); end
603
+ def o61; @o61 ||= index(:ref,match(sheet3.c61,:ref,0.0)); end
604
+ def p61; @p61 ||= index(:ref,match(sheet3.c61,:ref,0.0)); end
605
+ def q61; @q61 ||= index(:ref,match(sheet3.c61,:ref,0.0)); end
606
+ def c62; "V.04"; end
607
+ def d62; @d62 ||= index(:name,match(c62,:name,0.0)); end
608
+ def f62; @f62 ||= index(:ref,match(sheet3.c62,:ref,0.0)); end
609
+ def h62; @h62 ||= index(:ref,match(sheet3.c62,:ref,0.0)); end
610
+ def i62; @i62 ||= index(:ref,match(sheet3.c62,:ref,0.0)); end
611
+ def j62; @j62 ||= index(:ref,match(sheet3.c62,:ref,0.0)); end
612
+ def k62; @k62 ||= index(:ref,match(sheet3.c62,:ref,0.0)); end
613
+ def l62; @l62 ||= index(:ref,match(sheet3.c62,:ref,0.0)); end
614
+ def m62; @m62 ||= index(:ref,match(sheet3.c62,:ref,0.0)); end
615
+ def n62; @n62 ||= index(:ref,match(sheet3.c62,:ref,0.0)); end
616
+ def o62; @o62 ||= index(:ref,match(sheet3.c62,:ref,0.0)); end
617
+ def p62; @p62 ||= index(:ref,match(sheet3.c62,:ref,0.0)); end
618
+ def q62; @q62 ||= index(:ref,match(sheet3.c62,:ref,0.0)); end
619
+ def c63; "V.05"; end
620
+ def d63; @d63 ||= index(:name,match(c63,:name,0.0)); end
621
+ def f63; @f63 ||= index(:ref,match(sheet3.c63,:ref,0.0)); end
622
+ def h63; @h63 ||= index(:ref,match(sheet3.c63,:ref,0.0)); end
623
+ def i63; @i63 ||= index(:ref,match(sheet3.c63,:ref,0.0)); end
624
+ def j63; @j63 ||= index(:ref,match(sheet3.c63,:ref,0.0)); end
625
+ def k63; @k63 ||= index(:ref,match(sheet3.c63,:ref,0.0)); end
626
+ def l63; @l63 ||= index(:ref,match(sheet3.c63,:ref,0.0)); end
627
+ def m63; @m63 ||= index(:ref,match(sheet3.c63,:ref,0.0)); end
628
+ def n63; @n63 ||= index(:ref,match(sheet3.c63,:ref,0.0)); end
629
+ def o63; @o63 ||= index(:ref,match(sheet3.c63,:ref,0.0)); end
630
+ def p63; @p63 ||= index(:ref,match(sheet3.c63,:ref,0.0)); end
631
+ def q63; @q63 ||= index(:ref,match(sheet3.c63,:ref,0.0)); end
632
+ def c64; "V.06"; end
633
+ def d64; @d64 ||= index(:name,match(c64,:name,0.0)); end
634
+ def f64; @f64 ||= index(:ref,match(sheet3.c64,:ref,0.0)); end
635
+ def h64; @h64 ||= index(:ref,match(sheet3.c64,:ref,0.0)); end
636
+ def i64; @i64 ||= index(:ref,match(sheet3.c64,:ref,0.0)); end
637
+ def j64; @j64 ||= index(:ref,match(sheet3.c64,:ref,0.0)); end
638
+ def k64; @k64 ||= index(:ref,match(sheet3.c64,:ref,0.0)); end
639
+ def l64; @l64 ||= index(:ref,match(sheet3.c64,:ref,0.0)); end
640
+ def m64; @m64 ||= index(:ref,match(sheet3.c64,:ref,0.0)); end
641
+ def n64; @n64 ||= index(:ref,match(sheet3.c64,:ref,0.0)); end
642
+ def o64; @o64 ||= index(:ref,match(sheet3.c64,:ref,0.0)); end
643
+ def p64; @p64 ||= index(:ref,match(sheet3.c64,:ref,0.0)); end
644
+ def q64; @q64 ||= index(:ref,match(sheet3.c64,:ref,0.0)); end
645
+ def c65; "V.08"; end
646
+ def d65; @d65 ||= index(:name,match(c65,:name,0.0)); end
647
+ def f65; @f65 ||= index(:ref,match(sheet3.c65,:ref,0.0)); end
648
+ def h65; @h65 ||= index(:ref,match(sheet3.c65,:ref,0.0)); end
649
+ def i65; @i65 ||= index(:ref,match(sheet3.c65,:ref,0.0)); end
650
+ def j65; @j65 ||= index(:ref,match(sheet3.c65,:ref,0.0)); end
651
+ def k65; @k65 ||= index(:ref,match(sheet3.c65,:ref,0.0)); end
652
+ def l65; @l65 ||= index(:ref,match(sheet3.c65,:ref,0.0)); end
653
+ def m65; @m65 ||= index(:ref,match(sheet3.c65,:ref,0.0)); end
654
+ def n65; @n65 ||= index(:ref,match(sheet3.c65,:ref,0.0)); end
655
+ def o65; @o65 ||= index(:ref,match(sheet3.c65,:ref,0.0)); end
656
+ def p65; @p65 ||= index(:ref,match(sheet3.c65,:ref,0.0)); end
657
+ def q65; @q65 ||= index(:ref,match(sheet3.c65,:ref,0.0)); end
658
+ def c66; "V.07"; end
659
+ def d66; @d66 ||= index(:name,match(c66,:name,0.0)); end
660
+ def f66; @f66 ||= index(:ref,match(sheet3.c66,:ref,0.0)); end
661
+ def h66; @h66 ||= index(:ref,match(sheet3.c66,:ref,0.0)); end
662
+ def i66; @i66 ||= index(:ref,match(sheet3.c66,:ref,0.0)); end
663
+ def j66; @j66 ||= index(:ref,match(sheet3.c66,:ref,0.0)); end
664
+ def k66; @k66 ||= index(:ref,match(sheet3.c66,:ref,0.0)); end
665
+ def l66; @l66 ||= index(:ref,match(sheet3.c66,:ref,0.0)); end
666
+ def m66; @m66 ||= index(:ref,match(sheet3.c66,:ref,0.0)); end
667
+ def n66; @n66 ||= index(:ref,match(sheet3.c66,:ref,0.0)); end
668
+ def o66; @o66 ||= index(:ref,match(sheet3.c66,:ref,0.0)); end
669
+ def p66; @p66 ||= index(:ref,match(sheet3.c66,:ref,0.0)); end
670
+ def q66; @q66 ||= index(:ref,match(sheet3.c66,:ref,0.0)); end
671
+ def c67; "V.09"; end
672
+ def d67; @d67 ||= index(:name,match(c67,:name,0.0)); end
673
+ def f67; @f67 ||= index(:ref,match(sheet3.c67,:ref,0.0)); end
674
+ def h67; @h67 ||= index(:ref,match(sheet3.c67,:ref,0.0)); end
675
+ def i67; @i67 ||= index(:ref,match(sheet3.c67,:ref,0.0)); end
676
+ def j67; @j67 ||= index(:ref,match(sheet3.c67,:ref,0.0)); end
677
+ def k67; @k67 ||= index(:ref,match(sheet3.c67,:ref,0.0)); end
678
+ def l67; @l67 ||= index(:ref,match(sheet3.c67,:ref,0.0)); end
679
+ def m67; @m67 ||= index(:ref,match(sheet3.c67,:ref,0.0)); end
680
+ def n67; @n67 ||= index(:ref,match(sheet3.c67,:ref,0.0)); end
681
+ def o67; @o67 ||= index(:ref,match(sheet3.c67,:ref,0.0)); end
682
+ def p67; @p67 ||= index(:ref,match(sheet3.c67,:ref,0.0)); end
683
+ def q67; @q67 ||= index(:ref,match(sheet3.c67,:ref,0.0)); end
684
+ def c68; "V.10"; end
685
+ def d68; @d68 ||= index(:name,match(c68,:name,0.0)); end
686
+ def f68; @f68 ||= index(:ref,match(sheet3.c68,:ref,0.0)); end
687
+ def h68; @h68 ||= index(:ref,match(sheet3.c68,:ref,0.0)); end
688
+ def i68; @i68 ||= index(:ref,match(sheet3.c68,:ref,0.0)); end
689
+ def j68; @j68 ||= index(:ref,match(sheet3.c68,:ref,0.0)); end
690
+ def k68; @k68 ||= index(:ref,match(sheet3.c68,:ref,0.0)); end
691
+ def l68; @l68 ||= index(:ref,match(sheet3.c68,:ref,0.0)); end
692
+ def m68; @m68 ||= index(:ref,match(sheet3.c68,:ref,0.0)); end
693
+ def n68; @n68 ||= index(:ref,match(sheet3.c68,:ref,0.0)); end
694
+ def o68; @o68 ||= index(:ref,match(sheet3.c68,:ref,0.0)); end
695
+ def p68; @p68 ||= index(:ref,match(sheet3.c68,:ref,0.0)); end
696
+ def q68; @q68 ||= index(:ref,match(sheet3.c68,:ref,0.0)); end
697
+ def c69; "V.11"; end
698
+ def d69; @d69 ||= index(:name,match(c69,:name,0.0)); end
699
+ def f69; @f69 ||= index(:ref,match(sheet3.c69,:ref,0.0)); end
700
+ def h69; @h69 ||= index(:ref,match(sheet3.c69,:ref,0.0)); end
701
+ def i69; @i69 ||= index(:ref,match(sheet3.c69,:ref,0.0)); end
702
+ def j69; @j69 ||= index(:ref,match(sheet3.c69,:ref,0.0)); end
703
+ def k69; @k69 ||= index(:ref,match(sheet3.c69,:ref,0.0)); end
704
+ def l69; @l69 ||= index(:ref,match(sheet3.c69,:ref,0.0)); end
705
+ def m69; @m69 ||= index(:ref,match(sheet3.c69,:ref,0.0)); end
706
+ def n69; @n69 ||= index(:ref,match(sheet3.c69,:ref,0.0)); end
707
+ def o69; @o69 ||= index(:ref,match(sheet3.c69,:ref,0.0)); end
708
+ def p69; @p69 ||= index(:ref,match(sheet3.c69,:ref,0.0)); end
709
+ def q69; @q69 ||= index(:ref,match(sheet3.c69,:ref,0.0)); end
710
+ def c70; "V.12"; end
711
+ def d70; @d70 ||= index(:name,match(c70,:name,0.0)); end
712
+ def f70; @f70 ||= index(:ref,match(sheet3.c70,:ref,0.0)); end
713
+ def h70; @h70 ||= index(:ref,match(sheet3.c70,:ref,0.0)); end
714
+ def i70; @i70 ||= index(:ref,match(sheet3.c70,:ref,0.0)); end
715
+ def j70; @j70 ||= index(:ref,match(sheet3.c70,:ref,0.0)); end
716
+ def k70; @k70 ||= index(:ref,match(sheet3.c70,:ref,0.0)); end
717
+ def l70; @l70 ||= index(:ref,match(sheet3.c70,:ref,0.0)); end
718
+ def m70; @m70 ||= index(:ref,match(sheet3.c70,:ref,0.0)); end
719
+ def n70; @n70 ||= index(:ref,match(sheet3.c70,:ref,0.0)); end
720
+ def o70; @o70 ||= index(:ref,match(sheet3.c70,:ref,0.0)); end
721
+ def p70; @p70 ||= index(:ref,match(sheet3.c70,:ref,0.0)); end
722
+ def q70; @q70 ||= index(:ref,match(sheet3.c70,:ref,0.0)); end
723
+ def c71; "V.13"; end
724
+ def d71; @d71 ||= index(:name,match(c71,:name,0.0)); end
725
+ def f71; @f71 ||= index(:ref,match(sheet3.c71,:ref,0.0)); end
726
+ def h71; @h71 ||= index(:ref,match(sheet3.c71,:ref,0.0)); end
727
+ def i71; @i71 ||= index(:ref,match(sheet3.c71,:ref,0.0)); end
728
+ def j71; @j71 ||= index(:ref,match(sheet3.c71,:ref,0.0)); end
729
+ def k71; @k71 ||= index(:ref,match(sheet3.c71,:ref,0.0)); end
730
+ def l71; @l71 ||= index(:ref,match(sheet3.c71,:ref,0.0)); end
731
+ def m71; @m71 ||= index(:ref,match(sheet3.c71,:ref,0.0)); end
732
+ def n71; @n71 ||= index(:ref,match(sheet3.c71,:ref,0.0)); end
733
+ def o71; @o71 ||= index(:ref,match(sheet3.c71,:ref,0.0)); end
734
+ def p71; @p71 ||= index(:ref,match(sheet3.c71,:ref,0.0)); end
735
+ def q71; @q71 ||= index(:ref,match(sheet3.c71,:ref,0.0)); end
736
+ def d72; "Total unnaccounted supply / demand"; end
737
+ def f72; @f72 ||= sum(a('f58','f71')); end
738
+ def h72; @h72 ||= sum(a('h58','h71')); end
739
+ def i72; @i72 ||= sum(a('i58','i71')); end
740
+ def j72; @j72 ||= sum(a('j58','j71')); end
741
+ def k72; @k72 ||= sum(a('k58','k71')); end
742
+ def l72; @l72 ||= sum(a('l58','l71')); end
743
+ def m72; @m72 ||= sum(a('m58','m71')); end
744
+ def n72; @n72 ||= sum(a('n58','n71')); end
745
+ def o72; @o72 ||= sum(a('o58','o71')); end
746
+ def p72; @p72 ||= sum(a('p58','p71')); end
747
+ def q72; @q72 ||= sum(a('q58','q71')); end
748
+ def d74; "Supply, Demand, and Unaccounted supply"; end
749
+ def f74; @f74 ||= f18-f54+f72; end
750
+ def h74; @h74 ||= h18-h54+h72; end
751
+ def i74; @i74 ||= i18-i54+i72; end
752
+ def j74; @j74 ||= j18-j54+j72; end
753
+ def k74; @k74 ||= k18-k54+k72; end
754
+ def l74; @l74 ||= l18-l54+l72; end
755
+ def m74; @m74 ||= m18-m54+m72; end
756
+ def n74; @n74 ||= n18-n54+n72; end
757
+ def o74; @o74 ||= o18-o54+o72; end
758
+ def p74; @p74 ||= p18-p54+p72; end
759
+ def q74; @q74 ||= q18-q54+q72; end
760
+ def b78; "Electricity grid (net of distribution losses)"; end
761
+ def c80; "V.01"; end
762
+ def d80; @d80 ||= index(:name,match(c80,:name,0.0)); end
763
+ def f80; @f80 ||= index(:ref,match(sheet3.c80,:ref,0.0)); end
764
+ def h80; @h80 ||= index(:ref,match(sheet3.c80,:ref,0.0)); end
765
+ def i80; @i80 ||= index(:ref,match(sheet3.c80,:ref,0.0)); end
766
+ def j80; @j80 ||= index(:ref,match(sheet3.c80,:ref,0.0)); end
767
+ def k80; @k80 ||= index(:ref,match(sheet3.c80,:ref,0.0)); end
768
+ def l80; @l80 ||= index(:ref,match(sheet3.c80,:ref,0.0)); end
769
+ def m80; @m80 ||= index(:ref,match(sheet3.c80,:ref,0.0)); end
770
+ def n80; @n80 ||= index(:ref,match(sheet3.c80,:ref,0.0)); end
771
+ def o80; @o80 ||= index(:ref,match(sheet3.c80,:ref,0.0)); end
772
+ def p80; @p80 ||= index(:ref,match(sheet3.c80,:ref,0.0)); end
773
+ def q80; @q80 ||= index(:ref,match(sheet3.c80,:ref,0.0)); end
774
+ def r80; "REFERENCED"; end
775
+ def c81; "V.02"; end
776
+ def d81; @d81 ||= index(:name,match(c81,:name,0.0)); end
777
+ def f81; @f81 ||= index(:ref,match(sheet3.c81,:ref,0.0)); end
778
+ def h81; @h81 ||= index(:ref,match(sheet3.c81,:ref,0.0)); end
779
+ def i81; @i81 ||= index(:ref,match(sheet3.c81,:ref,0.0)); end
780
+ def j81; @j81 ||= index(:ref,match(sheet3.c81,:ref,0.0)); end
781
+ def k81; @k81 ||= index(:ref,match(sheet3.c81,:ref,0.0)); end
782
+ def l81; @l81 ||= index(:ref,match(sheet3.c81,:ref,0.0)); end
783
+ def m81; @m81 ||= index(:ref,match(sheet3.c81,:ref,0.0)); end
784
+ def n81; @n81 ||= index(:ref,match(sheet3.c81,:ref,0.0)); end
785
+ def o81; @o81 ||= index(:ref,match(sheet3.c81,:ref,0.0)); end
786
+ def p81; @p81 ||= index(:ref,match(sheet3.c81,:ref,0.0)); end
787
+ def q81; @q81 ||= index(:ref,match(sheet3.c81,:ref,0.0)); end
788
+ def d82; "Total electricity grid"; end
789
+ def f82; @f82 ||= sum(a('f80','f81')); end
790
+ def h82; @h82 ||= sum(a('h80','h81')); end
791
+ def i82; @i82 ||= sum(a('i80','i81')); end
792
+ def j82; @j82 ||= sum(a('j80','j81')); end
793
+ def k82; @k82 ||= sum(a('k80','k81')); end
794
+ def l82; @l82 ||= sum(a('l80','l81')); end
795
+ def m82; @m82 ||= sum(a('m80','m81')); end
796
+ def n82; @n82 ||= sum(a('n80','n81')); end
797
+ def o82; @o82 ||= sum(a('o80','o81')); end
798
+ def p82; @p82 ||= sum(a('p80','p81')); end
799
+ def q82; @q82 ||= sum(a('q80','q81')); end
800
+ def c84; "V.02"; end
801
+ def d84; "Losses"; end
802
+ def h84; @h84 ||= index(:ref,match("VII.b",:ref,0.0),match(sheet3.c84,:ref,0.0)); end
803
+ def i84; @i84 ||= index(:ref,match("VII.b",:ref,0.0),match(sheet3.c84,:ref,0.0)); end
804
+ def j84; @j84 ||= index(:ref,match("VII.b",:ref,0.0),match(sheet3.c84,:ref,0.0)); end
805
+ def k84; @k84 ||= index(:ref,match("VII.b",:ref,0.0),match(sheet3.c84,:ref,0.0)); end
806
+ def l84; @l84 ||= index(:ref,match("VII.b",:ref,0.0),match(sheet3.c84,:ref,0.0)); end
807
+ def m84; @m84 ||= index(:ref,match("VII.b",:ref,0.0),match(sheet3.c84,:ref,0.0)); end
808
+ def n84; @n84 ||= index(:ref,match("VII.b",:ref,0.0),match(sheet3.c84,:ref,0.0)); end
809
+ def o84; @o84 ||= index(:ref,match("VII.b",:ref,0.0),match(sheet3.c84,:ref,0.0)); end
810
+ def p84; @p84 ||= index(:ref,match("VII.b",:ref,0.0),match(sheet3.c84,:ref,0.0)); end
811
+ def q84; @q84 ||= index(:ref,match("VII.b",:ref,0.0),match(sheet3.c84,:ref,0.0)); end
812
+ def d85; "Demand (for charting)"; end
813
+ def h85; @h85 ||= -h80-h84; end
814
+ def i85; @i85 ||= -i80-i84; end
815
+ def j85; @j85 ||= -j80-j84; end
816
+ def k85; @k85 ||= -k80-k84; end
817
+ def l85; @l85 ||= -l80-l84; end
818
+ def m85; @m85 ||= -m80-m84; end
819
+ def n85; @n85 ||= -n80-n84; end
820
+ def o85; @o85 ||= -o80-o84; end
821
+ def p85; @p85 ||= -p80-p84; end
822
+ def q85; @q85 ||= -q80-q84; end
823
+ def d86; "Dummy for charting"; end
824
+ def h86; @h86 ||= h111; end
825
+ def i86; @i86 ||= i111; end
826
+ def j86; @j86 ||= j111; end
827
+ def k86; @k86 ||= k111; end
828
+ def l86; @l86 ||= l111; end
829
+ def m86; @m86 ||= m111; end
830
+ def n86; @n86 ||= n111; end
831
+ def o86; @o86 ||= o111; end
832
+ def p86; @p86 ||= p111; end
833
+ def q86; @q86 ||= q111; end
834
+ def c89; "Z.01"; end
835
+ def d89; @d89 ||= index(:name,match(c89,:name,0.0)); end
836
+ def f89; @f89 ||= index(:ref,match(sheet3.c89,:ref,0.0)); end
837
+ def h89; @h89 ||= index(:ref,match(sheet3.c89,:ref,0.0)); end
838
+ def i89; @i89 ||= index(:ref,match(sheet3.c89,:ref,0.0)); end
839
+ def j89; @j89 ||= index(:ref,match(sheet3.c89,:ref,0.0)); end
840
+ def k89; @k89 ||= index(:ref,match(sheet3.c89,:ref,0.0)); end
841
+ def l89; @l89 ||= index(:ref,match(sheet3.c89,:ref,0.0)); end
842
+ def m89; @m89 ||= index(:ref,match(sheet3.c89,:ref,0.0)); end
843
+ def n89; @n89 ||= index(:ref,match(sheet3.c89,:ref,0.0)); end
844
+ def o89; @o89 ||= index(:ref,match(sheet3.c89,:ref,0.0)); end
845
+ def p89; @p89 ||= index(:ref,match(sheet3.c89,:ref,0.0)); end
846
+ def q89; @q89 ||= index(:ref,match(sheet3.c89,:ref,0.0)); end
847
+ def d91; "Net balance (should be zero!)"; end
848
+ def f91; @f91 ||= f74+f82+f89; end
849
+ def h91; @h91 ||= h74+h82+h89; end
850
+ def i91; @i91 ||= i74+i82+i89; end
851
+ def j91; @j91 ||= j74+j82+j89; end
852
+ def k91; @k91 ||= k74+k82+k89; end
853
+ def l91; @l91 ||= l74+l82+l89; end
854
+ def m91; @m91 ||= m74+m82+m89; end
855
+ def n91; @n91 ||= n74+n82+n89; end
856
+ def o91; @o91 ||= o74+o82+o89; end
857
+ def p91; @p91 ||= p74+p82+p89; end
858
+ def q91; @q91 ||= q74+q82+q89; end
859
+ def b93; "Electricity Generation"; end
860
+ def c95; "V.02"; end
861
+ def d95; "TWh"; end
862
+ def h95; 2007.0; end
863
+ def i95; 2010.0; end
864
+ def j95; 2015.0; end
865
+ def k95; 2020.0; end
866
+ def l95; 2025.0; end
867
+ def m95; 2030.0; end
868
+ def n95; 2035.0; end
869
+ def o95; 2040.0; end
870
+ def p95; 2045.0; end
871
+ def q95; 2050.0; end
872
+ def c96; "I.a"; end
873
+ def d96; @d96 ||= index(:name,match(c96,:name,0.0)); end
874
+ def f96; @f96 ||= index(:ref,match(c96,:ref,0.0),match(c95,:ref,0.0)); end
875
+ def h96; @h96 ||= index(:ref,match(c96,:ref,0.0),match(c95,:ref,0.0)); end
876
+ def i96; @i96 ||= index(:ref,match(c96,:ref,0.0),match(c95,:ref,0.0)); end
877
+ def j96; @j96 ||= index(:ref,match(c96,:ref,0.0),match(c95,:ref,0.0)); end
878
+ def k96; @k96 ||= index(:ref,match(c96,:ref,0.0),match(c95,:ref,0.0)); end
879
+ def l96; @l96 ||= index(:ref,match(c96,:ref,0.0),match(c95,:ref,0.0)); end
880
+ def m96; @m96 ||= index(:ref,match(c96,:ref,0.0),match(c95,:ref,0.0)); end
881
+ def n96; @n96 ||= index(:ref,match(c96,:ref,0.0),match(c95,:ref,0.0)); end
882
+ def o96; @o96 ||= index(:ref,match(c96,:ref,0.0),match(c95,:ref,0.0)); end
883
+ def p96; @p96 ||= index(:ref,match(c96,:ref,0.0),match(c95,:ref,0.0)); end
884
+ def q96; @q96 ||= index(:ref,match(c96,:ref,0.0),match(c95,:ref,0.0)); end
885
+ def c97; "IX.a"; end
886
+ def d97; @d97 ||= index(:name,match(c97,:name,0.0)); end
887
+ def f97; @f97 ||= index(:ref,match(c97,:ref,0.0),match(c95,:ref,0.0)); end
888
+ def h97; @h97 ||= index(:ref,match(c97,:ref,0.0),match(c95,:ref,0.0)); end
889
+ def i97; @i97 ||= index(:ref,match(c97,:ref,0.0),match(c95,:ref,0.0)); end
890
+ def j97; @j97 ||= index(:ref,match(c97,:ref,0.0),match(c95,:ref,0.0)); end
891
+ def k97; @k97 ||= index(:ref,match(c97,:ref,0.0),match(c95,:ref,0.0)); end
892
+ def l97; @l97 ||= index(:ref,match(c97,:ref,0.0),match(c95,:ref,0.0)); end
893
+ def m97; @m97 ||= index(:ref,match(c97,:ref,0.0),match(c95,:ref,0.0)); end
894
+ def n97; @n97 ||= index(:ref,match(c97,:ref,0.0),match(c95,:ref,0.0)); end
895
+ def o97; @o97 ||= index(:ref,match(c97,:ref,0.0),match(c95,:ref,0.0)); end
896
+ def p97; @p97 ||= index(:ref,match(c97,:ref,0.0),match(c95,:ref,0.0)); end
897
+ def q97; @q97 ||= index(:ref,match(c97,:ref,0.0),match(c95,:ref,0.0)); end
898
+ def c98; "IX.c"; end
899
+ def d98; @d98 ||= index(:name,match(c98,:name,0.0)); end
900
+ def f98; @f98 ||= index(:ref,match(c98,:ref,0.0),match(c95,:ref,0.0)); end
901
+ def h98; @h98 ||= index(:ref,match(c98,:ref,0.0),match(c95,:ref,0.0)); end
902
+ def i98; @i98 ||= index(:ref,match(c98,:ref,0.0),match(c95,:ref,0.0)); end
903
+ def j98; @j98 ||= index(:ref,match(c98,:ref,0.0),match(c95,:ref,0.0)); end
904
+ def k98; @k98 ||= index(:ref,match(c98,:ref,0.0),match(c95,:ref,0.0)); end
905
+ def l98; @l98 ||= index(:ref,match(c98,:ref,0.0),match(c95,:ref,0.0)); end
906
+ def m98; @m98 ||= index(:ref,match(c98,:ref,0.0),match(c95,:ref,0.0)); end
907
+ def n98; @n98 ||= index(:ref,match(c98,:ref,0.0),match(c95,:ref,0.0)); end
908
+ def o98; @o98 ||= index(:ref,match(c98,:ref,0.0),match(c95,:ref,0.0)); end
909
+ def p98; @p98 ||= index(:ref,match(c98,:ref,0.0),match(c95,:ref,0.0)); end
910
+ def q98; @q98 ||= index(:ref,match(c98,:ref,0.0),match(c95,:ref,0.0)); end
911
+ def d99; "Unabated thermal generation"; end
912
+ def f99; @f99 ||= f96+f97+f98; end
913
+ def g99; @g99 ||= g96+g97+g98; end
914
+ def h99; @h99 ||= h96+h97+h98; end
915
+ def i99; @i99 ||= i96+i97+i98; end
916
+ def j99; @j99 ||= j96+j97+j98; end
917
+ def k99; @k99 ||= k96+k97+k98; end
918
+ def l99; @l99 ||= l96+l97+l98; end
919
+ def m99; @m99 ||= m96+m97+m98; end
920
+ def n99; @n99 ||= n96+n97+n98; end
921
+ def o99; @o99 ||= o96+o97+o98; end
922
+ def p99; @p99 ||= p96+p97+p98; end
923
+ def q99; @q99 ||= q96+q97+q98; end
924
+ def c100; "I.b"; end
925
+ def d100; @d100 ||= index(:name,match(c100,:name,0.0)); end
926
+ def f100; @f100 ||= index(:ref,match(c100,:ref,0.0),match(c95,:ref,0.0)); end
927
+ def h100; @h100 ||= index(:ref,match(c100,:ref,0.0),match(c95,:ref,0.0)); end
928
+ def i100; @i100 ||= index(:ref,match(c100,:ref,0.0),match(c95,:ref,0.0)); end
929
+ def j100; @j100 ||= index(:ref,match(c100,:ref,0.0),match(c95,:ref,0.0)); end
930
+ def k100; @k100 ||= index(:ref,match(c100,:ref,0.0),match(c95,:ref,0.0)); end
931
+ def l100; @l100 ||= index(:ref,match(c100,:ref,0.0),match(c95,:ref,0.0)); end
932
+ def m100; @m100 ||= index(:ref,match(c100,:ref,0.0),match(c95,:ref,0.0)); end
933
+ def n100; @n100 ||= index(:ref,match(c100,:ref,0.0),match(c95,:ref,0.0)); end
934
+ def o100; @o100 ||= index(:ref,match(c100,:ref,0.0),match(c95,:ref,0.0)); end
935
+ def p100; @p100 ||= index(:ref,match(c100,:ref,0.0),match(c95,:ref,0.0)); end
936
+ def q100; @q100 ||= index(:ref,match(c100,:ref,0.0),match(c95,:ref,0.0)); end
937
+ def c101; "II.a"; end
938
+ def d101; @d101 ||= index(:name,match(c101,:name,0.0)); end
939
+ def f101; @f101 ||= index(:ref,match(c101,:ref,0.0),match(c95,:ref,0.0)); end
940
+ def h101; @h101 ||= index(:ref,match(c101,:ref,0.0),match(c95,:ref,0.0)); end
941
+ def i101; @i101 ||= index(:ref,match(c101,:ref,0.0),match(c95,:ref,0.0)); end
942
+ def j101; @j101 ||= index(:ref,match(c101,:ref,0.0),match(c95,:ref,0.0)); end
943
+ def k101; @k101 ||= index(:ref,match(c101,:ref,0.0),match(c95,:ref,0.0)); end
944
+ def l101; @l101 ||= index(:ref,match(c101,:ref,0.0),match(c95,:ref,0.0)); end
945
+ def m101; @m101 ||= index(:ref,match(c101,:ref,0.0),match(c95,:ref,0.0)); end
946
+ def n101; @n101 ||= index(:ref,match(c101,:ref,0.0),match(c95,:ref,0.0)); end
947
+ def o101; @o101 ||= index(:ref,match(c101,:ref,0.0),match(c95,:ref,0.0)); end
948
+ def p101; @p101 ||= index(:ref,match(c101,:ref,0.0),match(c95,:ref,0.0)); end
949
+ def q101; @q101 ||= index(:ref,match(c101,:ref,0.0),match(c95,:ref,0.0)); end
950
+ def c102; "III.a.1"; end
951
+ def d102; @d102 ||= index(:name,match(c102,:name,0.0)); end
952
+ def f102; @f102 ||= index(:ref,match(c102,:ref,0.0),match(c95,:ref,0.0)); end
953
+ def h102; @h102 ||= index(:ref,match(c102,:ref,0.0),match(c95,:ref,0.0)); end
954
+ def i102; @i102 ||= index(:ref,match(c102,:ref,0.0),match(c95,:ref,0.0)); end
955
+ def j102; @j102 ||= index(:ref,match(c102,:ref,0.0),match(c95,:ref,0.0)); end
956
+ def k102; @k102 ||= index(:ref,match(c102,:ref,0.0),match(c95,:ref,0.0)); end
957
+ def l102; @l102 ||= index(:ref,match(c102,:ref,0.0),match(c95,:ref,0.0)); end
958
+ def m102; @m102 ||= index(:ref,match(c102,:ref,0.0),match(c95,:ref,0.0)); end
959
+ def n102; @n102 ||= index(:ref,match(c102,:ref,0.0),match(c95,:ref,0.0)); end
960
+ def o102; @o102 ||= index(:ref,match(c102,:ref,0.0),match(c95,:ref,0.0)); end
961
+ def p102; @p102 ||= index(:ref,match(c102,:ref,0.0),match(c95,:ref,0.0)); end
962
+ def q102; @q102 ||= index(:ref,match(c102,:ref,0.0),match(c95,:ref,0.0)); end
963
+ def c103; "III.a.2"; end
964
+ def d103; @d103 ||= index(:name,match(c103,:name,0.0)); end
965
+ def f103; @f103 ||= index(:ref,match(c103,:ref,0.0),match(c95,:ref,0.0)); end
966
+ def h103; @h103 ||= index(:ref,match(c103,:ref,0.0),match(c95,:ref,0.0)); end
967
+ def i103; @i103 ||= index(:ref,match(c103,:ref,0.0),match(c95,:ref,0.0)); end
968
+ def j103; @j103 ||= index(:ref,match(c103,:ref,0.0),match(c95,:ref,0.0)); end
969
+ def k103; @k103 ||= index(:ref,match(c103,:ref,0.0),match(c95,:ref,0.0)); end
970
+ def l103; @l103 ||= index(:ref,match(c103,:ref,0.0),match(c95,:ref,0.0)); end
971
+ def m103; @m103 ||= index(:ref,match(c103,:ref,0.0),match(c95,:ref,0.0)); end
972
+ def n103; @n103 ||= index(:ref,match(c103,:ref,0.0),match(c95,:ref,0.0)); end
973
+ def o103; @o103 ||= index(:ref,match(c103,:ref,0.0),match(c95,:ref,0.0)); end
974
+ def p103; @p103 ||= index(:ref,match(c103,:ref,0.0),match(c95,:ref,0.0)); end
975
+ def q103; @q103 ||= index(:ref,match(c103,:ref,0.0),match(c95,:ref,0.0)); end
976
+ def c104; "III.b"; end
977
+ def d104; @d104 ||= index(:name,match(c104,:name,0.0)); end
978
+ def f104; @f104 ||= index(:ref,match(c104,:ref,0.0),match(c95,:ref,0.0)); end
979
+ def h104; @h104 ||= index(:ref,match(c104,:ref,0.0),match(c95,:ref,0.0)); end
980
+ def i104; @i104 ||= index(:ref,match(c104,:ref,0.0),match(c95,:ref,0.0)); end
981
+ def j104; @j104 ||= index(:ref,match(c104,:ref,0.0),match(c95,:ref,0.0)); end
982
+ def k104; @k104 ||= index(:ref,match(c104,:ref,0.0),match(c95,:ref,0.0)); end
983
+ def l104; @l104 ||= index(:ref,match(c104,:ref,0.0),match(c95,:ref,0.0)); end
984
+ def m104; @m104 ||= index(:ref,match(c104,:ref,0.0),match(c95,:ref,0.0)); end
985
+ def n104; @n104 ||= index(:ref,match(c104,:ref,0.0),match(c95,:ref,0.0)); end
986
+ def o104; @o104 ||= index(:ref,match(c104,:ref,0.0),match(c95,:ref,0.0)); end
987
+ def p104; @p104 ||= index(:ref,match(c104,:ref,0.0),match(c95,:ref,0.0)); end
988
+ def q104; @q104 ||= index(:ref,match(c104,:ref,0.0),match(c95,:ref,0.0)); end
989
+ def c105; "III.c"; end
990
+ def d105; @d105 ||= index(:name,match(c105,:name,0.0)); end
991
+ def f105; @f105 ||= index(:ref,match(c105,:ref,0.0),match(c95,:ref,0.0)); end
992
+ def h105; @h105 ||= index(:ref,match(c105,:ref,0.0),match(c95,:ref,0.0)); end
993
+ def i105; @i105 ||= index(:ref,match(c105,:ref,0.0),match(c95,:ref,0.0)); end
994
+ def j105; @j105 ||= index(:ref,match(c105,:ref,0.0),match(c95,:ref,0.0)); end
995
+ def k105; @k105 ||= index(:ref,match(c105,:ref,0.0),match(c95,:ref,0.0)); end
996
+ def l105; @l105 ||= index(:ref,match(c105,:ref,0.0),match(c95,:ref,0.0)); end
997
+ def m105; @m105 ||= index(:ref,match(c105,:ref,0.0),match(c95,:ref,0.0)); end
998
+ def n105; @n105 ||= index(:ref,match(c105,:ref,0.0),match(c95,:ref,0.0)); end
999
+ def o105; @o105 ||= index(:ref,match(c105,:ref,0.0),match(c95,:ref,0.0)); end
1000
+ def p105; @p105 ||= index(:ref,match(c105,:ref,0.0),match(c95,:ref,0.0)); end
1001
+ def q105; @q105 ||= index(:ref,match(c105,:ref,0.0),match(c95,:ref,0.0)); end
1002
+ def c106; "III.d"; end
1003
+ def d106; @d106 ||= index(:name,match(c106,:name,0.0)); end
1004
+ def f106; @f106 ||= index(:ref,match(c106,:ref,0.0),match(c95,:ref,0.0)); end
1005
+ def h106; @h106 ||= index(:ref,match(c106,:ref,0.0),match(c95,:ref,0.0)); end
1006
+ def i106; @i106 ||= index(:ref,match(c106,:ref,0.0),match(c95,:ref,0.0)); end
1007
+ def j106; @j106 ||= index(:ref,match(c106,:ref,0.0),match(c95,:ref,0.0)); end
1008
+ def k106; @k106 ||= index(:ref,match(c106,:ref,0.0),match(c95,:ref,0.0)); end
1009
+ def l106; @l106 ||= index(:ref,match(c106,:ref,0.0),match(c95,:ref,0.0)); end
1010
+ def m106; @m106 ||= index(:ref,match(c106,:ref,0.0),match(c95,:ref,0.0)); end
1011
+ def n106; @n106 ||= index(:ref,match(c106,:ref,0.0),match(c95,:ref,0.0)); end
1012
+ def o106; @o106 ||= index(:ref,match(c106,:ref,0.0),match(c95,:ref,0.0)); end
1013
+ def p106; @p106 ||= index(:ref,match(c106,:ref,0.0),match(c95,:ref,0.0)); end
1014
+ def q106; @q106 ||= index(:ref,match(c106,:ref,0.0),match(c95,:ref,0.0)); end
1015
+ def c107; "III.e"; end
1016
+ def d107; @d107 ||= index(:name,match(c107,:name,0.0)); end
1017
+ def f107; @f107 ||= index(:ref,match(c107,:ref,0.0),match(c95,:ref,0.0)); end
1018
+ def h107; @h107 ||= index(:ref,match(c107,:ref,0.0),match(c95,:ref,0.0)); end
1019
+ def i107; @i107 ||= index(:ref,match(c107,:ref,0.0),match(c95,:ref,0.0)); end
1020
+ def j107; @j107 ||= index(:ref,match(c107,:ref,0.0),match(c95,:ref,0.0)); end
1021
+ def k107; @k107 ||= index(:ref,match(c107,:ref,0.0),match(c95,:ref,0.0)); end
1022
+ def l107; @l107 ||= index(:ref,match(c107,:ref,0.0),match(c95,:ref,0.0)); end
1023
+ def m107; @m107 ||= index(:ref,match(c107,:ref,0.0),match(c95,:ref,0.0)); end
1024
+ def n107; @n107 ||= index(:ref,match(c107,:ref,0.0),match(c95,:ref,0.0)); end
1025
+ def o107; @o107 ||= index(:ref,match(c107,:ref,0.0),match(c95,:ref,0.0)); end
1026
+ def p107; @p107 ||= index(:ref,match(c107,:ref,0.0),match(c95,:ref,0.0)); end
1027
+ def q107; @q107 ||= index(:ref,match(c107,:ref,0.0),match(c95,:ref,0.0)); end
1028
+ def c108; "IV.a"; end
1029
+ def d108; @d108 ||= index(:name,match(c108,:name,0.0)); end
1030
+ def f108; @f108 ||= index(:ref,match(c108,:ref,0.0),match(c95,:ref,0.0)); end
1031
+ def h108; @h108 ||= index(:ref,match(c108,:ref,0.0),match(c95,:ref,0.0)); end
1032
+ def i108; @i108 ||= index(:ref,match(c108,:ref,0.0),match(c95,:ref,0.0)); end
1033
+ def j108; @j108 ||= index(:ref,match(c108,:ref,0.0),match(c95,:ref,0.0)); end
1034
+ def k108; @k108 ||= index(:ref,match(c108,:ref,0.0),match(c95,:ref,0.0)); end
1035
+ def l108; @l108 ||= index(:ref,match(c108,:ref,0.0),match(c95,:ref,0.0)); end
1036
+ def m108; @m108 ||= index(:ref,match(c108,:ref,0.0),match(c95,:ref,0.0)); end
1037
+ def n108; @n108 ||= index(:ref,match(c108,:ref,0.0),match(c95,:ref,0.0)); end
1038
+ def o108; @o108 ||= index(:ref,match(c108,:ref,0.0),match(c95,:ref,0.0)); end
1039
+ def p108; @p108 ||= index(:ref,match(c108,:ref,0.0),match(c95,:ref,0.0)); end
1040
+ def q108; @q108 ||= index(:ref,match(c108,:ref,0.0),match(c95,:ref,0.0)); end
1041
+ def d109; "Non-thermal renewable generation"; end
1042
+ def f109; @f109 ||= sum(a('f102','f108')); end
1043
+ def h109; @h109 ||= sum(a('h102','h108')); end
1044
+ def i109; @i109 ||= sum(a('i102','i108')); end
1045
+ def j109; @j109 ||= sum(a('j102','j108')); end
1046
+ def k109; @k109 ||= sum(a('k102','k108')); end
1047
+ def l109; @l109 ||= sum(a('l102','l108')); end
1048
+ def m109; @m109 ||= sum(a('m102','m108')); end
1049
+ def n109; @n109 ||= sum(a('n102','n108')); end
1050
+ def o109; @o109 ||= sum(a('o102','o108')); end
1051
+ def p109; @p109 ||= sum(a('p102','p108')); end
1052
+ def q109; @q109 ||= sum(a('q102','q108')); end
1053
+ def c110; "VII.a"; end
1054
+ def d110; @d110 ||= index(:name,match(c110,:name,0.0)); end
1055
+ def f110; @f110 ||= index(:ref,match(c110,:ref,0.0),match(c95,:ref,0.0)); end
1056
+ def h110; @h110 ||= index(:ref,match(c110,:ref,0.0),match(c95,:ref,0.0)); end
1057
+ def i110; @i110 ||= index(:ref,match(c110,:ref,0.0),match(c95,:ref,0.0)); end
1058
+ def j110; @j110 ||= index(:ref,match(c110,:ref,0.0),match(c95,:ref,0.0)); end
1059
+ def k110; @k110 ||= index(:ref,match(c110,:ref,0.0),match(c95,:ref,0.0)); end
1060
+ def l110; @l110 ||= index(:ref,match(c110,:ref,0.0),match(c95,:ref,0.0)); end
1061
+ def m110; @m110 ||= index(:ref,match(c110,:ref,0.0),match(c95,:ref,0.0)); end
1062
+ def n110; @n110 ||= index(:ref,match(c110,:ref,0.0),match(c95,:ref,0.0)); end
1063
+ def o110; @o110 ||= index(:ref,match(c110,:ref,0.0),match(c95,:ref,0.0)); end
1064
+ def p110; @p110 ||= index(:ref,match(c110,:ref,0.0),match(c95,:ref,0.0)); end
1065
+ def q110; @q110 ||= index(:ref,match(c110,:ref,0.0),match(c95,:ref,0.0)); end
1066
+ def d111; "Total generation supplied to grid"; end
1067
+ def f111; @f111 ||= f99+f100+f101+f109+f110; end
1068
+ def h111; @h111 ||= h99+h100+h101+h109+h110; end
1069
+ def i111; @i111 ||= i99+i100+i101+i109+i110; end
1070
+ def j111; @j111 ||= j99+j100+j101+j109+j110; end
1071
+ def k111; @k111 ||= k99+k100+k101+k109+k110; end
1072
+ def l111; @l111 ||= l99+l100+l101+l109+l110; end
1073
+ def m111; @m111 ||= m99+m100+m101+m109+m110; end
1074
+ def n111; @n111 ||= n99+n100+n101+n109+n110; end
1075
+ def o111; @o111 ||= o99+o100+o101+o109+o110; end
1076
+ def p111; @p111 ||= p99+p100+p101+p109+p110; end
1077
+ def q111; @q111 ||= q99+q100+q101+q109+q110; end
1078
+ def s111; @s111 ||= q111-q84; end
1079
+ def d113; "Electricity exports"; end
1080
+ def f113; @f113 ||= f30-f110; end
1081
+ def g113; @g113 ||= g30; end
1082
+ def h113; @h113 ||= h30-h110; end
1083
+ def i113; @i113 ||= i30-i110; end
1084
+ def j113; @j113 ||= j30-j110; end
1085
+ def k113; @k113 ||= k30-k110; end
1086
+ def l113; @l113 ||= l30-l110; end
1087
+ def m113; @m113 ||= m30-m110; end
1088
+ def n113; @n113 ||= n30-n110; end
1089
+ def o113; @o113 ||= o30-o110; end
1090
+ def p113; @p113 ||= p30-p110; end
1091
+ def q113; @q113 ||= q30-q110; end
1092
+ def r113; "REFERENCED"; end
1093
+ def d114; "Electricity used in UK, before losses and district heating heat demand"; end
1094
+ def f114; @f114 ||= excel_if(excel_comparison(f113,"<",0.0),f113+f111,f111); end
1095
+ def g114; @g114 ||= excel_if(excel_comparison(g113,"<",0.0),g113+g111,g111); end
1096
+ def h114; @h114 ||= excel_if(excel_comparison(h113,"<",0.0),h113+h111,h111); end
1097
+ def i114; @i114 ||= excel_if(excel_comparison(i113,"<",0.0),i113+i111,i111); end
1098
+ def j114; @j114 ||= excel_if(excel_comparison(j113,"<",0.0),j113+j111,j111); end
1099
+ def k114; @k114 ||= excel_if(excel_comparison(k113,"<",0.0),k113+k111,k111); end
1100
+ def l114; @l114 ||= excel_if(excel_comparison(l113,"<",0.0),l113+l111,l111); end
1101
+ def m114; @m114 ||= excel_if(excel_comparison(m113,"<",0.0),m113+m111,m111); end
1102
+ def n114; @n114 ||= excel_if(excel_comparison(n113,"<",0.0),n113+n111,n111); end
1103
+ def o114; @o114 ||= excel_if(excel_comparison(o113,"<",0.0),o113+o111,o111); end
1104
+ def p114; @p114 ||= excel_if(excel_comparison(p113,"<",0.0),p113+p111,p111); end
1105
+ def q114; @q114 ||= excel_if(excel_comparison(q113,"<",0.0),q113+q111,q111); end
1106
+ def d116; @d116 ||= (sheet2.c5).to_s+" installed capacity"; end
1107
+ def h116; 2007.0; end
1108
+ def i116; 2010.0; end
1109
+ def j116; 2015.0; end
1110
+ def k116; 2020.0; end
1111
+ def l116; 2025.0; end
1112
+ def m116; 2030.0; end
1113
+ def n116; 2035.0; end
1114
+ def o116; 2040.0; end
1115
+ def p116; 2045.0; end
1116
+ def q116; 2050.0; end
1117
+ def c117; "I.a"; end
1118
+ def d117; "Unabated thermal generation "; end
1119
+ def h117; @h117 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1120
+ def i117; @i117 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1121
+ def j117; @j117 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1122
+ def k117; @k117 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1123
+ def l117; @l117 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1124
+ def m117; @m117 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1125
+ def n117; @n117 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1126
+ def o117; @o117 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1127
+ def p117; @p117 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1128
+ def q117; @q117 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1129
+ def c118; "I.a.Liquid"; end
1130
+ def d118; "Oil / Biofuel"; end
1131
+ def h118; @h118 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1132
+ def i118; @i118 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1133
+ def j118; @j118 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1134
+ def k118; @k118 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1135
+ def l118; @l118 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1136
+ def m118; @m118 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1137
+ def n118; @n118 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1138
+ def o118; @o118 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1139
+ def p118; @p118 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1140
+ def q118; @q118 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1141
+ def c119; "I.a.Solid"; end
1142
+ def d119; "Coal / Biomass"; end
1143
+ def h119; @h119 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1144
+ def i119; @i119 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1145
+ def j119; @j119 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1146
+ def k119; @k119 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1147
+ def l119; @l119 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1148
+ def m119; @m119 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1149
+ def n119; @n119 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1150
+ def o119; @o119 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1151
+ def p119; @p119 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1152
+ def q119; @q119 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1153
+ def c120; "I.a.Gas"; end
1154
+ def d120; "Gas / Biogas"; end
1155
+ def h120; @h120 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1156
+ def i120; @i120 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1157
+ def j120; @j120 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1158
+ def k120; @k120 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1159
+ def l120; @l120 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1160
+ def m120; @m120 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1161
+ def n120; @n120 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1162
+ def o120; @o120 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1163
+ def p120; @p120 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1164
+ def q120; @q120 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1165
+ def c121; "I.b"; end
1166
+ def d121; @d121 ||= index(:name,match(c121,:name,0.0)); end
1167
+ def h121; @h121 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1168
+ def i121; @i121 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1169
+ def j121; @j121 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1170
+ def k121; @k121 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1171
+ def l121; @l121 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1172
+ def m121; @m121 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1173
+ def n121; @n121 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1174
+ def o121; @o121 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1175
+ def p121; @p121 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1176
+ def q121; @q121 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1177
+ def c122; "II.a"; end
1178
+ def d122; @d122 ||= index(:name,match(c122,:name,0.0)); end
1179
+ def h122; @h122 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1180
+ def i122; @i122 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1181
+ def j122; @j122 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1182
+ def k122; @k122 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1183
+ def l122; @l122 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1184
+ def m122; @m122 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1185
+ def n122; @n122 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1186
+ def o122; @o122 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1187
+ def p122; @p122 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1188
+ def q122; @q122 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1189
+ def c123; "III.a.1"; end
1190
+ def d123; @d123 ||= index(:name,match(c123,:name,0.0)); end
1191
+ def h123; @h123 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1192
+ def i123; @i123 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1193
+ def j123; @j123 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1194
+ def k123; @k123 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1195
+ def l123; @l123 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1196
+ def m123; @m123 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1197
+ def n123; @n123 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1198
+ def o123; @o123 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1199
+ def p123; @p123 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1200
+ def q123; @q123 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1201
+ def c124; "III.a.2"; end
1202
+ def d124; @d124 ||= index(:name,match(c124,:name,0.0)); end
1203
+ def h124; @h124 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1204
+ def i124; @i124 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1205
+ def j124; @j124 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1206
+ def k124; @k124 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1207
+ def l124; @l124 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1208
+ def m124; @m124 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1209
+ def n124; @n124 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1210
+ def o124; @o124 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1211
+ def p124; @p124 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1212
+ def q124; @q124 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1213
+ def c125; "III.b"; end
1214
+ def d125; @d125 ||= index(:name,match(c125,:name,0.0)); end
1215
+ def h125; @h125 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1216
+ def i125; @i125 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1217
+ def j125; @j125 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1218
+ def k125; @k125 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1219
+ def l125; @l125 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1220
+ def m125; @m125 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1221
+ def n125; @n125 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1222
+ def o125; @o125 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1223
+ def p125; @p125 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1224
+ def q125; @q125 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1225
+ def c126; "III.c.Wave"; end
1226
+ def d126; @d126 ||= index(:name,match(c126,:name,0.0)); end
1227
+ def h126; @h126 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1228
+ def i126; @i126 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1229
+ def j126; @j126 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1230
+ def k126; @k126 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1231
+ def l126; @l126 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1232
+ def m126; @m126 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1233
+ def n126; @n126 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1234
+ def o126; @o126 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1235
+ def p126; @p126 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1236
+ def q126; @q126 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1237
+ def c127; "III.c.TidalStream"; end
1238
+ def d127; @d127 ||= index(:name,match(c127,:name,0.0)); end
1239
+ def h127; @h127 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1240
+ def i127; @i127 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1241
+ def j127; @j127 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1242
+ def k127; @k127 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1243
+ def l127; @l127 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1244
+ def m127; @m127 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1245
+ def n127; @n127 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1246
+ def o127; @o127 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1247
+ def p127; @p127 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1248
+ def q127; @q127 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1249
+ def c128; "III.c.TidalRange"; end
1250
+ def d128; @d128 ||= index(:name,match(c128,:name,0.0)); end
1251
+ def h128; @h128 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1252
+ def i128; @i128 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1253
+ def j128; @j128 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1254
+ def k128; @k128 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1255
+ def l128; @l128 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1256
+ def m128; @m128 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1257
+ def n128; @n128 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1258
+ def o128; @o128 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1259
+ def p128; @p128 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1260
+ def q128; @q128 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1261
+ def c129; "III.d"; end
1262
+ def d129; @d129 ||= index(:name,match(c129,:name,0.0)); end
1263
+ def h129; @h129 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1264
+ def i129; @i129 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1265
+ def j129; @j129 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1266
+ def k129; @k129 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1267
+ def l129; @l129 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1268
+ def m129; @m129 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1269
+ def n129; @n129 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1270
+ def o129; @o129 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1271
+ def p129; @p129 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1272
+ def q129; @q129 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1273
+ def c130; "IV.a"; end
1274
+ def d130; @d130 ||= index(:name,match(c130,:name,0.0)); end
1275
+ def h130; @h130 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1276
+ def i130; @i130 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1277
+ def j130; @j130 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1278
+ def k130; @k130 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1279
+ def l130; @l130 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1280
+ def m130; @m130 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1281
+ def n130; @n130 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1282
+ def o130; @o130 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1283
+ def p130; @p130 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1284
+ def q130; @q130 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1285
+ def c131; "VII.c"; end
1286
+ def d131; "Standby / peaking gas"; end
1287
+ def h131; @h131 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1288
+ def i131; @i131 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1289
+ def j131; @j131 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1290
+ def k131; @k131 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1291
+ def l131; @l131 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1292
+ def m131; @m131 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1293
+ def n131; @n131 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1294
+ def o131; @o131 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1295
+ def p131; @p131 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1296
+ def q131; @q131 ||= iferror(index(:ref,match("B.02",:ref,0.0)),0.0); end
1297
+ def d132; "Total generation"; end
1298
+ def h132; @h132 ||= sum(a('h118','h131')); end
1299
+ def i132; @i132 ||= sum(a('i118','i131')); end
1300
+ def j132; @j132 ||= sum(a('j118','j131')); end
1301
+ def k132; @k132 ||= sum(a('k118','k131')); end
1302
+ def l132; @l132 ||= sum(a('l118','l131')); end
1303
+ def m132; @m132 ||= sum(a('m118','m131')); end
1304
+ def n132; @n132 ||= sum(a('n118','n131')); end
1305
+ def o132; @o132 ||= sum(a('o118','o131')); end
1306
+ def p132; @p132 ||= sum(a('p118','p131')); end
1307
+ def q132; @q132 ||= sum(a('q118','q131')); end
1308
+ def b135; "Emissions"; end
1309
+ def c137; "Emissions as % of base year, adjusted so that 2007 matches actuals"; end
1310
+ def d138; "IPCC Sector"; end
1311
+ def f138; "2007 Actuals, GHG Inv."; end
1312
+ def h138; 2007.0; end
1313
+ def i138; 2010.0; end
1314
+ def j138; 2015.0; end
1315
+ def k138; 2020.0; end
1316
+ def l138; 2025.0; end
1317
+ def m138; 2030.0; end
1318
+ def n138; 2035.0; end
1319
+ def o138; 2040.0; end
1320
+ def p138; 2045.0; end
1321
+ def q138; 2050.0; end
1322
+ def c139; "1A"; end
1323
+ def d139; @d139 ||= index(:name,match(c139,:name,0.0)); end
1324
+ def c140; "1B"; end
1325
+ def d140; @d140 ||= index(:name,match(c140,:name,0.0)); end
1326
+ def c141; 1.0; end
1327
+ def d141; "Fuel Combustion"; end
1328
+ def f141; @f141 ||= f182/f205; end
1329
+ def h141; @h141 ||= h182*h155/f205; end
1330
+ def i141; @i141 ||= i182*h155/f205; end
1331
+ def j141; @j141 ||= j182*h155/f205; end
1332
+ def k141; @k141 ||= k182*h155/f205; end
1333
+ def l141; @l141 ||= l182*h155/f205; end
1334
+ def m141; @m141 ||= m182*h155/f205; end
1335
+ def n141; @n141 ||= n182*h155/f205; end
1336
+ def o141; @o141 ||= o182*h155/f205; end
1337
+ def p141; @p141 ||= p182*h155/f205; end
1338
+ def q141; @q141 ||= q182*h155/f205; end
1339
+ def c142; 2.0; end
1340
+ def d142; @d142 ||= index(:name,match(c142,:name,0.0)); end
1341
+ def f142; @f142 ||= f183/f205; end
1342
+ def h142; @h142 ||= h183*h155/f205; end
1343
+ def i142; @i142 ||= i183*h155/f205; end
1344
+ def j142; @j142 ||= j183*h155/f205; end
1345
+ def k142; @k142 ||= k183*h155/f205; end
1346
+ def l142; @l142 ||= l183*h155/f205; end
1347
+ def m142; @m142 ||= m183*h155/f205; end
1348
+ def n142; @n142 ||= n183*h155/f205; end
1349
+ def o142; @o142 ||= o183*h155/f205; end
1350
+ def p142; @p142 ||= p183*h155/f205; end
1351
+ def q142; @q142 ||= q183*h155/f205; end
1352
+ def c143; 3.0; end
1353
+ def d143; @d143 ||= index(:name,match(c143,:name,0.0)); end
1354
+ def f143; @f143 ||= f184/f205; end
1355
+ def h143; @h143 ||= h184*h155/f205; end
1356
+ def i143; @i143 ||= i184*h155/f205; end
1357
+ def j143; @j143 ||= j184*h155/f205; end
1358
+ def k143; @k143 ||= k184*h155/f205; end
1359
+ def l143; @l143 ||= l184*h155/f205; end
1360
+ def m143; @m143 ||= m184*h155/f205; end
1361
+ def n143; @n143 ||= n184*h155/f205; end
1362
+ def o143; @o143 ||= o184*h155/f205; end
1363
+ def p143; @p143 ||= p184*h155/f205; end
1364
+ def q143; @q143 ||= q184*h155/f205; end
1365
+ def c144; 4.0; end
1366
+ def d144; @d144 ||= index(:name,match(c144,:name,0.0)); end
1367
+ def f144; @f144 ||= f185/f205; end
1368
+ def h144; @h144 ||= h185*h155/f205; end
1369
+ def i144; @i144 ||= i185*h155/f205; end
1370
+ def j144; @j144 ||= j185*h155/f205; end
1371
+ def k144; @k144 ||= k185*h155/f205; end
1372
+ def l144; @l144 ||= l185*h155/f205; end
1373
+ def m144; @m144 ||= m185*h155/f205; end
1374
+ def n144; @n144 ||= n185*h155/f205; end
1375
+ def o144; @o144 ||= o185*h155/f205; end
1376
+ def p144; @p144 ||= p185*h155/f205; end
1377
+ def q144; @q144 ||= q185*h155/f205; end
1378
+ def c145; 5.0; end
1379
+ def d145; @d145 ||= index(:name,match(c145,:name,0.0)); end
1380
+ def f145; @f145 ||= f186/f205; end
1381
+ def h145; @h145 ||= h186*h155/f205; end
1382
+ def i145; @i145 ||= i186*h155/f205; end
1383
+ def j145; @j145 ||= j186*h155/f205; end
1384
+ def k145; @k145 ||= k186*h155/f205; end
1385
+ def l145; @l145 ||= l186*h155/f205; end
1386
+ def m145; @m145 ||= m186*h155/f205; end
1387
+ def n145; @n145 ||= n186*h155/f205; end
1388
+ def o145; @o145 ||= o186*h155/f205; end
1389
+ def p145; @p145 ||= p186*h155/f205; end
1390
+ def q145; @q145 ||= q186*h155/f205; end
1391
+ def c146; 6.0; end
1392
+ def d146; @d146 ||= index(:name,match(c146,:name,0.0)); end
1393
+ def f146; @f146 ||= f187/f205; end
1394
+ def h146; @h146 ||= h187*h155/f205; end
1395
+ def i146; @i146 ||= i187*h155/f205; end
1396
+ def j146; @j146 ||= j187*h155/f205; end
1397
+ def k146; @k146 ||= k187*h155/f205; end
1398
+ def l146; @l146 ||= l187*h155/f205; end
1399
+ def m146; @m146 ||= m187*h155/f205; end
1400
+ def n146; @n146 ||= n187*h155/f205; end
1401
+ def o146; @o146 ||= o187*h155/f205; end
1402
+ def p146; @p146 ||= p187*h155/f205; end
1403
+ def q146; @q146 ||= q187*h155/f205; end
1404
+ def c147; 7.0; end
1405
+ def d147; @d147 ||= index(:name,match(c147,:name,0.0)); end
1406
+ def f147; @f147 ||= f188/f205; end
1407
+ def h147; @h147 ||= h188*h155/f205; end
1408
+ def i147; @i147 ||= i188*h155/f205; end
1409
+ def j147; @j147 ||= j188*h155/f205; end
1410
+ def k147; @k147 ||= k188*h155/f205; end
1411
+ def l147; @l147 ||= l188*h155/f205; end
1412
+ def m147; @m147 ||= m188*h155/f205; end
1413
+ def n147; @n147 ||= n188*h155/f205; end
1414
+ def o147; @o147 ||= o188*h155/f205; end
1415
+ def p147; @p147 ||= p188*h155/f205; end
1416
+ def q147; @q147 ||= q188*h155/f205; end
1417
+ def c148; "X1"; end
1418
+ def d148; @d148 ||= index(:name,match(c148,:name,0.0)); end
1419
+ def f148; @f148 ||= f189/f205; end
1420
+ def h148; @h148 ||= h189*h155/f205; end
1421
+ def i148; @i148 ||= i189*h155/f205; end
1422
+ def j148; @j148 ||= j189*h155/f205; end
1423
+ def k148; @k148 ||= k189*h155/f205; end
1424
+ def l148; @l148 ||= l189*h155/f205; end
1425
+ def m148; @m148 ||= m189*h155/f205; end
1426
+ def n148; @n148 ||= n189*h155/f205; end
1427
+ def o148; @o148 ||= o189*h155/f205; end
1428
+ def p148; @p148 ||= p189*h155/f205; end
1429
+ def q148; @q148 ||= q189*h155/f205; end
1430
+ def c149; "X2"; end
1431
+ def d149; @d149 ||= index(:name,match(c149,:name,0.0)); end
1432
+ def h149; @h149 ||= h190*h155/f205; end
1433
+ def i149; @i149 ||= i190*h155/f205; end
1434
+ def j149; @j149 ||= j190*h155/f205; end
1435
+ def k149; @k149 ||= k190*h155/f205; end
1436
+ def l149; @l149 ||= l190*h155/f205; end
1437
+ def m149; @m149 ||= m190*h155/f205; end
1438
+ def n149; @n149 ||= n190*h155/f205; end
1439
+ def o149; @o149 ||= o190*h155/f205; end
1440
+ def p149; @p149 ||= p190*h155/f205; end
1441
+ def q149; @q149 ||= q190*h155/f205; end
1442
+ def c150; "X3"; end
1443
+ def d150; @d150 ||= index(:name,match(c150,:name,0.0)); end
1444
+ def h150; @h150 ||= h191*h155/f205; end
1445
+ def i150; @i150 ||= i191*h155/f205; end
1446
+ def j150; @j150 ||= j191*h155/f205; end
1447
+ def k150; @k150 ||= k191*h155/f205; end
1448
+ def l150; @l150 ||= l191*h155/f205; end
1449
+ def m150; @m150 ||= m191*h155/f205; end
1450
+ def n150; @n150 ||= n191*h155/f205; end
1451
+ def o150; @o150 ||= o191*h155/f205; end
1452
+ def p150; @p150 ||= p191*h155/f205; end
1453
+ def q150; @q150 ||= q191*h155/f205; end
1454
+ def d151; "Total"; end
1455
+ def f151; @f151 ||= sum(a('f141','f148')); end
1456
+ def h151; @h151 ||= sum(a('h141','h150')); end
1457
+ def i151; @i151 ||= sum(a('i141','i150')); end
1458
+ def j151; @j151 ||= sum(a('j141','j150')); end
1459
+ def k151; @k151 ||= sum(a('k141','k150')); end
1460
+ def l151; @l151 ||= sum(a('l141','l150')); end
1461
+ def m151; @m151 ||= sum(a('m141','m150')); end
1462
+ def n151; @n151 ||= sum(a('n141','n150')); end
1463
+ def o151; @o151 ||= sum(a('o141','o150')); end
1464
+ def p151; @p151 ||= sum(a('p141','p150')); end
1465
+ def q151; @q151 ||= sum(a('q141','q150')); end
1466
+ def c153; "Excluding international bunkers"; end
1467
+ def f153; @f153 ||= f194/f203; end
1468
+ def h153; @h153 ||= (h194/f203)*h155; end
1469
+ def i153; @i153 ||= (i194/f203)*h155; end
1470
+ def j153; @j153 ||= (j194/f203)*h155; end
1471
+ def k153; @k153 ||= (k194/f203)*h155; end
1472
+ def l153; @l153 ||= (l194/f203)*h155; end
1473
+ def m153; @m153 ||= (m194/f203)*h155; end
1474
+ def n153; @n153 ||= (n194/f203)*h155; end
1475
+ def o153; @o153 ||= (o194/f203)*h155; end
1476
+ def p153; @p153 ||= (p194/f203)*h155; end
1477
+ def q153; @q153 ||= (q194/f203)*h155; end
1478
+ def e155; "Adjustment factor:"; end
1479
+ def h155; @h155 ||= f192/h192; end
1480
+ def p155; "% reduction 1990-2050"; end
1481
+ def q155; @q155 ||= 1.0-q151; end
1482
+ def c157; "Emissions by sector"; end
1483
+ def f157; "Sector"; end
1484
+ def h157; 2007.0; end
1485
+ def i157; 2010.0; end
1486
+ def j157; 2015.0; end
1487
+ def k157; 2020.0; end
1488
+ def l157; 2025.0; end
1489
+ def m157; 2030.0; end
1490
+ def n157; 2035.0; end
1491
+ def o157; 2040.0; end
1492
+ def p157; 2045.0; end
1493
+ def q157; 2050.0; end
1494
+ def c158; "I"; end
1495
+ def f158; "Hydrocarbon fuel power generation"; end
1496
+ def h158; @h158 ||= sumifs(:ref,:ref,c158); end
1497
+ def i158; @i158 ||= sumifs(:ref,:ref,c158); end
1498
+ def j158; @j158 ||= sumifs(:ref,:ref,c158); end
1499
+ def k158; @k158 ||= sumifs(:ref,:ref,c158); end
1500
+ def l158; @l158 ||= sumifs(:ref,:ref,c158); end
1501
+ def m158; @m158 ||= sumifs(:ref,:ref,c158); end
1502
+ def n158; @n158 ||= sumifs(:ref,:ref,c158); end
1503
+ def o158; @o158 ||= sumifs(:ref,:ref,c158); end
1504
+ def p158; @p158 ||= sumifs(:ref,:ref,c158); end
1505
+ def q158; @q158 ||= sumifs(:ref,:ref,c158); end
1506
+ def c159; "II"; end
1507
+ def f159; "Nuclear power generation"; end
1508
+ def h159; @h159 ||= sumifs(:ref,:ref,c159); end
1509
+ def i159; @i159 ||= sumifs(:ref,:ref,c159); end
1510
+ def j159; @j159 ||= sumifs(:ref,:ref,c159); end
1511
+ def k159; @k159 ||= sumifs(:ref,:ref,c159); end
1512
+ def l159; @l159 ||= sumifs(:ref,:ref,c159); end
1513
+ def m159; @m159 ||= sumifs(:ref,:ref,c159); end
1514
+ def n159; @n159 ||= sumifs(:ref,:ref,c159); end
1515
+ def o159; @o159 ||= sumifs(:ref,:ref,c159); end
1516
+ def p159; @p159 ||= sumifs(:ref,:ref,c159); end
1517
+ def q159; @q159 ||= sumifs(:ref,:ref,c159); end
1518
+ def c160; "III"; end
1519
+ def f160; "National renewable power generation"; end
1520
+ def h160; @h160 ||= sumifs(:ref,:ref,c160); end
1521
+ def i160; @i160 ||= sumifs(:ref,:ref,c160); end
1522
+ def j160; @j160 ||= sumifs(:ref,:ref,c160); end
1523
+ def k160; @k160 ||= sumifs(:ref,:ref,c160); end
1524
+ def l160; @l160 ||= sumifs(:ref,:ref,c160); end
1525
+ def m160; @m160 ||= sumifs(:ref,:ref,c160); end
1526
+ def n160; @n160 ||= sumifs(:ref,:ref,c160); end
1527
+ def o160; @o160 ||= sumifs(:ref,:ref,c160); end
1528
+ def p160; @p160 ||= sumifs(:ref,:ref,c160); end
1529
+ def q160; @q160 ||= sumifs(:ref,:ref,c160); end
1530
+ def c161; "IV"; end
1531
+ def f161; "Distributed renewable power generation"; end
1532
+ def h161; @h161 ||= sumifs(:ref,:ref,c161); end
1533
+ def i161; @i161 ||= sumifs(:ref,:ref,c161); end
1534
+ def j161; @j161 ||= sumifs(:ref,:ref,c161); end
1535
+ def k161; @k161 ||= sumifs(:ref,:ref,c161); end
1536
+ def l161; @l161 ||= sumifs(:ref,:ref,c161); end
1537
+ def m161; @m161 ||= sumifs(:ref,:ref,c161); end
1538
+ def n161; @n161 ||= sumifs(:ref,:ref,c161); end
1539
+ def o161; @o161 ||= sumifs(:ref,:ref,c161); end
1540
+ def p161; @p161 ||= sumifs(:ref,:ref,c161); end
1541
+ def q161; @q161 ||= sumifs(:ref,:ref,c161); end
1542
+ def c162; "V"; end
1543
+ def f162; "Bioenergy"; end
1544
+ def h162; @h162 ||= sumifs(:ref,:ref,c162); end
1545
+ def i162; @i162 ||= sumifs(:ref,:ref,c162); end
1546
+ def j162; @j162 ||= sumifs(:ref,:ref,c162); end
1547
+ def k162; @k162 ||= sumifs(:ref,:ref,c162); end
1548
+ def l162; @l162 ||= sumifs(:ref,:ref,c162); end
1549
+ def m162; @m162 ||= sumifs(:ref,:ref,c162); end
1550
+ def n162; @n162 ||= sumifs(:ref,:ref,c162); end
1551
+ def o162; @o162 ||= sumifs(:ref,:ref,c162); end
1552
+ def p162; @p162 ||= sumifs(:ref,:ref,c162); end
1553
+ def q162; @q162 ||= sumifs(:ref,:ref,c162); end
1554
+ def c163; "VI"; end
1555
+ def f163; "Agriculture and waste"; end
1556
+ def h163; @h163 ||= sumifs(:ref,:ref,c163); end
1557
+ def i163; @i163 ||= sumifs(:ref,:ref,c163); end
1558
+ def j163; @j163 ||= sumifs(:ref,:ref,c163); end
1559
+ def k163; @k163 ||= sumifs(:ref,:ref,c163); end
1560
+ def l163; @l163 ||= sumifs(:ref,:ref,c163); end
1561
+ def m163; @m163 ||= sumifs(:ref,:ref,c163); end
1562
+ def n163; @n163 ||= sumifs(:ref,:ref,c163); end
1563
+ def o163; @o163 ||= sumifs(:ref,:ref,c163); end
1564
+ def p163; @p163 ||= sumifs(:ref,:ref,c163); end
1565
+ def q163; @q163 ||= sumifs(:ref,:ref,c163); end
1566
+ def c164; "VII"; end
1567
+ def f164; "Electricity distribution, storage, and balancing"; end
1568
+ def h164; @h164 ||= sumifs(:ref,:ref,c164); end
1569
+ def i164; @i164 ||= sumifs(:ref,:ref,c164); end
1570
+ def j164; @j164 ||= sumifs(:ref,:ref,c164); end
1571
+ def k164; @k164 ||= sumifs(:ref,:ref,c164); end
1572
+ def l164; @l164 ||= sumifs(:ref,:ref,c164); end
1573
+ def m164; @m164 ||= sumifs(:ref,:ref,c164); end
1574
+ def n164; @n164 ||= sumifs(:ref,:ref,c164); end
1575
+ def o164; @o164 ||= sumifs(:ref,:ref,c164); end
1576
+ def p164; @p164 ||= sumifs(:ref,:ref,c164); end
1577
+ def q164; @q164 ||= sumifs(:ref,:ref,c164); end
1578
+ def c165; "VIII"; end
1579
+ def f165; "H2 Production"; end
1580
+ def h165; @h165 ||= sumifs(:ref,:ref,c165); end
1581
+ def i165; @i165 ||= sumifs(:ref,:ref,c165); end
1582
+ def j165; @j165 ||= sumifs(:ref,:ref,c165); end
1583
+ def k165; @k165 ||= sumifs(:ref,:ref,c165); end
1584
+ def l165; @l165 ||= sumifs(:ref,:ref,c165); end
1585
+ def m165; @m165 ||= sumifs(:ref,:ref,c165); end
1586
+ def n165; @n165 ||= sumifs(:ref,:ref,c165); end
1587
+ def o165; @o165 ||= sumifs(:ref,:ref,c165); end
1588
+ def p165; @p165 ||= sumifs(:ref,:ref,c165); end
1589
+ def q165; @q165 ||= sumifs(:ref,:ref,c165); end
1590
+ def c166; "IX"; end
1591
+ def f166; "Heating"; end
1592
+ def h166; @h166 ||= sumifs(:ref,:ref,c166); end
1593
+ def i166; @i166 ||= sumifs(:ref,:ref,c166); end
1594
+ def j166; @j166 ||= sumifs(:ref,:ref,c166); end
1595
+ def k166; @k166 ||= sumifs(:ref,:ref,c166); end
1596
+ def l166; @l166 ||= sumifs(:ref,:ref,c166); end
1597
+ def m166; @m166 ||= sumifs(:ref,:ref,c166); end
1598
+ def n166; @n166 ||= sumifs(:ref,:ref,c166); end
1599
+ def o166; @o166 ||= sumifs(:ref,:ref,c166); end
1600
+ def p166; @p166 ||= sumifs(:ref,:ref,c166); end
1601
+ def q166; @q166 ||= sumifs(:ref,:ref,c166); end
1602
+ def c167; "X"; end
1603
+ def f167; "Lighting and appliances"; end
1604
+ def h167; @h167 ||= sumifs(:ref,:ref,c167); end
1605
+ def i167; @i167 ||= sumifs(:ref,:ref,c167); end
1606
+ def j167; @j167 ||= sumifs(:ref,:ref,c167); end
1607
+ def k167; @k167 ||= sumifs(:ref,:ref,c167); end
1608
+ def l167; @l167 ||= sumifs(:ref,:ref,c167); end
1609
+ def m167; @m167 ||= sumifs(:ref,:ref,c167); end
1610
+ def n167; @n167 ||= sumifs(:ref,:ref,c167); end
1611
+ def o167; @o167 ||= sumifs(:ref,:ref,c167); end
1612
+ def p167; @p167 ||= sumifs(:ref,:ref,c167); end
1613
+ def q167; @q167 ||= sumifs(:ref,:ref,c167); end
1614
+ def c168; "XI"; end
1615
+ def f168; "Industry"; end
1616
+ def h168; @h168 ||= sumifs(:ref,:ref,c168); end
1617
+ def i168; @i168 ||= sumifs(:ref,:ref,c168); end
1618
+ def j168; @j168 ||= sumifs(:ref,:ref,c168); end
1619
+ def k168; @k168 ||= sumifs(:ref,:ref,c168); end
1620
+ def l168; @l168 ||= sumifs(:ref,:ref,c168); end
1621
+ def m168; @m168 ||= sumifs(:ref,:ref,c168); end
1622
+ def n168; @n168 ||= sumifs(:ref,:ref,c168); end
1623
+ def o168; @o168 ||= sumifs(:ref,:ref,c168); end
1624
+ def p168; @p168 ||= sumifs(:ref,:ref,c168); end
1625
+ def q168; @q168 ||= sumifs(:ref,:ref,c168); end
1626
+ def c169; "XII"; end
1627
+ def f169; "Transport"; end
1628
+ def h169; @h169 ||= sumifs(:ref,:ref,c169); end
1629
+ def i169; @i169 ||= sumifs(:ref,:ref,c169); end
1630
+ def j169; @j169 ||= sumifs(:ref,:ref,c169); end
1631
+ def k169; @k169 ||= sumifs(:ref,:ref,c169); end
1632
+ def l169; @l169 ||= sumifs(:ref,:ref,c169); end
1633
+ def m169; @m169 ||= sumifs(:ref,:ref,c169); end
1634
+ def n169; @n169 ||= sumifs(:ref,:ref,c169); end
1635
+ def o169; @o169 ||= sumifs(:ref,:ref,c169); end
1636
+ def p169; @p169 ||= sumifs(:ref,:ref,c169); end
1637
+ def q169; @q169 ||= sumifs(:ref,:ref,c169); end
1638
+ def c170; "XIII"; end
1639
+ def f170; "Food consumption [UNUSED]"; end
1640
+ def h170; @h170 ||= sumifs(:ref,:ref,c170); end
1641
+ def i170; @i170 ||= sumifs(:ref,:ref,c170); end
1642
+ def j170; @j170 ||= sumifs(:ref,:ref,c170); end
1643
+ def k170; @k170 ||= sumifs(:ref,:ref,c170); end
1644
+ def l170; @l170 ||= sumifs(:ref,:ref,c170); end
1645
+ def m170; @m170 ||= sumifs(:ref,:ref,c170); end
1646
+ def n170; @n170 ||= sumifs(:ref,:ref,c170); end
1647
+ def o170; @o170 ||= sumifs(:ref,:ref,c170); end
1648
+ def p170; @p170 ||= sumifs(:ref,:ref,c170); end
1649
+ def q170; @q170 ||= sumifs(:ref,:ref,c170); end
1650
+ def c171; "XIV"; end
1651
+ def f171; "Geosequestration"; end
1652
+ def h171; @h171 ||= sumifs(:ref,:ref,c171); end
1653
+ def i171; @i171 ||= sumifs(:ref,:ref,c171); end
1654
+ def j171; @j171 ||= sumifs(:ref,:ref,c171); end
1655
+ def k171; @k171 ||= sumifs(:ref,:ref,c171); end
1656
+ def l171; @l171 ||= sumifs(:ref,:ref,c171); end
1657
+ def m171; @m171 ||= sumifs(:ref,:ref,c171); end
1658
+ def n171; @n171 ||= sumifs(:ref,:ref,c171); end
1659
+ def o171; @o171 ||= sumifs(:ref,:ref,c171); end
1660
+ def p171; @p171 ||= sumifs(:ref,:ref,c171); end
1661
+ def q171; @q171 ||= sumifs(:ref,:ref,c171); end
1662
+ def c172; "XV"; end
1663
+ def f172; "Fossil fuel production"; end
1664
+ def h172; @h172 ||= sumifs(:ref,:ref,c172); end
1665
+ def i172; @i172 ||= sumifs(:ref,:ref,c172); end
1666
+ def j172; @j172 ||= sumifs(:ref,:ref,c172); end
1667
+ def k172; @k172 ||= sumifs(:ref,:ref,c172); end
1668
+ def l172; @l172 ||= sumifs(:ref,:ref,c172); end
1669
+ def m172; @m172 ||= sumifs(:ref,:ref,c172); end
1670
+ def n172; @n172 ||= sumifs(:ref,:ref,c172); end
1671
+ def o172; @o172 ||= sumifs(:ref,:ref,c172); end
1672
+ def p172; @p172 ||= sumifs(:ref,:ref,c172); end
1673
+ def q172; @q172 ||= sumifs(:ref,:ref,c172); end
1674
+ def c173; "XVI"; end
1675
+ def f173; "Transfers"; end
1676
+ def h173; @h173 ||= sumifs(:ref,:ref,c173); end
1677
+ def i173; @i173 ||= sumifs(:ref,:ref,c173); end
1678
+ def j173; @j173 ||= sumifs(:ref,:ref,c173); end
1679
+ def k173; @k173 ||= sumifs(:ref,:ref,c173); end
1680
+ def l173; @l173 ||= sumifs(:ref,:ref,c173); end
1681
+ def m173; @m173 ||= sumifs(:ref,:ref,c173); end
1682
+ def n173; @n173 ||= sumifs(:ref,:ref,c173); end
1683
+ def o173; @o173 ||= sumifs(:ref,:ref,c173); end
1684
+ def p173; @p173 ||= sumifs(:ref,:ref,c173); end
1685
+ def q173; @q173 ||= sumifs(:ref,:ref,c173); end
1686
+ def c174; "XVII"; end
1687
+ def f174; "District heating"; end
1688
+ def h174; @h174 ||= sumifs(:ref,:ref,c174); end
1689
+ def i174; @i174 ||= sumifs(:ref,:ref,c174); end
1690
+ def j174; @j174 ||= sumifs(:ref,:ref,c174); end
1691
+ def k174; @k174 ||= sumifs(:ref,:ref,c174); end
1692
+ def l174; @l174 ||= sumifs(:ref,:ref,c174); end
1693
+ def m174; @m174 ||= sumifs(:ref,:ref,c174); end
1694
+ def n174; @n174 ||= sumifs(:ref,:ref,c174); end
1695
+ def o174; @o174 ||= sumifs(:ref,:ref,c174); end
1696
+ def p174; @p174 ||= sumifs(:ref,:ref,c174); end
1697
+ def q174; @q174 ||= sumifs(:ref,:ref,c174); end
1698
+ def f175; "Total"; end
1699
+ def h175; @h175 ||= sum(a('h158','h174')); end
1700
+ def i175; @i175 ||= sum(a('i158','i174')); end
1701
+ def j175; @j175 ||= sum(a('j158','j174')); end
1702
+ def k175; @k175 ||= sum(a('k158','k174')); end
1703
+ def l175; @l175 ||= sum(a('l158','l174')); end
1704
+ def m175; @m175 ||= sum(a('m158','m174')); end
1705
+ def n175; @n175 ||= sum(a('n158','n174')); end
1706
+ def o175; @o175 ||= sum(a('o158','o174')); end
1707
+ def p175; @p175 ||= sum(a('p158','p174')); end
1708
+ def q175; @q175 ||= sum(a('q158','q174')); end
1709
+ def f176; "Emissions in the time period (up to and including year above)"; end
1710
+ def i176; @i176 ||= (h175*(i157-h157))+i175+((i175-h175)*6.0/(i157-h157)); end
1711
+ def j176; @j176 ||= (i175*(j157-i157-1.0))+j175+((j175-i175)*10.0/(j157-i157)); end
1712
+ def k176; @k176 ||= (j175*(k157-j157-1.0))+k175+((k175-j175)*10.0/(k157-j157)); end
1713
+ def l176; @l176 ||= (k175*(l157-k157-1.0))+l175+((l175-k175)*10.0/(l157-k157)); end
1714
+ def m176; @m176 ||= (l175*(m157-l157-1.0))+m175+((m175-l175)*10.0/(m157-l157)); end
1715
+ def n176; @n176 ||= (m175*(n157-m157-1.0))+n175+((n175-m175)*10.0/(n157-m157)); end
1716
+ def o176; @o176 ||= (n175*(o157-n157-1.0))+o175+((o175-n175)*10.0/(o157-n157)); end
1717
+ def p176; @p176 ||= (o175*(p157-o157-1.0))+p175+((p175-o175)*10.0/(p157-o157)); end
1718
+ def q176; @q176 ||= (p175*(q157-p157-1.0))+q175+((q175-p175)*10.0/(q157-p157)); end
1719
+ def r176; "REFERENCED - All costs"; end
1720
+ def c177; "Modelled emissions"; end
1721
+ def f177; "Cumulative emissions"; end
1722
+ def i177; @i177 ||= i176; end
1723
+ def j177; @j177 ||= j176+i176; end
1724
+ def k177; @k177 ||= k176+j177; end
1725
+ def l177; @l177 ||= l176+k177; end
1726
+ def m177; @m177 ||= m176+l177; end
1727
+ def n177; @n177 ||= n176+m177; end
1728
+ def o177; @o177 ||= o176+n177; end
1729
+ def p177; @p177 ||= p176+o177; end
1730
+ def q177; @q177 ||= q176+p177; end
1731
+ def d179; "IPCC Sector"; end
1732
+ def f179; "Actuals, GHG Inv."; end
1733
+ def q179; "Mt CO2e"; end
1734
+ def c180; "1A"; end
1735
+ def d180; @d180 ||= index(:name,match(c180,:name,0.0)); end
1736
+ def f180; 532.6387375112939; end
1737
+ def h180; @h180 ||= sumifs(:ref,:ref,c180); end
1738
+ def i180; @i180 ||= sumifs(:ref,:ref,c180); end
1739
+ def j180; @j180 ||= sumifs(:ref,:ref,c180); end
1740
+ def k180; @k180 ||= sumifs(:ref,:ref,c180); end
1741
+ def l180; @l180 ||= sumifs(:ref,:ref,c180); end
1742
+ def m180; @m180 ||= sumifs(:ref,:ref,c180); end
1743
+ def n180; @n180 ||= sumifs(:ref,:ref,c180); end
1744
+ def o180; @o180 ||= sumifs(:ref,:ref,c180); end
1745
+ def p180; @p180 ||= sumifs(:ref,:ref,c180); end
1746
+ def q180; @q180 ||= sumifs(:ref,:ref,c180); end
1747
+ def c181; "1B"; end
1748
+ def d181; @d181 ||= index(:name,match(c181,:name,0.0)); end
1749
+ def f181; 13.3650064404099; end
1750
+ def h181; @h181 ||= sumifs(:ref,:ref,c181); end
1751
+ def i181; @i181 ||= sumifs(:ref,:ref,c181); end
1752
+ def j181; @j181 ||= sumifs(:ref,:ref,c181); end
1753
+ def k181; @k181 ||= sumifs(:ref,:ref,c181); end
1754
+ def l181; @l181 ||= sumifs(:ref,:ref,c181); end
1755
+ def m181; @m181 ||= sumifs(:ref,:ref,c181); end
1756
+ def n181; @n181 ||= sumifs(:ref,:ref,c181); end
1757
+ def o181; @o181 ||= sumifs(:ref,:ref,c181); end
1758
+ def p181; @p181 ||= sumifs(:ref,:ref,c181); end
1759
+ def q181; @q181 ||= sumifs(:ref,:ref,c181); end
1760
+ def c182; 1.0; end
1761
+ def d182; "Fuel Combustion"; end
1762
+ def f182; @f182 ||= f180+f181; end
1763
+ def h182; @h182 ||= h180+h181; end
1764
+ def i182; @i182 ||= i180+i181; end
1765
+ def j182; @j182 ||= j180+j181; end
1766
+ def k182; @k182 ||= k180+k181; end
1767
+ def l182; @l182 ||= l180+l181; end
1768
+ def m182; @m182 ||= m180+m181; end
1769
+ def n182; @n182 ||= n180+n181; end
1770
+ def o182; @o182 ||= o180+o181; end
1771
+ def p182; @p182 ||= p180+p181; end
1772
+ def q182; @q182 ||= q180+q181; end
1773
+ def c183; 2.0; end
1774
+ def d183; @d183 ||= index(:name,match(c183,:name,0.0)); end
1775
+ def f183; 27.8913120599484; end
1776
+ def h183; @h183 ||= sumifs(:ref,:ref,c183); end
1777
+ def i183; @i183 ||= sumifs(:ref,:ref,c183); end
1778
+ def j183; @j183 ||= sumifs(:ref,:ref,c183); end
1779
+ def k183; @k183 ||= sumifs(:ref,:ref,c183); end
1780
+ def l183; @l183 ||= sumifs(:ref,:ref,c183); end
1781
+ def m183; @m183 ||= sumifs(:ref,:ref,c183); end
1782
+ def n183; @n183 ||= sumifs(:ref,:ref,c183); end
1783
+ def o183; @o183 ||= sumifs(:ref,:ref,c183); end
1784
+ def p183; @p183 ||= sumifs(:ref,:ref,c183); end
1785
+ def q183; @q183 ||= sumifs(:ref,:ref,c183); end
1786
+ def c184; 3.0; end
1787
+ def d184; @d184 ||= index(:name,match(c184,:name,0.0)); end
1788
+ def f184; 0.0; end
1789
+ def h184; @h184 ||= sumifs(:ref,:ref,c184); end
1790
+ def i184; @i184 ||= sumifs(:ref,:ref,c184); end
1791
+ def j184; @j184 ||= sumifs(:ref,:ref,c184); end
1792
+ def k184; @k184 ||= sumifs(:ref,:ref,c184); end
1793
+ def l184; @l184 ||= sumifs(:ref,:ref,c184); end
1794
+ def m184; @m184 ||= sumifs(:ref,:ref,c184); end
1795
+ def n184; @n184 ||= sumifs(:ref,:ref,c184); end
1796
+ def o184; @o184 ||= sumifs(:ref,:ref,c184); end
1797
+ def p184; @p184 ||= sumifs(:ref,:ref,c184); end
1798
+ def q184; @q184 ||= sumifs(:ref,:ref,c184); end
1799
+ def c185; 4.0; end
1800
+ def d185; @d185 ||= index(:name,match(c185,:name,0.0)); end
1801
+ def f185; 43.4591660991799; end
1802
+ def h185; @h185 ||= sumifs(:ref,:ref,c185); end
1803
+ def i185; @i185 ||= sumifs(:ref,:ref,c185); end
1804
+ def j185; @j185 ||= sumifs(:ref,:ref,c185); end
1805
+ def k185; @k185 ||= sumifs(:ref,:ref,c185); end
1806
+ def l185; @l185 ||= sumifs(:ref,:ref,c185); end
1807
+ def m185; @m185 ||= sumifs(:ref,:ref,c185); end
1808
+ def n185; @n185 ||= sumifs(:ref,:ref,c185); end
1809
+ def o185; @o185 ||= sumifs(:ref,:ref,c185); end
1810
+ def p185; @p185 ||= sumifs(:ref,:ref,c185); end
1811
+ def q185; @q185 ||= sumifs(:ref,:ref,c185); end
1812
+ def c186; 5.0; end
1813
+ def d186; @d186 ||= index(:name,match(c186,:name,0.0)); end
1814
+ def f186; -1.7798396847837301; end
1815
+ def h186; @h186 ||= sumifs(:ref,:ref,c186); end
1816
+ def i186; @i186 ||= sumifs(:ref,:ref,c186); end
1817
+ def j186; @j186 ||= sumifs(:ref,:ref,c186); end
1818
+ def k186; @k186 ||= sumifs(:ref,:ref,c186); end
1819
+ def l186; @l186 ||= sumifs(:ref,:ref,c186); end
1820
+ def m186; @m186 ||= sumifs(:ref,:ref,c186); end
1821
+ def n186; @n186 ||= sumifs(:ref,:ref,c186); end
1822
+ def o186; @o186 ||= sumifs(:ref,:ref,c186); end
1823
+ def p186; @p186 ||= sumifs(:ref,:ref,c186); end
1824
+ def q186; @q186 ||= sumifs(:ref,:ref,c186); end
1825
+ def c187; 6.0; end
1826
+ def d187; @d187 ||= index(:name,match(c187,:name,0.0)); end
1827
+ def f187; 22.8602295816192; end
1828
+ def h187; @h187 ||= sumifs(:ref,:ref,c187); end
1829
+ def i187; @i187 ||= sumifs(:ref,:ref,c187); end
1830
+ def j187; @j187 ||= sumifs(:ref,:ref,c187); end
1831
+ def k187; @k187 ||= sumifs(:ref,:ref,c187); end
1832
+ def l187; @l187 ||= sumifs(:ref,:ref,c187); end
1833
+ def m187; @m187 ||= sumifs(:ref,:ref,c187); end
1834
+ def n187; @n187 ||= sumifs(:ref,:ref,c187); end
1835
+ def o187; @o187 ||= sumifs(:ref,:ref,c187); end
1836
+ def p187; @p187 ||= sumifs(:ref,:ref,c187); end
1837
+ def q187; @q187 ||= sumifs(:ref,:ref,c187); end
1838
+ def c188; 7.0; end
1839
+ def d188; @d188 ||= index(:name,match(c188,:name,0.0)); end
1840
+ def h188; @h188 ||= sumifs(:ref,:ref,c188); end
1841
+ def i188; @i188 ||= sumifs(:ref,:ref,c188); end
1842
+ def j188; @j188 ||= sumifs(:ref,:ref,c188); end
1843
+ def k188; @k188 ||= sumifs(:ref,:ref,c188); end
1844
+ def l188; @l188 ||= sumifs(:ref,:ref,c188); end
1845
+ def m188; @m188 ||= sumifs(:ref,:ref,c188); end
1846
+ def n188; @n188 ||= sumifs(:ref,:ref,c188); end
1847
+ def o188; @o188 ||= sumifs(:ref,:ref,c188); end
1848
+ def p188; @p188 ||= sumifs(:ref,:ref,c188); end
1849
+ def q188; @q188 ||= sumifs(:ref,:ref,c188); end
1850
+ def c189; "X1"; end
1851
+ def d189; @d189 ||= index(:name,match(c189,:name,0.0)); end
1852
+ def f189; 42.52436; end
1853
+ def h189; @h189 ||= sumifs(:ref,:ref,c189); end
1854
+ def i189; @i189 ||= sumifs(:ref,:ref,c189); end
1855
+ def j189; @j189 ||= sumifs(:ref,:ref,c189); end
1856
+ def k189; @k189 ||= sumifs(:ref,:ref,c189); end
1857
+ def l189; @l189 ||= sumifs(:ref,:ref,c189); end
1858
+ def m189; @m189 ||= sumifs(:ref,:ref,c189); end
1859
+ def n189; @n189 ||= sumifs(:ref,:ref,c189); end
1860
+ def o189; @o189 ||= sumifs(:ref,:ref,c189); end
1861
+ def p189; @p189 ||= sumifs(:ref,:ref,c189); end
1862
+ def q189; @q189 ||= sumifs(:ref,:ref,c189); end
1863
+ def c190; "X2"; end
1864
+ def d190; @d190 ||= index(:name,match(c190,:name,0.0)); end
1865
+ def h190; @h190 ||= sumifs(:ref,:ref,c190); end
1866
+ def i190; @i190 ||= sumifs(:ref,:ref,c190); end
1867
+ def j190; @j190 ||= sumifs(:ref,:ref,c190); end
1868
+ def k190; @k190 ||= sumifs(:ref,:ref,c190); end
1869
+ def l190; @l190 ||= sumifs(:ref,:ref,c190); end
1870
+ def m190; @m190 ||= sumifs(:ref,:ref,c190); end
1871
+ def n190; @n190 ||= sumifs(:ref,:ref,c190); end
1872
+ def o190; @o190 ||= sumifs(:ref,:ref,c190); end
1873
+ def p190; @p190 ||= sumifs(:ref,:ref,c190); end
1874
+ def q190; @q190 ||= sumifs(:ref,:ref,c190); end
1875
+ def c191; "X3"; end
1876
+ def d191; @d191 ||= index(:name,match(c191,:name,0.0)); end
1877
+ def h191; @h191 ||= sumifs(:ref,:ref,c191); end
1878
+ def i191; @i191 ||= sumifs(:ref,:ref,c191); end
1879
+ def j191; @j191 ||= sumifs(:ref,:ref,c191); end
1880
+ def k191; @k191 ||= sumifs(:ref,:ref,c191); end
1881
+ def l191; @l191 ||= sumifs(:ref,:ref,c191); end
1882
+ def m191; @m191 ||= sumifs(:ref,:ref,c191); end
1883
+ def n191; @n191 ||= sumifs(:ref,:ref,c191); end
1884
+ def o191; @o191 ||= sumifs(:ref,:ref,c191); end
1885
+ def p191; @p191 ||= sumifs(:ref,:ref,c191); end
1886
+ def q191; @q191 ||= sumifs(:ref,:ref,c191); end
1887
+ def d192; "Total"; end
1888
+ def f192; @f192 ||= sum(a('f182','f189')); end
1889
+ def h192; @h192 ||= sum(a('h182','h191')); end
1890
+ def i192; @i192 ||= sum(a('i182','i191')); end
1891
+ def j192; @j192 ||= sum(a('j182','j191')); end
1892
+ def k192; @k192 ||= sum(a('k182','k191')); end
1893
+ def l192; @l192 ||= sum(a('l182','l191')); end
1894
+ def m192; @m192 ||= sum(a('m182','m191')); end
1895
+ def n192; @n192 ||= sum(a('n182','n191')); end
1896
+ def o192; @o192 ||= sum(a('o182','o191')); end
1897
+ def p192; @p192 ||= sum(a('p182','p191')); end
1898
+ def q192; @q192 ||= sum(a('q182','q191')); end
1899
+ def r192; "REFERENCED - All costs"; end
1900
+ def c194; "Excluding international bunkers"; end
1901
+ def f194; @f194 ||= f192-f189; end
1902
+ def h194; @h194 ||= h192-h189; end
1903
+ def i194; @i194 ||= i192-i189; end
1904
+ def j194; @j194 ||= j192-j189; end
1905
+ def k194; @k194 ||= k192-k189; end
1906
+ def l194; @l194 ||= l192-l189; end
1907
+ def m194; @m194 ||= m192-m189; end
1908
+ def n194; @n194 ||= n192-n189; end
1909
+ def o194; @o194 ||= o192-o189; end
1910
+ def p194; @p194 ||= p192-p189; end
1911
+ def q194; @q194 ||= q192-q189; end
1912
+ def r194; "REFERENCED - All costs"; end
1913
+ def c197; "Please note: emissions by sector need to account for bio-energy, which is accounted for seperately (in V). "; end
1914
+ def c198; "Cumulative emissions are estimates based on a linear trajectory between the 5 year time periods"; end
1915
+ def c201; "Targets"; end
1916
+ def h201; "2050 target"; end
1917
+ def i201; "2020 target "; end
1918
+ def k201; "2050 target"; end
1919
+ def l201; "2020 target"; end
1920
+ def n201; "Actuals, as % of 2007, modelled"; end
1921
+ def f202; "Base year (1990)"; end
1922
+ def h202; "(20% of base)"; end
1923
+ def i202; "(66% of base)"; end
1924
+ def k202; "% of 2007"; end
1925
+ def l202; "% of 2007"; end
1926
+ def o202; 2020.0; end
1927
+ def p202; 2030.0; end
1928
+ def q202; 2050.0; end
1929
+ def d203; "Kyoto agreed sectors"; end
1930
+ def f203; 777.11767; end
1931
+ def h203; @h203 ||= 0.2*f203; end
1932
+ def i203; @i203 ||= 0.66*f203; end
1933
+ def d204; "International bunkers (CO2 only)"; end
1934
+ def f204; @f204 ||= (31.401/2.0+6.768); end
1935
+ def k204; @k204 ||= k205*h151; end
1936
+ def l204; @l204 ||= l205*h151; end
1937
+ def d205; "Total"; end
1938
+ def f205; @f205 ||= f203+f204; end
1939
+ def h205; @h205 ||= 0.2*f205; end
1940
+ def i205; @i205 ||= 0.66*f205; end
1941
+ def k205; @k205 ||= h205/f151; end
1942
+ def l205; @l205 ||= i205/f151; end
1943
+ def o205; @o205 ||= k151/h151; end
1944
+ def p205; @p205 ||= m151/h151; end
1945
+ def q205; @q205 ||= q151/h151; end
1946
+ def d206; "Target, for chart"; end
1947
+ def h206; 0.2; end
1948
+ def i206; 0.2; end
1949
+ def j206; 0.2; end
1950
+ def k206; 0.2; end
1951
+ def l206; 0.2; end
1952
+ def m206; 0.2; end
1953
+ def n206; 0.2; end
1954
+ def o206; 0.2; end
1955
+ def p206; 0.2; end
1956
+ def q206; 0.2; end
1957
+ def d207; "Dummy, for chart"; end
1958
+ def h207; 0.0; end
1959
+ def i207; 0.0; end
1960
+ def j207; 0.0; end
1961
+ def k207; 0.0; end
1962
+ def l207; 0.0; end
1963
+ def m207; 0.0; end
1964
+ def n207; 0.0; end
1965
+ def o207; 0.0; end
1966
+ def p207; 0.0; end
1967
+ def q207; 0.0; end
1968
+ def b210; "Bio-energy - Production and Use"; end
1969
+ def b212; "Production"; end
1970
+ def c214; "Domestic"; end
1971
+ def h214; "2007"; end
1972
+ def i214; "2010"; end
1973
+ def j214; "2015"; end
1974
+ def k214; "2020"; end
1975
+ def l214; "2025"; end
1976
+ def m214; "2030"; end
1977
+ def n214; "2035"; end
1978
+ def o214; "2040"; end
1979
+ def p214; "2045"; end
1980
+ def q214; "2050"; end
1981
+ def c215; "V.a"; end
1982
+ def d215; "V.03"; end
1983
+ def e215; "Solid hydrocarbons"; end
1984
+ def h215; @h215 ||= iferror(index(:ref,match(d215,:ref,0.0)),"na"); end
1985
+ def i215; @i215 ||= iferror(index(:ref,match(d215,:ref,0.0)),"na"); end
1986
+ def j215; @j215 ||= iferror(index(:ref,match(d215,:ref,0.0)),"na"); end
1987
+ def k215; @k215 ||= iferror(index(:ref,match(d215,:ref,0.0)),"na"); end
1988
+ def l215; @l215 ||= iferror(index(:ref,match(d215,:ref,0.0)),"na"); end
1989
+ def m215; @m215 ||= iferror(index(:ref,match(d215,:ref,0.0)),"na"); end
1990
+ def n215; @n215 ||= iferror(index(:ref,match(d215,:ref,0.0)),"na"); end
1991
+ def o215; @o215 ||= iferror(index(:ref,match(d215,:ref,0.0)),"na"); end
1992
+ def p215; @p215 ||= iferror(index(:ref,match(d215,:ref,0.0)),"na"); end
1993
+ def q215; @q215 ||= iferror(index(:ref,match(d215,:ref,0.0)),"na"); end
1994
+ def c216; "V.a"; end
1995
+ def d216; "V.04"; end
1996
+ def e216; "Liquid hydrocarbons"; end
1997
+ def h216; @h216 ||= iferror(index(:ref,match(d216,:ref,0.0)),"na"); end
1998
+ def i216; @i216 ||= iferror(index(:ref,match(d216,:ref,0.0)),"na"); end
1999
+ def j216; @j216 ||= iferror(index(:ref,match(d216,:ref,0.0)),"na"); end
2000
+ def k216; @k216 ||= iferror(index(:ref,match(d216,:ref,0.0)),"na"); end
2001
+ def l216; @l216 ||= iferror(index(:ref,match(d216,:ref,0.0)),"na"); end
2002
+ def m216; @m216 ||= iferror(index(:ref,match(d216,:ref,0.0)),"na"); end
2003
+ def n216; @n216 ||= iferror(index(:ref,match(d216,:ref,0.0)),"na"); end
2004
+ def o216; @o216 ||= iferror(index(:ref,match(d216,:ref,0.0)),"na"); end
2005
+ def p216; @p216 ||= iferror(index(:ref,match(d216,:ref,0.0)),"na"); end
2006
+ def q216; @q216 ||= iferror(index(:ref,match(d216,:ref,0.0)),"na"); end
2007
+ def c217; "V.a"; end
2008
+ def d217; "V.05"; end
2009
+ def e217; "Gaseous hydrocarbons"; end
2010
+ def h217; @h217 ||= iferror(index(:ref,match(d217,:ref,0.0)),"na"); end
2011
+ def i217; @i217 ||= iferror(index(:ref,match(d217,:ref,0.0)),"na"); end
2012
+ def j217; @j217 ||= iferror(index(:ref,match(d217,:ref,0.0)),"na"); end
2013
+ def k217; @k217 ||= iferror(index(:ref,match(d217,:ref,0.0)),"na"); end
2014
+ def l217; @l217 ||= iferror(index(:ref,match(d217,:ref,0.0)),"na"); end
2015
+ def m217; @m217 ||= iferror(index(:ref,match(d217,:ref,0.0)),"na"); end
2016
+ def n217; @n217 ||= iferror(index(:ref,match(d217,:ref,0.0)),"na"); end
2017
+ def o217; @o217 ||= iferror(index(:ref,match(d217,:ref,0.0)),"na"); end
2018
+ def p217; @p217 ||= iferror(index(:ref,match(d217,:ref,0.0)),"na"); end
2019
+ def q217; @q217 ||= iferror(index(:ref,match(d217,:ref,0.0)),"na"); end
2020
+ def c219; "Imports"; end
2021
+ def c220; "V.b"; end
2022
+ def d220; "V.03"; end
2023
+ def e220; "Solid hydrocarbons"; end
2024
+ def h220; @h220 ||= iferror(index(:ref,match(d220,:ref,0.0)),"na"); end
2025
+ def i220; @i220 ||= iferror(index(:ref,match(d220,:ref,0.0)),"na"); end
2026
+ def j220; @j220 ||= iferror(index(:ref,match(d220,:ref,0.0)),"na"); end
2027
+ def k220; @k220 ||= iferror(index(:ref,match(d220,:ref,0.0)),"na"); end
2028
+ def l220; @l220 ||= iferror(index(:ref,match(d220,:ref,0.0)),"na"); end
2029
+ def m220; @m220 ||= iferror(index(:ref,match(d220,:ref,0.0)),"na"); end
2030
+ def n220; @n220 ||= iferror(index(:ref,match(d220,:ref,0.0)),"na"); end
2031
+ def o220; @o220 ||= iferror(index(:ref,match(d220,:ref,0.0)),"na"); end
2032
+ def p220; @p220 ||= iferror(index(:ref,match(d220,:ref,0.0)),"na"); end
2033
+ def q220; @q220 ||= iferror(index(:ref,match(d220,:ref,0.0)),"na"); end
2034
+ def c221; "V.b"; end
2035
+ def d221; "V.04"; end
2036
+ def e221; "Liquid hydrocarbons"; end
2037
+ def h221; @h221 ||= iferror(index(:ref,match(d221,:ref,0.0)),"na"); end
2038
+ def i221; @i221 ||= iferror(index(:ref,match(d221,:ref,0.0)),"na"); end
2039
+ def j221; @j221 ||= iferror(index(:ref,match(d221,:ref,0.0)),"na"); end
2040
+ def k221; @k221 ||= iferror(index(:ref,match(d221,:ref,0.0)),"na"); end
2041
+ def l221; @l221 ||= iferror(index(:ref,match(d221,:ref,0.0)),"na"); end
2042
+ def m221; @m221 ||= iferror(index(:ref,match(d221,:ref,0.0)),"na"); end
2043
+ def n221; @n221 ||= iferror(index(:ref,match(d221,:ref,0.0)),"na"); end
2044
+ def o221; @o221 ||= iferror(index(:ref,match(d221,:ref,0.0)),"na"); end
2045
+ def p221; @p221 ||= iferror(index(:ref,match(d221,:ref,0.0)),"na"); end
2046
+ def q221; @q221 ||= iferror(index(:ref,match(d221,:ref,0.0)),"na"); end
2047
+ def c222; "V.b"; end
2048
+ def d222; "V.05"; end
2049
+ def e222; "Gaseous hydrocarbons"; end
2050
+ def h222; @h222 ||= iferror(index(:ref,match(d222,:ref,0.0)),"na"); end
2051
+ def i222; @i222 ||= iferror(index(:ref,match(d222,:ref,0.0)),"na"); end
2052
+ def j222; @j222 ||= iferror(index(:ref,match(d222,:ref,0.0)),"na"); end
2053
+ def k222; @k222 ||= iferror(index(:ref,match(d222,:ref,0.0)),"na"); end
2054
+ def l222; @l222 ||= iferror(index(:ref,match(d222,:ref,0.0)),"na"); end
2055
+ def m222; @m222 ||= iferror(index(:ref,match(d222,:ref,0.0)),"na"); end
2056
+ def n222; @n222 ||= iferror(index(:ref,match(d222,:ref,0.0)),"na"); end
2057
+ def o222; @o222 ||= iferror(index(:ref,match(d222,:ref,0.0)),"na"); end
2058
+ def p222; @p222 ||= iferror(index(:ref,match(d222,:ref,0.0)),"na"); end
2059
+ def q222; @q222 ||= iferror(index(:ref,match(d222,:ref,0.0)),"na"); end
2060
+ def c224; "Total"; end
2061
+ def c225; "V.b"; end
2062
+ def d225; "V.03"; end
2063
+ def e225; "Solid hydrocarbons"; end
2064
+ def h225; @h225 ||= h215+h220; end
2065
+ def i225; @i225 ||= i215+i220; end
2066
+ def j225; @j225 ||= j215+j220; end
2067
+ def k225; @k225 ||= k215+k220; end
2068
+ def l225; @l225 ||= l215+l220; end
2069
+ def m225; @m225 ||= m215+m220; end
2070
+ def n225; @n225 ||= n215+n220; end
2071
+ def o225; @o225 ||= o215+o220; end
2072
+ def p225; @p225 ||= p215+p220; end
2073
+ def q225; @q225 ||= q215+q220; end
2074
+ def c226; "V.b"; end
2075
+ def d226; "V.04"; end
2076
+ def e226; "Liquid hydrocarbons"; end
2077
+ def h226; @h226 ||= h216+h221; end
2078
+ def i226; @i226 ||= i216+i221; end
2079
+ def j226; @j226 ||= j216+j221; end
2080
+ def k226; @k226 ||= k216+k221; end
2081
+ def l226; @l226 ||= l216+l221; end
2082
+ def m226; @m226 ||= m216+m221; end
2083
+ def n226; @n226 ||= n216+n221; end
2084
+ def o226; @o226 ||= o216+o221; end
2085
+ def p226; @p226 ||= p216+p221; end
2086
+ def q226; @q226 ||= q216+q221; end
2087
+ def c227; "V.b"; end
2088
+ def d227; "V.05"; end
2089
+ def e227; "Gaseous hydrocarbons"; end
2090
+ def h227; @h227 ||= h217+h222; end
2091
+ def i227; @i227 ||= i217+i222; end
2092
+ def j227; @j227 ||= j217+j222; end
2093
+ def k227; @k227 ||= k217+k222; end
2094
+ def l227; @l227 ||= l217+l222; end
2095
+ def m227; @m227 ||= m217+m222; end
2096
+ def n227; @n227 ||= n217+n222; end
2097
+ def o227; @o227 ||= o217+o222; end
2098
+ def p227; @p227 ||= p217+p222; end
2099
+ def q227; @q227 ||= q217+q222; end
2100
+ def b229; "Hydro-carbon use by sector and Bio-energy share"; end
2101
+ def h229; "Please note: Bio-energy is not assigned to sectors but is assumed to replace fossil fuels up to maximum demand"; end
2102
+ def c231; "Solid Hydrocarbon consumption"; end
2103
+ def h231; @h231 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.03",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.03",:ref,0.0))); end
2104
+ def i231; @i231 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.03",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.03",:ref,0.0))); end
2105
+ def j231; @j231 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.03",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.03",:ref,0.0))); end
2106
+ def k231; @k231 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.03",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.03",:ref,0.0))); end
2107
+ def l231; @l231 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.03",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.03",:ref,0.0))); end
2108
+ def m231; @m231 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.03",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.03",:ref,0.0))); end
2109
+ def n231; @n231 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.03",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.03",:ref,0.0))); end
2110
+ def o231; @o231 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.03",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.03",:ref,0.0))); end
2111
+ def p231; @p231 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.03",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.03",:ref,0.0))); end
2112
+ def q231; @q231 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.03",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.03",:ref,0.0))); end
2113
+ def c232; "V"; end
2114
+ def d232; "Share of solid biomass to total solid hydrocarbon consumption"; end
2115
+ def h232; @h232 ||= index(:ref,match(c232,:ref,0.0),match("V.03",:ref,0.0))/h231; end
2116
+ def i232; @i232 ||= index(:ref,match(c232,:ref,0.0),match("V.03",:ref,0.0))/i231; end
2117
+ def j232; @j232 ||= index(:ref,match(c232,:ref,0.0),match("V.03",:ref,0.0))/j231; end
2118
+ def k232; @k232 ||= index(:ref,match(c232,:ref,0.0),match("V.03",:ref,0.0))/k231; end
2119
+ def l232; @l232 ||= index(:ref,match(c232,:ref,0.0),match("V.03",:ref,0.0))/l231; end
2120
+ def m232; @m232 ||= index(:ref,match(c232,:ref,0.0),match("V.03",:ref,0.0))/m231; end
2121
+ def n232; @n232 ||= index(:ref,match(c232,:ref,0.0),match("V.03",:ref,0.0))/n231; end
2122
+ def o232; @o232 ||= index(:ref,match(c232,:ref,0.0),match("V.03",:ref,0.0))/o231; end
2123
+ def p232; @p232 ||= index(:ref,match(c232,:ref,0.0),match("V.03",:ref,0.0))/p231; end
2124
+ def q232; @q232 ||= index(:ref,match(c232,:ref,0.0),match("V.03",:ref,0.0))/q231; end
2125
+ def c233; "I.b"; end
2126
+ def d233; @d233 ||= index(:name,match(c233,:name,0.0)); end
2127
+ def h233; @h233 ||= -index(:ref,match(c233,:ref,0.0),match("V.03",:ref,0.0)); end
2128
+ def i233; @i233 ||= -index(:ref,match(c233,:ref,0.0),match("V.03",:ref,0.0)); end
2129
+ def j233; @j233 ||= -index(:ref,match(c233,:ref,0.0),match("V.03",:ref,0.0)); end
2130
+ def k233; @k233 ||= -index(:ref,match(c233,:ref,0.0),match("V.03",:ref,0.0)); end
2131
+ def l233; @l233 ||= -index(:ref,match(c233,:ref,0.0),match("V.03",:ref,0.0)); end
2132
+ def m233; @m233 ||= -index(:ref,match(c233,:ref,0.0),match("V.03",:ref,0.0)); end
2133
+ def n233; @n233 ||= -index(:ref,match(c233,:ref,0.0),match("V.03",:ref,0.0)); end
2134
+ def o233; @o233 ||= -index(:ref,match(c233,:ref,0.0),match("V.03",:ref,0.0)); end
2135
+ def p233; @p233 ||= -index(:ref,match(c233,:ref,0.0),match("V.03",:ref,0.0)); end
2136
+ def q233; @q233 ||= -index(:ref,match(c233,:ref,0.0),match("V.03",:ref,0.0)); end
2137
+ def c234; "I.a"; end
2138
+ def d234; @d234 ||= index(:name,match(c234,:name,0.0)); end
2139
+ def h234; @h234 ||= -index(:ref,match(c234,:ref,0.0),match("V.03",:ref,0.0)); end
2140
+ def i234; @i234 ||= -index(:ref,match(c234,:ref,0.0),match("V.03",:ref,0.0)); end
2141
+ def j234; @j234 ||= -index(:ref,match(c234,:ref,0.0),match("V.03",:ref,0.0)); end
2142
+ def k234; @k234 ||= -index(:ref,match(c234,:ref,0.0),match("V.03",:ref,0.0)); end
2143
+ def l234; @l234 ||= -index(:ref,match(c234,:ref,0.0),match("V.03",:ref,0.0)); end
2144
+ def m234; @m234 ||= -index(:ref,match(c234,:ref,0.0),match("V.03",:ref,0.0)); end
2145
+ def n234; @n234 ||= -index(:ref,match(c234,:ref,0.0),match("V.03",:ref,0.0)); end
2146
+ def o234; @o234 ||= -index(:ref,match(c234,:ref,0.0),match("V.03",:ref,0.0)); end
2147
+ def p234; @p234 ||= -index(:ref,match(c234,:ref,0.0),match("V.03",:ref,0.0)); end
2148
+ def q234; @q234 ||= -index(:ref,match(c234,:ref,0.0),match("V.03",:ref,0.0)); end
2149
+ def c235; "XI"; end
2150
+ def d235; "Industry"; end
2151
+ def h235; @h235 ||= -index(:ref,match(c235,:ref,0.0),match("V.03",:ref,0.0)); end
2152
+ def i235; @i235 ||= -index(:ref,match(c235,:ref,0.0),match("V.03",:ref,0.0)); end
2153
+ def j235; @j235 ||= -index(:ref,match(c235,:ref,0.0),match("V.03",:ref,0.0)); end
2154
+ def k235; @k235 ||= -index(:ref,match(c235,:ref,0.0),match("V.03",:ref,0.0)); end
2155
+ def l235; @l235 ||= -index(:ref,match(c235,:ref,0.0),match("V.03",:ref,0.0)); end
2156
+ def m235; @m235 ||= -index(:ref,match(c235,:ref,0.0),match("V.03",:ref,0.0)); end
2157
+ def n235; @n235 ||= -index(:ref,match(c235,:ref,0.0),match("V.03",:ref,0.0)); end
2158
+ def o235; @o235 ||= -index(:ref,match(c235,:ref,0.0),match("V.03",:ref,0.0)); end
2159
+ def p235; @p235 ||= -index(:ref,match(c235,:ref,0.0),match("V.03",:ref,0.0)); end
2160
+ def q235; @q235 ||= -index(:ref,match(c235,:ref,0.0),match("V.03",:ref,0.0)); end
2161
+ def c236; "IX"; end
2162
+ def d236; "Heating"; end
2163
+ def h236; @h236 ||= -index(:ref,match(c236,:ref,0.0),match("V.03",:ref,0.0)); end
2164
+ def i236; @i236 ||= -index(:ref,match(c236,:ref,0.0),match("V.03",:ref,0.0)); end
2165
+ def j236; @j236 ||= -index(:ref,match(c236,:ref,0.0),match("V.03",:ref,0.0)); end
2166
+ def k236; @k236 ||= -index(:ref,match(c236,:ref,0.0),match("V.03",:ref,0.0)); end
2167
+ def l236; @l236 ||= -index(:ref,match(c236,:ref,0.0),match("V.03",:ref,0.0)); end
2168
+ def m236; @m236 ||= -index(:ref,match(c236,:ref,0.0),match("V.03",:ref,0.0)); end
2169
+ def n236; @n236 ||= -index(:ref,match(c236,:ref,0.0),match("V.03",:ref,0.0)); end
2170
+ def o236; @o236 ||= -index(:ref,match(c236,:ref,0.0),match("V.03",:ref,0.0)); end
2171
+ def p236; @p236 ||= -index(:ref,match(c236,:ref,0.0),match("V.03",:ref,0.0)); end
2172
+ def q236; @q236 ||= -index(:ref,match(c236,:ref,0.0),match("V.03",:ref,0.0)); end
2173
+ def c238; "Liquid Hydrocarbon consumption"; end
2174
+ def h238; @h238 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.04",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.04",:ref,0.0))); end
2175
+ def i238; @i238 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.04",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.04",:ref,0.0))); end
2176
+ def j238; @j238 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.04",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.04",:ref,0.0))); end
2177
+ def k238; @k238 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.04",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.04",:ref,0.0))); end
2178
+ def l238; @l238 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.04",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.04",:ref,0.0))); end
2179
+ def m238; @m238 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.04",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.04",:ref,0.0))); end
2180
+ def n238; @n238 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.04",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.04",:ref,0.0))); end
2181
+ def o238; @o238 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.04",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.04",:ref,0.0))); end
2182
+ def p238; @p238 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.04",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.04",:ref,0.0))); end
2183
+ def q238; @q238 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.04",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.04",:ref,0.0))); end
2184
+ def c239; "V"; end
2185
+ def d239; "Share of Bioliquids to total liquid hydrocarbon consumption"; end
2186
+ def h239; @h239 ||= index(:ref,match(c239,:ref,0.0),match("V.04",:ref,0.0))/h238; end
2187
+ def i239; @i239 ||= index(:ref,match(c239,:ref,0.0),match("V.04",:ref,0.0))/i238; end
2188
+ def j239; @j239 ||= index(:ref,match(c239,:ref,0.0),match("V.04",:ref,0.0))/j238; end
2189
+ def k239; @k239 ||= index(:ref,match(c239,:ref,0.0),match("V.04",:ref,0.0))/k238; end
2190
+ def l239; @l239 ||= index(:ref,match(c239,:ref,0.0),match("V.04",:ref,0.0))/l238; end
2191
+ def m239; @m239 ||= index(:ref,match(c239,:ref,0.0),match("V.04",:ref,0.0))/m238; end
2192
+ def n239; @n239 ||= index(:ref,match(c239,:ref,0.0),match("V.04",:ref,0.0))/n238; end
2193
+ def o239; @o239 ||= index(:ref,match(c239,:ref,0.0),match("V.04",:ref,0.0))/o238; end
2194
+ def p239; @p239 ||= index(:ref,match(c239,:ref,0.0),match("V.04",:ref,0.0))/p238; end
2195
+ def q239; @q239 ||= index(:ref,match(c239,:ref,0.0),match("V.04",:ref,0.0))/q238; end
2196
+ def c240; "XII"; end
2197
+ def d240; "Transport"; end
2198
+ def h240; @h240 ||= -index(:ref,match(c240,:ref,0.0),match("V.04",:ref,0.0)); end
2199
+ def i240; @i240 ||= -index(:ref,match(c240,:ref,0.0),match("V.04",:ref,0.0)); end
2200
+ def j240; @j240 ||= -index(:ref,match(c240,:ref,0.0),match("V.04",:ref,0.0)); end
2201
+ def k240; @k240 ||= -index(:ref,match(c240,:ref,0.0),match("V.04",:ref,0.0)); end
2202
+ def l240; @l240 ||= -index(:ref,match(c240,:ref,0.0),match("V.04",:ref,0.0)); end
2203
+ def m240; @m240 ||= -index(:ref,match(c240,:ref,0.0),match("V.04",:ref,0.0)); end
2204
+ def n240; @n240 ||= -index(:ref,match(c240,:ref,0.0),match("V.04",:ref,0.0)); end
2205
+ def o240; @o240 ||= -index(:ref,match(c240,:ref,0.0),match("V.04",:ref,0.0)); end
2206
+ def p240; @p240 ||= -index(:ref,match(c240,:ref,0.0),match("V.04",:ref,0.0)); end
2207
+ def q240; @q240 ||= -index(:ref,match(c240,:ref,0.0),match("V.04",:ref,0.0)); end
2208
+ def c241; "XI"; end
2209
+ def d241; "Industry"; end
2210
+ def h241; @h241 ||= -index(:ref,match(c241,:ref,0.0),match("V.04",:ref,0.0)); end
2211
+ def i241; @i241 ||= -index(:ref,match(c241,:ref,0.0),match("V.04",:ref,0.0)); end
2212
+ def j241; @j241 ||= -index(:ref,match(c241,:ref,0.0),match("V.04",:ref,0.0)); end
2213
+ def k241; @k241 ||= -index(:ref,match(c241,:ref,0.0),match("V.04",:ref,0.0)); end
2214
+ def l241; @l241 ||= -index(:ref,match(c241,:ref,0.0),match("V.04",:ref,0.0)); end
2215
+ def m241; @m241 ||= -index(:ref,match(c241,:ref,0.0),match("V.04",:ref,0.0)); end
2216
+ def n241; @n241 ||= -index(:ref,match(c241,:ref,0.0),match("V.04",:ref,0.0)); end
2217
+ def o241; @o241 ||= -index(:ref,match(c241,:ref,0.0),match("V.04",:ref,0.0)); end
2218
+ def p241; @p241 ||= -index(:ref,match(c241,:ref,0.0),match("V.04",:ref,0.0)); end
2219
+ def q241; @q241 ||= -index(:ref,match(c241,:ref,0.0),match("V.04",:ref,0.0)); end
2220
+ def c242; "XV.a"; end
2221
+ def d242; @d242 ||= index(:name,match(c242,:name,0.0)); end
2222
+ def h242; @h242 ||= -index(:ref,match(c242,:ref,0.0),match("V.04",:ref,0.0)); end
2223
+ def i242; @i242 ||= -index(:ref,match(c242,:ref,0.0),match("V.04",:ref,0.0)); end
2224
+ def j242; @j242 ||= -index(:ref,match(c242,:ref,0.0),match("V.04",:ref,0.0)); end
2225
+ def k242; @k242 ||= -index(:ref,match(c242,:ref,0.0),match("V.04",:ref,0.0)); end
2226
+ def l242; @l242 ||= -index(:ref,match(c242,:ref,0.0),match("V.04",:ref,0.0)); end
2227
+ def m242; @m242 ||= -index(:ref,match(c242,:ref,0.0),match("V.04",:ref,0.0)); end
2228
+ def n242; @n242 ||= -index(:ref,match(c242,:ref,0.0),match("V.04",:ref,0.0)); end
2229
+ def o242; @o242 ||= -index(:ref,match(c242,:ref,0.0),match("V.04",:ref,0.0)); end
2230
+ def p242; @p242 ||= -index(:ref,match(c242,:ref,0.0),match("V.04",:ref,0.0)); end
2231
+ def q242; @q242 ||= -index(:ref,match(c242,:ref,0.0),match("V.04",:ref,0.0)); end
2232
+ def c244; "Gaseous Hydrocarbon consumption"; end
2233
+ def h244; @h244 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.05",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.05",:ref,0.0))); end
2234
+ def i244; @i244 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.05",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.05",:ref,0.0))); end
2235
+ def j244; @j244 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.05",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.05",:ref,0.0))); end
2236
+ def k244; @k244 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.05",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.05",:ref,0.0))); end
2237
+ def l244; @l244 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.05",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.05",:ref,0.0))); end
2238
+ def m244; @m244 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.05",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.05",:ref,0.0))); end
2239
+ def n244; @n244 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.05",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.05",:ref,0.0))); end
2240
+ def o244; @o244 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.05",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.05",:ref,0.0))); end
2241
+ def p244; @p244 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.05",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.05",:ref,0.0))); end
2242
+ def q244; @q244 ||= -(index(:ref,match("Subtotal.Supply",:ref,0.0),match("V.05",:ref,0.0))+index(:ref,match("Subtotal.Consumption",:ref,0.0),match("V.05",:ref,0.0))); end
2243
+ def c245; "V"; end
2244
+ def d245; "Share of Biogas to total gaseous hydrocarbon consumption"; end
2245
+ def h245; @h245 ||= index(:ref,match(c245,:ref,0.0),match("V.05",:ref,0.0))/h244; end
2246
+ def i245; @i245 ||= index(:ref,match(c245,:ref,0.0),match("V.05",:ref,0.0))/i244; end
2247
+ def j245; @j245 ||= index(:ref,match(c245,:ref,0.0),match("V.05",:ref,0.0))/j244; end
2248
+ def k245; @k245 ||= index(:ref,match(c245,:ref,0.0),match("V.05",:ref,0.0))/k244; end
2249
+ def l245; @l245 ||= index(:ref,match(c245,:ref,0.0),match("V.05",:ref,0.0))/l244; end
2250
+ def m245; @m245 ||= index(:ref,match(c245,:ref,0.0),match("V.05",:ref,0.0))/m244; end
2251
+ def n245; @n245 ||= index(:ref,match(c245,:ref,0.0),match("V.05",:ref,0.0))/n244; end
2252
+ def o245; @o245 ||= index(:ref,match(c245,:ref,0.0),match("V.05",:ref,0.0))/o244; end
2253
+ def p245; @p245 ||= index(:ref,match(c245,:ref,0.0),match("V.05",:ref,0.0))/p244; end
2254
+ def q245; @q245 ||= index(:ref,match(c245,:ref,0.0),match("V.05",:ref,0.0))/q244; end
2255
+ def c246; "IX.a"; end
2256
+ def d246; @d246 ||= index(:name,match(c246,:name,0.0)); end
2257
+ def h246; @h246 ||= -index(:ref,match(c246,:ref,0.0),match("V.05",:ref,0.0)); end
2258
+ def i246; @i246 ||= -index(:ref,match(c246,:ref,0.0),match("V.05",:ref,0.0)); end
2259
+ def j246; @j246 ||= -index(:ref,match(c246,:ref,0.0),match("V.05",:ref,0.0)); end
2260
+ def k246; @k246 ||= -index(:ref,match(c246,:ref,0.0),match("V.05",:ref,0.0)); end
2261
+ def l246; @l246 ||= -index(:ref,match(c246,:ref,0.0),match("V.05",:ref,0.0)); end
2262
+ def m246; @m246 ||= -index(:ref,match(c246,:ref,0.0),match("V.05",:ref,0.0)); end
2263
+ def n246; @n246 ||= -index(:ref,match(c246,:ref,0.0),match("V.05",:ref,0.0)); end
2264
+ def o246; @o246 ||= -index(:ref,match(c246,:ref,0.0),match("V.05",:ref,0.0)); end
2265
+ def p246; @p246 ||= -index(:ref,match(c246,:ref,0.0),match("V.05",:ref,0.0)); end
2266
+ def q246; @q246 ||= -index(:ref,match(c246,:ref,0.0),match("V.05",:ref,0.0)); end
2267
+ def c247; "IX.c"; end
2268
+ def d247; @d247 ||= index(:name,match(c247,:name,0.0)); end
2269
+ def h247; @h247 ||= -index(:ref,match(c247,:ref,0.0),match("V.05",:ref,0.0)); end
2270
+ def i247; @i247 ||= -index(:ref,match(c247,:ref,0.0),match("V.05",:ref,0.0)); end
2271
+ def j247; @j247 ||= -index(:ref,match(c247,:ref,0.0),match("V.05",:ref,0.0)); end
2272
+ def k247; @k247 ||= -index(:ref,match(c247,:ref,0.0),match("V.05",:ref,0.0)); end
2273
+ def l247; @l247 ||= -index(:ref,match(c247,:ref,0.0),match("V.05",:ref,0.0)); end
2274
+ def m247; @m247 ||= -index(:ref,match(c247,:ref,0.0),match("V.05",:ref,0.0)); end
2275
+ def n247; @n247 ||= -index(:ref,match(c247,:ref,0.0),match("V.05",:ref,0.0)); end
2276
+ def o247; @o247 ||= -index(:ref,match(c247,:ref,0.0),match("V.05",:ref,0.0)); end
2277
+ def p247; @p247 ||= -index(:ref,match(c247,:ref,0.0),match("V.05",:ref,0.0)); end
2278
+ def q247; @q247 ||= -index(:ref,match(c247,:ref,0.0),match("V.05",:ref,0.0)); end
2279
+ def c248; "XI"; end
2280
+ def d248; "Industry"; end
2281
+ def h248; @h248 ||= -index(:ref,match(c248,:ref,0.0),match("V.05",:ref,0.0)); end
2282
+ def i248; @i248 ||= -index(:ref,match(c248,:ref,0.0),match("V.05",:ref,0.0)); end
2283
+ def j248; @j248 ||= -index(:ref,match(c248,:ref,0.0),match("V.05",:ref,0.0)); end
2284
+ def k248; @k248 ||= -index(:ref,match(c248,:ref,0.0),match("V.05",:ref,0.0)); end
2285
+ def l248; @l248 ||= -index(:ref,match(c248,:ref,0.0),match("V.05",:ref,0.0)); end
2286
+ def m248; @m248 ||= -index(:ref,match(c248,:ref,0.0),match("V.05",:ref,0.0)); end
2287
+ def n248; @n248 ||= -index(:ref,match(c248,:ref,0.0),match("V.05",:ref,0.0)); end
2288
+ def o248; @o248 ||= -index(:ref,match(c248,:ref,0.0),match("V.05",:ref,0.0)); end
2289
+ def p248; @p248 ||= -index(:ref,match(c248,:ref,0.0),match("V.05",:ref,0.0)); end
2290
+ def q248; @q248 ||= -index(:ref,match(c248,:ref,0.0),match("V.05",:ref,0.0)); end
2291
+ def c249; "I.a"; end
2292
+ def d249; @d249 ||= index(:name,match(c249,:name,0.0)); end
2293
+ def h249; @h249 ||= -index(:ref,match(c249,:ref,0.0),match("V.05",:ref,0.0)); end
2294
+ def i249; @i249 ||= -index(:ref,match(c249,:ref,0.0),match("V.05",:ref,0.0)); end
2295
+ def j249; @j249 ||= -index(:ref,match(c249,:ref,0.0),match("V.05",:ref,0.0)); end
2296
+ def k249; @k249 ||= -index(:ref,match(c249,:ref,0.0),match("V.05",:ref,0.0)); end
2297
+ def l249; @l249 ||= -index(:ref,match(c249,:ref,0.0),match("V.05",:ref,0.0)); end
2298
+ def m249; @m249 ||= -index(:ref,match(c249,:ref,0.0),match("V.05",:ref,0.0)); end
2299
+ def n249; @n249 ||= -index(:ref,match(c249,:ref,0.0),match("V.05",:ref,0.0)); end
2300
+ def o249; @o249 ||= -index(:ref,match(c249,:ref,0.0),match("V.05",:ref,0.0)); end
2301
+ def p249; @p249 ||= -index(:ref,match(c249,:ref,0.0),match("V.05",:ref,0.0)); end
2302
+ def q249; @q249 ||= -index(:ref,match(c249,:ref,0.0),match("V.05",:ref,0.0)); end
2303
+ def c250; "I.b"; end
2304
+ def d250; @d250 ||= index(:name,match(c250,:name,0.0)); end
2305
+ def h250; @h250 ||= -index(:ref,match(c250,:ref,0.0),match("V.05",:ref,0.0)); end
2306
+ def i250; @i250 ||= -index(:ref,match(c250,:ref,0.0),match("V.05",:ref,0.0)); end
2307
+ def j250; @j250 ||= -index(:ref,match(c250,:ref,0.0),match("V.05",:ref,0.0)); end
2308
+ def k250; @k250 ||= -index(:ref,match(c250,:ref,0.0),match("V.05",:ref,0.0)); end
2309
+ def l250; @l250 ||= -index(:ref,match(c250,:ref,0.0),match("V.05",:ref,0.0)); end
2310
+ def m250; @m250 ||= -index(:ref,match(c250,:ref,0.0),match("V.05",:ref,0.0)); end
2311
+ def n250; @n250 ||= -index(:ref,match(c250,:ref,0.0),match("V.05",:ref,0.0)); end
2312
+ def o250; @o250 ||= -index(:ref,match(c250,:ref,0.0),match("V.05",:ref,0.0)); end
2313
+ def p250; @p250 ||= -index(:ref,match(c250,:ref,0.0),match("V.05",:ref,0.0)); end
2314
+ def q250; @q250 ||= -index(:ref,match(c250,:ref,0.0),match("V.05",:ref,0.0)); end
2315
+ def d252; "Bio type"; end
2316
+ def e252; "Column1"; end
2317
+ def f252; "Column2"; end
2318
+ def g252; "Column3"; end
2319
+ def h252; "2007"; end
2320
+ def i252; "2010"; end
2321
+ def j252; "2015"; end
2322
+ def k252; "2020"; end
2323
+ def l252; "2025"; end
2324
+ def m252; "2030"; end
2325
+ def n252; "2035"; end
2326
+ def o252; "2040"; end
2327
+ def p252; "2045"; end
2328
+ def q252; "2050"; end
2329
+ def d253; "Solid"; end
2330
+ def h253; @h253 ||= h232; end
2331
+ def i253; @i253 ||= i232; end
2332
+ def j253; @j253 ||= j232; end
2333
+ def k253; @k253 ||= k232; end
2334
+ def l253; @l253 ||= l232; end
2335
+ def m253; @m253 ||= m232; end
2336
+ def n253; @n253 ||= n232; end
2337
+ def o253; @o253 ||= o232; end
2338
+ def p253; @p253 ||= p232; end
2339
+ def q253; @q253 ||= q232; end
2340
+ def d254; "Liquid"; end
2341
+ def h254; @h254 ||= h239; end
2342
+ def i254; @i254 ||= i239; end
2343
+ def j254; @j254 ||= j239; end
2344
+ def k254; @k254 ||= k239; end
2345
+ def l254; @l254 ||= l239; end
2346
+ def m254; @m254 ||= m239; end
2347
+ def n254; @n254 ||= n239; end
2348
+ def o254; @o254 ||= o239; end
2349
+ def p254; @p254 ||= p239; end
2350
+ def q254; @q254 ||= q239; end
2351
+ def d255; "Gas"; end
2352
+ def h255; @h255 ||= h245; end
2353
+ def i255; @i255 ||= i245; end
2354
+ def j255; @j255 ||= j245; end
2355
+ def k255; @k255 ||= k245; end
2356
+ def l255; @l255 ||= l245; end
2357
+ def m255; @m255 ||= m245; end
2358
+ def n255; @n255 ||= n245; end
2359
+ def o255; @o255 ||= o245; end
2360
+ def p255; @p255 ||= p245; end
2361
+ def q255; @q255 ||= q245; end
2362
+ def b257; "Electricity Generation Emissions"; end
2363
+ def c260; "Emissions from Electricity Generation, exlcuding CHP"; end
2364
+ def h260; "2007"; end
2365
+ def i260; "2010"; end
2366
+ def j260; "2015"; end
2367
+ def k260; "2020"; end
2368
+ def l260; "2025"; end
2369
+ def m260; "2030"; end
2370
+ def n260; "2035"; end
2371
+ def o260; "2040"; end
2372
+ def p260; "2045"; end
2373
+ def q260; "2050"; end
2374
+ def c261; "Power Generation"; end
2375
+ def h261; @h261 ||= h158-h262; end
2376
+ def i261; @i261 ||= i158-i262; end
2377
+ def j261; @j261 ||= j158-j262; end
2378
+ def k261; @k261 ||= k158-k262; end
2379
+ def l261; @l261 ||= l158-l262; end
2380
+ def m261; @m261 ||= m158-m262; end
2381
+ def n261; @n261 ||= n158-n262; end
2382
+ def o261; @o261 ||= o158-o262; end
2383
+ def p261; @p261 ||= p158-p262; end
2384
+ def q261; @q261 ||= q158-q262; end
2385
+ def c262; "CCS in Power"; end
2386
+ def h262; @h262 ||= :name; end
2387
+ def i262; @i262 ||= :name; end
2388
+ def j262; @j262 ||= :name; end
2389
+ def k262; @k262 ||= :name; end
2390
+ def l262; @l262 ||= :name; end
2391
+ def m262; @m262 ||= :name; end
2392
+ def n262; @n262 ||= :name; end
2393
+ def o262; @o262 ||= :name; end
2394
+ def p262; @p262 ||= :name; end
2395
+ def q262; @q262 ||= :name; end
2396
+ def c263; "Bioenergy in Gas Power"; end
2397
+ def h263; @h263 ||= -h245*h249*index(:name,match("V.05",:name,0.0)); end
2398
+ def i263; @i263 ||= -i245*i249*index(:name,match("V.05",:name,0.0)); end
2399
+ def j263; @j263 ||= -j245*j249*index(:name,match("V.05",:name,0.0)); end
2400
+ def k263; @k263 ||= -k245*k249*index(:name,match("V.05",:name,0.0)); end
2401
+ def l263; @l263 ||= -l245*l249*index(:name,match("V.05",:name,0.0)); end
2402
+ def m263; @m263 ||= -m245*m249*index(:name,match("V.05",:name,0.0)); end
2403
+ def n263; @n263 ||= -n245*n249*index(:name,match("V.05",:name,0.0)); end
2404
+ def o263; @o263 ||= -o245*o249*index(:name,match("V.05",:name,0.0)); end
2405
+ def p263; @p263 ||= -p245*p249*index(:name,match("V.05",:name,0.0)); end
2406
+ def q263; @q263 ||= -q245*q249*index(:name,match("V.05",:name,0.0)); end
2407
+ def c264; "Bioenergy in Solid BM Power"; end
2408
+ def h264; @h264 ||= -h232*h234*index(:name,match("V.03",:name,0.0)); end
2409
+ def i264; @i264 ||= -i232*i234*index(:name,match("V.03",:name,0.0)); end
2410
+ def j264; @j264 ||= -j232*j234*index(:name,match("V.03",:name,0.0)); end
2411
+ def k264; @k264 ||= -k232*k234*index(:name,match("V.03",:name,0.0)); end
2412
+ def l264; @l264 ||= -l232*l234*index(:name,match("V.03",:name,0.0)); end
2413
+ def m264; @m264 ||= -m232*m234*index(:name,match("V.03",:name,0.0)); end
2414
+ def n264; @n264 ||= -n232*n234*index(:name,match("V.03",:name,0.0)); end
2415
+ def o264; @o264 ||= -o232*o234*index(:name,match("V.03",:name,0.0)); end
2416
+ def p264; @p264 ||= -p232*p234*index(:name,match("V.03",:name,0.0)); end
2417
+ def q264; @q264 ||= -q232*q234*index(:name,match("V.03",:name,0.0)); end
2418
+ def c265; "Bioenergy in Solid HC CCS Power"; end
2419
+ def h265; @h265 ||= -h232*h233*index(:name,match("V.03",:name,0.0)); end
2420
+ def i265; @i265 ||= -i232*i233*index(:name,match("V.03",:name,0.0)); end
2421
+ def j265; @j265 ||= -j232*j233*index(:name,match("V.03",:name,0.0)); end
2422
+ def k265; @k265 ||= -k232*k233*index(:name,match("V.03",:name,0.0)); end
2423
+ def l265; @l265 ||= -l232*l233*index(:name,match("V.03",:name,0.0)); end
2424
+ def m265; @m265 ||= -m232*m233*index(:name,match("V.03",:name,0.0)); end
2425
+ def n265; @n265 ||= -n232*n233*index(:name,match("V.03",:name,0.0)); end
2426
+ def o265; @o265 ||= -o232*o233*index(:name,match("V.03",:name,0.0)); end
2427
+ def p265; @p265 ||= -p232*p233*index(:name,match("V.03",:name,0.0)); end
2428
+ def q265; @q265 ||= -q232*q233*index(:name,match("V.03",:name,0.0)); end
2429
+ def c266; "Bioenergy in Gas CCS Power"; end
2430
+ def h266; @h266 ||= -h245*h250*index(:name,match("V.05",:name,0.0)); end
2431
+ def i266; @i266 ||= -i245*i250*index(:name,match("V.05",:name,0.0)); end
2432
+ def j266; @j266 ||= -j245*j250*index(:name,match("V.05",:name,0.0)); end
2433
+ def k266; @k266 ||= -k245*k250*index(:name,match("V.05",:name,0.0)); end
2434
+ def l266; @l266 ||= -l245*l250*index(:name,match("V.05",:name,0.0)); end
2435
+ def m266; @m266 ||= -m245*m250*index(:name,match("V.05",:name,0.0)); end
2436
+ def n266; @n266 ||= -n245*n250*index(:name,match("V.05",:name,0.0)); end
2437
+ def o266; @o266 ||= -o245*o250*index(:name,match("V.05",:name,0.0)); end
2438
+ def p266; @p266 ||= -p245*p250*index(:name,match("V.05",:name,0.0)); end
2439
+ def q266; @q266 ||= -q245*q250*index(:name,match("V.05",:name,0.0)); end
2440
+ def c267; "Total Emissions from Power"; end
2441
+ def h267; @h267 ||= sum(a('h261','h266')); end
2442
+ def i267; @i267 ||= sum(a('i261','i266')); end
2443
+ def j267; @j267 ||= sum(a('j261','j266')); end
2444
+ def k267; @k267 ||= sum(a('k261','k266')); end
2445
+ def l267; @l267 ||= sum(a('l261','l266')); end
2446
+ def m267; @m267 ||= sum(a('m261','m266')); end
2447
+ def n267; @n267 ||= sum(a('n261','n266')); end
2448
+ def o267; @o267 ||= sum(a('o261','o266')); end
2449
+ def p267; @p267 ||= sum(a('p261','p266')); end
2450
+ def q267; @q267 ||= sum(a('q261','q266')); end
2451
+ def c269; "Emissions reclassified"; end
2452
+ def h269; "2007"; end
2453
+ def i269; "2010"; end
2454
+ def j269; "2015"; end
2455
+ def k269; "2020"; end
2456
+ def l269; "2025"; end
2457
+ def m269; "2030"; end
2458
+ def n269; "2035"; end
2459
+ def o269; "2040"; end
2460
+ def p269; "2045"; end
2461
+ def q269; "2050"; end
2462
+ def c270; 1.0; end
2463
+ def d270; "Fuel Combustion"; end
2464
+ def h270; @h270 ||= h261; end
2465
+ def i270; @i270 ||= i261; end
2466
+ def j270; @j270 ||= j261; end
2467
+ def k270; @k270 ||= k261; end
2468
+ def l270; @l270 ||= l261; end
2469
+ def m270; @m270 ||= m261; end
2470
+ def n270; @n270 ||= n261; end
2471
+ def o270; @o270 ||= o261; end
2472
+ def p270; @p270 ||= p261; end
2473
+ def q270; @q270 ||= q261; end
2474
+ def c271; "X2"; end
2475
+ def d271; "Bioenergy credit"; end
2476
+ def h271; @h271 ||= sum(a('h263','h266')); end
2477
+ def i271; @i271 ||= sum(a('i263','i266')); end
2478
+ def j271; @j271 ||= sum(a('j263','j266')); end
2479
+ def k271; @k271 ||= sum(a('k263','k266')); end
2480
+ def l271; @l271 ||= sum(a('l263','l266')); end
2481
+ def m271; @m271 ||= sum(a('m263','m266')); end
2482
+ def n271; @n271 ||= sum(a('n263','n266')); end
2483
+ def o271; @o271 ||= sum(a('o263','o266')); end
2484
+ def p271; @p271 ||= sum(a('p263','p266')); end
2485
+ def q271; @q271 ||= sum(a('q263','q266')); end
2486
+ def c272; "X3"; end
2487
+ def d272; "Carbon capture"; end
2488
+ def h272; @h272 ||= h262; end
2489
+ def i272; @i272 ||= i262; end
2490
+ def j272; @j272 ||= j262; end
2491
+ def k272; @k272 ||= k262; end
2492
+ def l272; @l272 ||= l262; end
2493
+ def m272; @m272 ||= m262; end
2494
+ def n272; @n272 ||= n262; end
2495
+ def o272; @o272 ||= o262; end
2496
+ def p272; @p272 ||= p262; end
2497
+ def q272; @q272 ||= q262; end
2498
+ def d273; "Total"; end
2499
+ def h273; @h273 ||= h267; end
2500
+ def i273; @i273 ||= i267; end
2501
+ def j273; @j273 ||= j267; end
2502
+ def k273; @k273 ||= k267; end
2503
+ def l273; @l273 ||= l267; end
2504
+ def m273; @m273 ||= m267; end
2505
+ def n273; @n273 ||= n267; end
2506
+ def o273; @o273 ||= o267; end
2507
+ def p273; @p273 ||= p267; end
2508
+ def q273; @q273 ||= q267; end
2509
+ def c275; "Emissions intensity"; end
2510
+ def e275; "MtCO2e/TWh"; end
2511
+ def h275; @h275 ||= h267/h111; end
2512
+ def i275; @i275 ||= i267/i111; end
2513
+ def j275; @j275 ||= j267/j111; end
2514
+ def k275; @k275 ||= k267/k111; end
2515
+ def l275; @l275 ||= l267/l111; end
2516
+ def m275; @m275 ||= m267/m111; end
2517
+ def n275; @n275 ||= n267/n111; end
2518
+ def o275; @o275 ||= o267/o111; end
2519
+ def p275; @p275 ||= p267/p111; end
2520
+ def q275; @q275 ||= q267/q111; end
2521
+ def e276; "gCO2e/KWh"; end
2522
+ def h276; @h276 ||= h275*1000.0; end
2523
+ def i276; @i276 ||= i275*1000.0; end
2524
+ def j276; @j276 ||= j275*1000.0; end
2525
+ def k276; @k276 ||= k275*1000.0; end
2526
+ def l276; @l276 ||= l275*1000.0; end
2527
+ def m276; @m276 ||= m275*1000.0; end
2528
+ def n276; @n276 ||= n275*1000.0; end
2529
+ def o276; @o276 ||= o275*1000.0; end
2530
+ def p276; @p276 ||= p275*1000.0; end
2531
+ def q276; @q276 ||= q275*1000.0; end
2532
+ def c278; "Note: Emissions from CHP are excluded, while emissions from district heating are included."; end
2533
+ def b281; "Primary supply, format for web-based interface"; end
2534
+ def c283; @c283 ||= c23; end
2535
+ def d283; @d283 ||= d23; end
2536
+ def e283; @e283 ||= e23; end
2537
+ def f283; @f283 ||= f23; end
2538
+ def g283; @g283 ||= g23; end
2539
+ def h283; @h283 ||= h23; end
2540
+ def i283; @i283 ||= i23; end
2541
+ def j283; @j283 ||= j23; end
2542
+ def k283; @k283 ||= k23; end
2543
+ def l283; @l283 ||= l23; end
2544
+ def m283; @m283 ||= m23; end
2545
+ def n283; @n283 ||= n23; end
2546
+ def o283; @o283 ||= o23; end
2547
+ def p283; @p283 ||= p23; end
2548
+ def q283; @q283 ||= q23; end
2549
+ def c284; @c284 ||= c24; end
2550
+ def d284; @d284 ||= d24; end
2551
+ def e284; @e284 ||= e24; end
2552
+ def f284; @f284 ||= f24; end
2553
+ def g284; @g284 ||= g24; end
2554
+ def h284; @h284 ||= h24; end
2555
+ def i284; @i284 ||= i24; end
2556
+ def j284; @j284 ||= j24; end
2557
+ def k284; @k284 ||= k24; end
2558
+ def l284; @l284 ||= l24; end
2559
+ def m284; @m284 ||= m24; end
2560
+ def n284; @n284 ||= n24; end
2561
+ def o284; @o284 ||= o24; end
2562
+ def p284; @p284 ||= p24; end
2563
+ def q284; @q284 ||= q24; end
2564
+ def c285; @c285 ||= c25; end
2565
+ def d285; @d285 ||= d25; end
2566
+ def e285; @e285 ||= e25; end
2567
+ def f285; @f285 ||= f25; end
2568
+ def g285; @g285 ||= g25; end
2569
+ def h285; @h285 ||= h25; end
2570
+ def i285; @i285 ||= i25; end
2571
+ def j285; @j285 ||= j25; end
2572
+ def k285; @k285 ||= k25; end
2573
+ def l285; @l285 ||= l25; end
2574
+ def m285; @m285 ||= m25; end
2575
+ def n285; @n285 ||= n25; end
2576
+ def o285; @o285 ||= o25; end
2577
+ def p285; @p285 ||= p25; end
2578
+ def q285; @q285 ||= q25; end
2579
+ def c286; @c286 ||= c26; end
2580
+ def d286; @d286 ||= d26; end
2581
+ def e286; @e286 ||= e26; end
2582
+ def f286; @f286 ||= f26; end
2583
+ def g286; @g286 ||= g26; end
2584
+ def h286; @h286 ||= h26; end
2585
+ def i286; @i286 ||= i26; end
2586
+ def j286; @j286 ||= j26; end
2587
+ def k286; @k286 ||= k26; end
2588
+ def l286; @l286 ||= l26; end
2589
+ def m286; @m286 ||= m26; end
2590
+ def n286; @n286 ||= n26; end
2591
+ def o286; @o286 ||= o26; end
2592
+ def p286; @p286 ||= p26; end
2593
+ def q286; @q286 ||= q26; end
2594
+ def c287; @c287 ||= c27; end
2595
+ def d287; @d287 ||= d27; end
2596
+ def e287; @e287 ||= e27; end
2597
+ def f287; @f287 ||= f27; end
2598
+ def g287; @g287 ||= g27; end
2599
+ def h287; @h287 ||= h27; end
2600
+ def i287; @i287 ||= i27; end
2601
+ def j287; @j287 ||= j27; end
2602
+ def k287; @k287 ||= k27; end
2603
+ def l287; @l287 ||= l27; end
2604
+ def m287; @m287 ||= m27; end
2605
+ def n287; @n287 ||= n27; end
2606
+ def o287; @o287 ||= o27; end
2607
+ def p287; @p287 ||= p27; end
2608
+ def q287; @q287 ||= q27; end
2609
+ def c288; @c288 ||= c28; end
2610
+ def d288; @d288 ||= d28; end
2611
+ def e288; @e288 ||= e28; end
2612
+ def f288; @f288 ||= f28; end
2613
+ def g288; @g288 ||= g28; end
2614
+ def h288; @h288 ||= h28; end
2615
+ def i288; @i288 ||= i28; end
2616
+ def j288; @j288 ||= j28; end
2617
+ def k288; @k288 ||= k28; end
2618
+ def l288; @l288 ||= l28; end
2619
+ def m288; @m288 ||= m28; end
2620
+ def n288; @n288 ||= n28; end
2621
+ def o288; @o288 ||= o28; end
2622
+ def p288; @p288 ||= p28; end
2623
+ def q288; @q288 ||= q28; end
2624
+ def c289; @c289 ||= c29; end
2625
+ def d289; @d289 ||= d29; end
2626
+ def e289; @e289 ||= e29; end
2627
+ def f289; @f289 ||= f29; end
2628
+ def g289; @g289 ||= g29; end
2629
+ def h289; @h289 ||= h29; end
2630
+ def i289; @i289 ||= i29; end
2631
+ def j289; @j289 ||= j29; end
2632
+ def k289; @k289 ||= k29; end
2633
+ def l289; @l289 ||= l29; end
2634
+ def m289; @m289 ||= m29; end
2635
+ def n289; @n289 ||= n29; end
2636
+ def o289; @o289 ||= o29; end
2637
+ def p289; @p289 ||= p29; end
2638
+ def q289; @q289 ||= q29; end
2639
+ def c290; @c290 ||= c30; end
2640
+ def d290; @d290 ||= d30; end
2641
+ def e290; @e290 ||= e30; end
2642
+ def f290; @f290 ||= max(f30,0.0); end
2643
+ def g290; @g290 ||= max(g30,0.0); end
2644
+ def h290; @h290 ||= max(h30,0.0); end
2645
+ def i290; @i290 ||= max(i30,0.0); end
2646
+ def j290; @j290 ||= max(j30,0.0); end
2647
+ def k290; @k290 ||= max(k30,0.0); end
2648
+ def l290; @l290 ||= max(l30,0.0); end
2649
+ def m290; @m290 ||= max(m30,0.0); end
2650
+ def n290; @n290 ||= max(n30,0.0); end
2651
+ def o290; @o290 ||= max(o30,0.0); end
2652
+ def p290; @p290 ||= max(p30,0.0); end
2653
+ def q290; @q290 ||= max(q30,0.0); end
2654
+ def c291; @c291 ||= c32; end
2655
+ def d291; @d291 ||= d32; end
2656
+ def e291; @e291 ||= e32; end
2657
+ def f291; @f291 ||= f32; end
2658
+ def g291; @g291 ||= g32; end
2659
+ def h291; @h291 ||= h32; end
2660
+ def i291; @i291 ||= i32; end
2661
+ def j291; @j291 ||= j32; end
2662
+ def k291; @k291 ||= k32; end
2663
+ def l291; @l291 ||= l32; end
2664
+ def m291; @m291 ||= m32; end
2665
+ def n291; @n291 ||= n32; end
2666
+ def o291; @o291 ||= o32; end
2667
+ def p291; @p291 ||= p32; end
2668
+ def q291; @q291 ||= q32; end
2669
+ def d292; "Bioenergy"; end
2670
+ def e292; @e292 ||= e36; end
2671
+ def f292; @f292 ||= f36; end
2672
+ def g292; @g292 ||= g36; end
2673
+ def h292; @h292 ||= h36; end
2674
+ def i292; @i292 ||= i36; end
2675
+ def j292; @j292 ||= j36; end
2676
+ def k292; @k292 ||= k36; end
2677
+ def l292; @l292 ||= l36; end
2678
+ def m292; @m292 ||= m36; end
2679
+ def n292; @n292 ||= n36; end
2680
+ def o292; @o292 ||= o36; end
2681
+ def p292; @p292 ||= p36; end
2682
+ def q292; @q292 ||= q36; end
2683
+ def d293; @d293 ||= d39; end
2684
+ def e293; @e293 ||= e39; end
2685
+ def f293; @f293 ||= max(f39,0.0); end
2686
+ def g293; @g293 ||= max(g39,0.0); end
2687
+ def h293; @h293 ||= max(h39,0.0); end
2688
+ def i293; @i293 ||= max(i39,0.0); end
2689
+ def j293; @j293 ||= max(j39,0.0); end
2690
+ def k293; @k293 ||= max(k39,0.0); end
2691
+ def l293; @l293 ||= max(l39,0.0); end
2692
+ def m293; @m293 ||= max(m39,0.0); end
2693
+ def n293; @n293 ||= max(n39,0.0); end
2694
+ def o293; @o293 ||= max(o39,0.0); end
2695
+ def p293; @p293 ||= max(p39,0.0); end
2696
+ def q293; @q293 ||= max(q39,0.0); end
2697
+ def d294; "Oil"; end
2698
+ def e294; @e294 ||= e43; end
2699
+ def f294; @f294 ||= f43; end
2700
+ def g294; @g294 ||= g43; end
2701
+ def h294; @h294 ||= h43; end
2702
+ def i294; @i294 ||= i43; end
2703
+ def j294; @j294 ||= j43; end
2704
+ def k294; @k294 ||= k43; end
2705
+ def l294; @l294 ||= l43; end
2706
+ def m294; @m294 ||= m43; end
2707
+ def n294; @n294 ||= n43; end
2708
+ def o294; @o294 ||= o43; end
2709
+ def p294; @p294 ||= p43; end
2710
+ def q294; @q294 ||= q43; end
2711
+ def d295; @d295 ||= d46; end
2712
+ def e295; @e295 ||= e46; end
2713
+ def f295; @f295 ||= f46; end
2714
+ def g295; @g295 ||= g46; end
2715
+ def h295; @h295 ||= h46; end
2716
+ def i295; @i295 ||= i46; end
2717
+ def j295; @j295 ||= j46; end
2718
+ def k295; @k295 ||= k46; end
2719
+ def l295; @l295 ||= l46; end
2720
+ def m295; @m295 ||= m46; end
2721
+ def n295; @n295 ||= n46; end
2722
+ def o295; @o295 ||= o46; end
2723
+ def p295; @p295 ||= p46; end
2724
+ def q295; @q295 ||= q46; end
2725
+ def d296; @d296 ||= d47; end
2726
+ def e296; @e296 ||= e47; end
2727
+ def f296; @f296 ||= f47; end
2728
+ def g296; @g296 ||= g47; end
2729
+ def h296; @h296 ||= h47; end
2730
+ def i296; @i296 ||= i47; end
2731
+ def j296; @j296 ||= j47; end
2732
+ def k296; @k296 ||= k47; end
2733
+ def l296; @l296 ||= l47; end
2734
+ def m296; @m296 ||= m47; end
2735
+ def n296; @n296 ||= n47; end
2736
+ def o296; @o296 ||= o47; end
2737
+ def p296; @p296 ||= p47; end
2738
+ def q296; @q296 ||= q47; end
2739
+ def d297; "Imported energy"; end
2740
+ def f297; @f297 ||= max(0.0,f30)+max(0.0,f35)+max(0.0,f37)+max(0.0,f41)+max(0.0,f44)+f23; end
2741
+ def g297; @g297 ||= max(0.0,g30)+max(0.0,g35)+max(0.0,g37)+max(0.0,g41)+max(0.0,g44); end
2742
+ def h297; @h297 ||= max(0.0,h30)+max(0.0,h35)+max(0.0,h37)+max(0.0,h41)+max(0.0,h44)+h23; end
2743
+ def i297; @i297 ||= max(0.0,i30)+max(0.0,i35)+max(0.0,i37)+max(0.0,i41)+max(0.0,i44)+i23; end
2744
+ def j297; @j297 ||= max(0.0,j30)+max(0.0,j35)+max(0.0,j37)+max(0.0,j41)+max(0.0,j44)+j23; end
2745
+ def k297; @k297 ||= max(0.0,k30)+max(0.0,k35)+max(0.0,k37)+max(0.0,k41)+max(0.0,k44)+k23; end
2746
+ def l297; @l297 ||= max(0.0,l30)+max(0.0,l35)+max(0.0,l37)+max(0.0,l41)+max(0.0,l44)+l23; end
2747
+ def m297; @m297 ||= max(0.0,m30)+max(0.0,m35)+max(0.0,m37)+max(0.0,m41)+max(0.0,m44)+m23; end
2748
+ def n297; @n297 ||= max(0.0,n30)+max(0.0,n35)+max(0.0,n37)+max(0.0,n41)+max(0.0,n44)+n23; end
2749
+ def o297; @o297 ||= max(0.0,o30)+max(0.0,o35)+max(0.0,o37)+max(0.0,o41)+max(0.0,o44)+o23; end
2750
+ def p297; @p297 ||= max(0.0,p30)+max(0.0,p35)+max(0.0,p37)+max(0.0,p41)+max(0.0,p44)+p23; end
2751
+ def q297; @q297 ||= max(0.0,q30)+max(0.0,q35)+max(0.0,q37)+max(0.0,q41)+max(0.0,q44)+q23; end
2752
+ def p298; "% imported"; end
2753
+ def q298; @q298 ||= q297/q296; end
2754
+ def d299; "Primary demand"; end
2755
+ def f299; @f299 ||= f18+f52+f53; end
2756
+ def g299; @g299 ||= g18+g52+g53; end
2757
+ def h299; @h299 ||= h18+h52+h53; end
2758
+ def i299; @i299 ||= i18+i52+i53; end
2759
+ def j299; @j299 ||= j18+j52+j53; end
2760
+ def k299; @k299 ||= k18+k52+k53; end
2761
+ def l299; @l299 ||= l18+l52+l53; end
2762
+ def m299; @m299 ||= m18+m52+m53; end
2763
+ def n299; @n299 ||= n18+n52+n53; end
2764
+ def o299; @o299 ||= o18+o52+o53; end
2765
+ def p299; @p299 ||= p18+p52+p53; end
2766
+ def q299; @q299 ||= q18+q52+q53; end
2767
+ def b302; "Electricity, format for web-based interface"; end
2768
+ def c304; "V.01"; end
2769
+ def h304; 2007.0; end
2770
+ def i304; 2010.0; end
2771
+ def j304; 2015.0; end
2772
+ def k304; 2020.0; end
2773
+ def l304; 2025.0; end
2774
+ def m304; 2030.0; end
2775
+ def n304; 2035.0; end
2776
+ def o304; 2040.0; end
2777
+ def p304; 2045.0; end
2778
+ def q304; 2050.0; end
2779
+ def r304; @r304 ||= sheet2.c3; end
2780
+ def c306; "VIII.a"; end
2781
+ def d306; @d306 ||= index(:name,match(c306,:name,0.0)); end
2782
+ def h306; @h306 ||= -index(:ref,match(c304,:ref,0.0)); end
2783
+ def i306; @i306 ||= -index(:ref,match(c304,:ref,0.0)); end
2784
+ def j306; @j306 ||= -index(:ref,match(c304,:ref,0.0)); end
2785
+ def k306; @k306 ||= -index(:ref,match(c304,:ref,0.0)); end
2786
+ def l306; @l306 ||= -index(:ref,match(c304,:ref,0.0)); end
2787
+ def m306; @m306 ||= -index(:ref,match(c304,:ref,0.0)); end
2788
+ def n306; @n306 ||= -index(:ref,match(c304,:ref,0.0)); end
2789
+ def o306; @o306 ||= -index(:ref,match(c304,:ref,0.0)); end
2790
+ def p306; @p306 ||= -index(:ref,match(c304,:ref,0.0)); end
2791
+ def q306; @q306 ||= -index(:ref,match(c304,:ref,0.0)); end
2792
+ def c307; "VI.a"; end
2793
+ def d307; @d307 ||= index(:name,match(c307,:name,0.0)); end
2794
+ def h307; @h307 ||= -index(:ref,match(c304,:ref,0.0)); end
2795
+ def i307; @i307 ||= -index(:ref,match(c304,:ref,0.0)); end
2796
+ def j307; @j307 ||= -index(:ref,match(c304,:ref,0.0)); end
2797
+ def k307; @k307 ||= -index(:ref,match(c304,:ref,0.0)); end
2798
+ def l307; @l307 ||= -index(:ref,match(c304,:ref,0.0)); end
2799
+ def m307; @m307 ||= -index(:ref,match(c304,:ref,0.0)); end
2800
+ def n307; @n307 ||= -index(:ref,match(c304,:ref,0.0)); end
2801
+ def o307; @o307 ||= -index(:ref,match(c304,:ref,0.0)); end
2802
+ def p307; @p307 ||= -index(:ref,match(c304,:ref,0.0)); end
2803
+ def q307; @q307 ||= -index(:ref,match(c304,:ref,0.0)); end
2804
+ def c308; "IV.b"; end
2805
+ def d308; @d308 ||= index(:name,match(c308,:name,0.0)); end
2806
+ def h308; @h308 ||= -index(:ref,match(c304,:ref,0.0)); end
2807
+ def i308; @i308 ||= -index(:ref,match(c304,:ref,0.0)); end
2808
+ def j308; @j308 ||= -index(:ref,match(c304,:ref,0.0)); end
2809
+ def k308; @k308 ||= -index(:ref,match(c304,:ref,0.0)); end
2810
+ def l308; @l308 ||= -index(:ref,match(c304,:ref,0.0)); end
2811
+ def m308; @m308 ||= -index(:ref,match(c304,:ref,0.0)); end
2812
+ def n308; @n308 ||= -index(:ref,match(c304,:ref,0.0)); end
2813
+ def o308; @o308 ||= -index(:ref,match(c304,:ref,0.0)); end
2814
+ def p308; @p308 ||= -index(:ref,match(c304,:ref,0.0)); end
2815
+ def q308; @q308 ||= -index(:ref,match(c304,:ref,0.0)); end
2816
+ def c309; "IX.a"; end
2817
+ def d309; @d309 ||= index(:name,match(c309,:name,0.0)); end
2818
+ def h309; @h309 ||= -index(:ref,match(c304,:ref,0.0)); end
2819
+ def i309; @i309 ||= -index(:ref,match(c304,:ref,0.0)); end
2820
+ def j309; @j309 ||= -index(:ref,match(c304,:ref,0.0)); end
2821
+ def k309; @k309 ||= -index(:ref,match(c304,:ref,0.0)); end
2822
+ def l309; @l309 ||= -index(:ref,match(c304,:ref,0.0)); end
2823
+ def m309; @m309 ||= -index(:ref,match(c304,:ref,0.0)); end
2824
+ def n309; @n309 ||= -index(:ref,match(c304,:ref,0.0)); end
2825
+ def o309; @o309 ||= -index(:ref,match(c304,:ref,0.0)); end
2826
+ def p309; @p309 ||= -index(:ref,match(c304,:ref,0.0)); end
2827
+ def q309; @q309 ||= -index(:ref,match(c304,:ref,0.0)); end
2828
+ def c310; "IX.c"; end
2829
+ def d310; @d310 ||= index(:name,match(c310,:name,0.0)); end
2830
+ def h310; @h310 ||= -index(:ref,match(c304,:ref,0.0)); end
2831
+ def i310; @i310 ||= -index(:ref,match(c304,:ref,0.0)); end
2832
+ def j310; @j310 ||= -index(:ref,match(c304,:ref,0.0)); end
2833
+ def k310; @k310 ||= -index(:ref,match(c304,:ref,0.0)); end
2834
+ def l310; @l310 ||= -index(:ref,match(c304,:ref,0.0)); end
2835
+ def m310; @m310 ||= -index(:ref,match(c304,:ref,0.0)); end
2836
+ def n310; @n310 ||= -index(:ref,match(c304,:ref,0.0)); end
2837
+ def o310; @o310 ||= -index(:ref,match(c304,:ref,0.0)); end
2838
+ def p310; @p310 ||= -index(:ref,match(c304,:ref,0.0)); end
2839
+ def q310; @q310 ||= -index(:ref,match(c304,:ref,0.0)); end
2840
+ def c311; "X.a"; end
2841
+ def d311; @d311 ||= index(:name,match(c311,:name,0.0)); end
2842
+ def h311; @h311 ||= -index(:ref,match(c304,:ref,0.0)); end
2843
+ def i311; @i311 ||= -index(:ref,match(c304,:ref,0.0)); end
2844
+ def j311; @j311 ||= -index(:ref,match(c304,:ref,0.0)); end
2845
+ def k311; @k311 ||= -index(:ref,match(c304,:ref,0.0)); end
2846
+ def l311; @l311 ||= -index(:ref,match(c304,:ref,0.0)); end
2847
+ def m311; @m311 ||= -index(:ref,match(c304,:ref,0.0)); end
2848
+ def n311; @n311 ||= -index(:ref,match(c304,:ref,0.0)); end
2849
+ def o311; @o311 ||= -index(:ref,match(c304,:ref,0.0)); end
2850
+ def p311; @p311 ||= -index(:ref,match(c304,:ref,0.0)); end
2851
+ def q311; @q311 ||= -index(:ref,match(c304,:ref,0.0)); end
2852
+ def c312; "X.b"; end
2853
+ def d312; @d312 ||= index(:name,match(c312,:name,0.0)); end
2854
+ def h312; @h312 ||= -index(:ref,match(c304,:ref,0.0)); end
2855
+ def i312; @i312 ||= -index(:ref,match(c304,:ref,0.0)); end
2856
+ def j312; @j312 ||= -index(:ref,match(c304,:ref,0.0)); end
2857
+ def k312; @k312 ||= -index(:ref,match(c304,:ref,0.0)); end
2858
+ def l312; @l312 ||= -index(:ref,match(c304,:ref,0.0)); end
2859
+ def m312; @m312 ||= -index(:ref,match(c304,:ref,0.0)); end
2860
+ def n312; @n312 ||= -index(:ref,match(c304,:ref,0.0)); end
2861
+ def o312; @o312 ||= -index(:ref,match(c304,:ref,0.0)); end
2862
+ def p312; @p312 ||= -index(:ref,match(c304,:ref,0.0)); end
2863
+ def q312; @q312 ||= -index(:ref,match(c304,:ref,0.0)); end
2864
+ def c313; "XI.a"; end
2865
+ def d313; @d313 ||= index(:name,match(c313,:name,0.0)); end
2866
+ def h313; @h313 ||= -index(:ref,match(c304,:ref,0.0)); end
2867
+ def i313; @i313 ||= -index(:ref,match(c304,:ref,0.0)); end
2868
+ def j313; @j313 ||= -index(:ref,match(c304,:ref,0.0)); end
2869
+ def k313; @k313 ||= -index(:ref,match(c304,:ref,0.0)); end
2870
+ def l313; @l313 ||= -index(:ref,match(c304,:ref,0.0)); end
2871
+ def m313; @m313 ||= -index(:ref,match(c304,:ref,0.0)); end
2872
+ def n313; @n313 ||= -index(:ref,match(c304,:ref,0.0)); end
2873
+ def o313; @o313 ||= -index(:ref,match(c304,:ref,0.0)); end
2874
+ def p313; @p313 ||= -index(:ref,match(c304,:ref,0.0)); end
2875
+ def q313; @q313 ||= -index(:ref,match(c304,:ref,0.0)); end
2876
+ def c314; "XII.a"; end
2877
+ def d314; @d314 ||= index(:name,match(c314,:name,0.0)); end
2878
+ def h314; @h314 ||= -index(:ref,match(c304,:ref,0.0)); end
2879
+ def i314; @i314 ||= -index(:ref,match(c304,:ref,0.0)); end
2880
+ def j314; @j314 ||= -index(:ref,match(c304,:ref,0.0)); end
2881
+ def k314; @k314 ||= -index(:ref,match(c304,:ref,0.0)); end
2882
+ def l314; @l314 ||= -index(:ref,match(c304,:ref,0.0)); end
2883
+ def m314; @m314 ||= -index(:ref,match(c304,:ref,0.0)); end
2884
+ def n314; @n314 ||= -index(:ref,match(c304,:ref,0.0)); end
2885
+ def o314; @o314 ||= -index(:ref,match(c304,:ref,0.0)); end
2886
+ def p314; @p314 ||= -index(:ref,match(c304,:ref,0.0)); end
2887
+ def q314; @q314 ||= -index(:ref,match(c304,:ref,0.0)); end
2888
+ def c315; "XII.b"; end
2889
+ def d315; @d315 ||= index(:name,match(c315,:name,0.0)); end
2890
+ def h315; @h315 ||= -index(:ref,match(c304,:ref,0.0)); end
2891
+ def i315; @i315 ||= -index(:ref,match(c304,:ref,0.0)); end
2892
+ def j315; @j315 ||= -index(:ref,match(c304,:ref,0.0)); end
2893
+ def k315; @k315 ||= -index(:ref,match(c304,:ref,0.0)); end
2894
+ def l315; @l315 ||= -index(:ref,match(c304,:ref,0.0)); end
2895
+ def m315; @m315 ||= -index(:ref,match(c304,:ref,0.0)); end
2896
+ def n315; @n315 ||= -index(:ref,match(c304,:ref,0.0)); end
2897
+ def o315; @o315 ||= -index(:ref,match(c304,:ref,0.0)); end
2898
+ def p315; @p315 ||= -index(:ref,match(c304,:ref,0.0)); end
2899
+ def q315; @q315 ||= -index(:ref,match(c304,:ref,0.0)); end
2900
+ def c316; "XIV.a"; end
2901
+ def d316; @d316 ||= index(:name,match(c316,:name,0.0)); end
2902
+ def h316; @h316 ||= -index(:ref,match(c304,:ref,0.0)); end
2903
+ def i316; @i316 ||= -index(:ref,match(c304,:ref,0.0)); end
2904
+ def j316; @j316 ||= -index(:ref,match(c304,:ref,0.0)); end
2905
+ def k316; @k316 ||= -index(:ref,match(c304,:ref,0.0)); end
2906
+ def l316; @l316 ||= -index(:ref,match(c304,:ref,0.0)); end
2907
+ def m316; @m316 ||= -index(:ref,match(c304,:ref,0.0)); end
2908
+ def n316; @n316 ||= -index(:ref,match(c304,:ref,0.0)); end
2909
+ def o316; @o316 ||= -index(:ref,match(c304,:ref,0.0)); end
2910
+ def p316; @p316 ||= -index(:ref,match(c304,:ref,0.0)); end
2911
+ def q316; @q316 ||= -index(:ref,match(c304,:ref,0.0)); end
2912
+ def c317; "XV.a"; end
2913
+ def d317; @d317 ||= index(:name,match(c317,:name,0.0)); end
2914
+ def h317; @h317 ||= -index(:ref,match(c304,:ref,0.0)); end
2915
+ def i317; @i317 ||= -index(:ref,match(c304,:ref,0.0)); end
2916
+ def j317; @j317 ||= -index(:ref,match(c304,:ref,0.0)); end
2917
+ def k317; @k317 ||= -index(:ref,match(c304,:ref,0.0)); end
2918
+ def l317; @l317 ||= -index(:ref,match(c304,:ref,0.0)); end
2919
+ def m317; @m317 ||= -index(:ref,match(c304,:ref,0.0)); end
2920
+ def n317; @n317 ||= -index(:ref,match(c304,:ref,0.0)); end
2921
+ def o317; @o317 ||= -index(:ref,match(c304,:ref,0.0)); end
2922
+ def p317; @p317 ||= -index(:ref,match(c304,:ref,0.0)); end
2923
+ def q317; @q317 ||= -index(:ref,match(c304,:ref,0.0)); end
2924
+ def c318; "XV.b"; end
2925
+ def d318; @d318 ||= index(:name,match(c318,:name,0.0)); end
2926
+ def h318; @h318 ||= -index(:ref,match(c304,:ref,0.0)); end
2927
+ def i318; @i318 ||= -index(:ref,match(c304,:ref,0.0)); end
2928
+ def j318; @j318 ||= -index(:ref,match(c304,:ref,0.0)); end
2929
+ def k318; @k318 ||= -index(:ref,match(c304,:ref,0.0)); end
2930
+ def l318; @l318 ||= -index(:ref,match(c304,:ref,0.0)); end
2931
+ def m318; @m318 ||= -index(:ref,match(c304,:ref,0.0)); end
2932
+ def n318; @n318 ||= -index(:ref,match(c304,:ref,0.0)); end
2933
+ def o318; @o318 ||= -index(:ref,match(c304,:ref,0.0)); end
2934
+ def p318; @p318 ||= -index(:ref,match(c304,:ref,0.0)); end
2935
+ def q318; @q318 ||= -index(:ref,match(c304,:ref,0.0)); end
2936
+ def c319; "XVII.a"; end
2937
+ def d319; @d319 ||= index(:name,match(c319,:name,0.0)); end
2938
+ def h319; @h319 ||= -index(:ref,match("V.02",:ref,0.0)); end
2939
+ def i319; @i319 ||= -index(:ref,match("V.02",:ref,0.0)); end
2940
+ def j319; @j319 ||= -index(:ref,match("V.02",:ref,0.0)); end
2941
+ def k319; @k319 ||= -index(:ref,match("V.02",:ref,0.0)); end
2942
+ def l319; @l319 ||= -index(:ref,match("V.02",:ref,0.0)); end
2943
+ def m319; @m319 ||= -index(:ref,match("V.02",:ref,0.0)); end
2944
+ def n319; @n319 ||= -index(:ref,match("V.02",:ref,0.0)); end
2945
+ def o319; @o319 ||= -index(:ref,match("V.02",:ref,0.0)); end
2946
+ def p319; @p319 ||= -index(:ref,match("V.02",:ref,0.0)); end
2947
+ def q319; @q319 ||= -index(:ref,match("V.02",:ref,0.0)); end
2948
+ def d320; "Total"; end
2949
+ def h320; @h320 ||= sum(a('h306','h319')); end
2950
+ def i320; @i320 ||= sum(a('i306','i319')); end
2951
+ def j320; @j320 ||= sum(a('j306','j319')); end
2952
+ def k320; @k320 ||= sum(a('k306','k319')); end
2953
+ def l320; @l320 ||= sum(a('l306','l319')); end
2954
+ def m320; @m320 ||= sum(a('m306','m319')); end
2955
+ def n320; @n320 ||= sum(a('n306','n319')); end
2956
+ def o320; @o320 ||= sum(a('o306','o319')); end
2957
+ def p320; @p320 ||= sum(a('p306','p319')); end
2958
+ def q320; @q320 ||= sum(a('q306','q319')); end
2959
+ def d322; "Transport"; end
2960
+ def h322; @h322 ||= sum(a('h314','h315'),h306); end
2961
+ def i322; @i322 ||= sum(a('i314','i315'),i306); end
2962
+ def j322; @j322 ||= sum(a('j314','j315'),j306); end
2963
+ def k322; @k322 ||= sum(a('k314','k315'),k306); end
2964
+ def l322; @l322 ||= sum(a('l314','l315'),l306); end
2965
+ def m322; @m322 ||= sum(a('m314','m315'),m306); end
2966
+ def n322; @n322 ||= sum(a('n314','n315'),n306); end
2967
+ def o322; @o322 ||= sum(a('o314','o315'),o306); end
2968
+ def p322; @p322 ||= sum(a('p314','p315'),p306); end
2969
+ def q322; @q322 ||= sum(a('q314','q315'),q306); end
2970
+ def d323; "Industry"; end
2971
+ def h323; @h323 ||= sum(a('h316','h318'),h313,h307); end
2972
+ def i323; @i323 ||= sum(a('i316','i318'),i313,i307); end
2973
+ def j323; @j323 ||= sum(a('j316','j318'),j313,j307); end
2974
+ def k323; @k323 ||= sum(a('k316','k318'),k313,k307); end
2975
+ def l323; @l323 ||= sum(a('l316','l318'),l313,l307); end
2976
+ def m323; @m323 ||= sum(a('m316','m318'),m313,m307); end
2977
+ def n323; @n323 ||= sum(a('n316','n318'),n313,n307); end
2978
+ def o323; @o323 ||= sum(a('o316','o318'),o313,o307); end
2979
+ def p323; @p323 ||= sum(a('p316','p318'),p313,p307); end
2980
+ def q323; @q323 ||= sum(a('q316','q318'),q313,q307); end
2981
+ def d324; "Heating and cooling"; end
2982
+ def h324; @h324 ||= sum(a('h308','h310'),h319); end
2983
+ def i324; @i324 ||= sum(a('i308','i310'),i319); end
2984
+ def j324; @j324 ||= sum(a('j308','j310'),j319); end
2985
+ def k324; @k324 ||= sum(a('k308','k310'),k319); end
2986
+ def l324; @l324 ||= sum(a('l308','l310'),l319); end
2987
+ def m324; @m324 ||= sum(a('m308','m310'),m319); end
2988
+ def n324; @n324 ||= sum(a('n308','n310'),n319); end
2989
+ def o324; @o324 ||= sum(a('o308','o310'),o319); end
2990
+ def p324; @p324 ||= sum(a('p308','p310'),p319); end
2991
+ def q324; @q324 ||= sum(a('q308','q310'),q319); end
2992
+ def d325; "Lighting & appliances"; end
2993
+ def h325; @h325 ||= sum(a('h311','h312')); end
2994
+ def i325; @i325 ||= sum(a('i311','i312')); end
2995
+ def j325; @j325 ||= sum(a('j311','j312')); end
2996
+ def k325; @k325 ||= sum(a('k311','k312')); end
2997
+ def l325; @l325 ||= sum(a('l311','l312')); end
2998
+ def m325; @m325 ||= sum(a('m311','m312')); end
2999
+ def n325; @n325 ||= sum(a('n311','n312')); end
3000
+ def o325; @o325 ||= sum(a('o311','o312')); end
3001
+ def p325; @p325 ||= sum(a('p311','p312')); end
3002
+ def q325; @q325 ||= sum(a('q311','q312')); end
3003
+ def d326; "Total"; end
3004
+ def h326; @h326 ||= sum(a('h322','h325')); end
3005
+ def i326; @i326 ||= sum(a('i322','i325')); end
3006
+ def j326; @j326 ||= sum(a('j322','j325')); end
3007
+ def k326; @k326 ||= sum(a('k322','k325')); end
3008
+ def l326; @l326 ||= sum(a('l322','l325')); end
3009
+ def m326; @m326 ||= sum(a('m322','m325')); end
3010
+ def n326; @n326 ||= sum(a('n322','n325')); end
3011
+ def o326; @o326 ||= sum(a('o322','o325')); end
3012
+ def p326; @p326 ||= sum(a('p322','p325')); end
3013
+ def q326; @q326 ||= sum(a('q322','q325')); end
3014
+ def i368; 2050.0; end
3015
+ def d369; "This is the data used for the sankey diagram in the web tool"; end
3016
+ def h369; "From"; end
3017
+ def i369; @i369 ||= sheet2.c3; end
3018
+ def j369; "To"; end
3019
+ def n369; "Box"; end
3020
+ def o369; "Out"; end
3021
+ def p369; "In"; end
3022
+ def q369; "Delta"; end
3023
+ def r369; "Problem"; end
3024
+ def h370; "Coal reserves"; end
3025
+ def i370; @i370 ||= q38; end
3026
+ def j370; "Coal"; end
3027
+ def n370; "Agricultural 'waste'"; end
3028
+ def o370; @o370 ||= sumif(a('h370','h460'),n370,a('i370','i460')); end
3029
+ def p370; @p370 ||= sumif(a('j370','j460'),n370,a('i370','i460')); end
3030
+ def q370; @q370 ||= o370-p370; end
3031
+ def r370; @r370 ||= excel_if(excel_comparison(q370,"==",0.0),"ok",excel_if(excel_comparison(abs(q370),"==",sum(a('o370','p370'))),"ok","error")); end
3032
+ def s370; 129.49638743214874; end
3033
+ def t370; 0.0; end
3034
+ def u370; 129.49638743214874; end
3035
+ def h371; "Coal imports"; end
3036
+ def i371; @i371 ||= max(q37,0.0); end
3037
+ def j371; "Coal"; end
3038
+ def n371; "Agriculture"; end
3039
+ def o371; @o371 ||= sumif(a('h370','h460'),n371,a('i370','i460')); end
3040
+ def p371; @p371 ||= sumif(a('j370','j460'),n371,a('i370','i460')); end
3041
+ def q371; @q371 ||= o371-p371; end
3042
+ def r371; @r371 ||= excel_if(excel_comparison(q371,"==",0.0),"ok",excel_if(excel_comparison(abs(q371),"==",sum(a('o371','p371'))),"ok","error")); end
3043
+ def s371; 0.0; end
3044
+ def t371; 11.394396627131044; end
3045
+ def u371; -11.394396627131044; end
3046
+ def h372; "Oil reserves"; end
3047
+ def i372; @i372 ||= q40; end
3048
+ def j372; "Oil"; end
3049
+ def n372; "Bio-conversion"; end
3050
+ def o372; @o372 ||= sumif(a('h370','h460'),n372,a('i370','i460')); end
3051
+ def p372; @p372 ||= sumif(a('j370','j460'),n372,a('i370','i460')); end
3052
+ def q372; @q372 ||= o372-p372; end
3053
+ def r372; @r372 ||= excel_if(excel_comparison(q372,"==",0.0),"ok",excel_if(excel_comparison(abs(q372),"==",sum(a('o372','p372'))),"ok","error")); end
3054
+ def s372; 355.4319179503946; end
3055
+ def t372; 355.43191795039456; end
3056
+ def u372; 0.0; end
3057
+ def h373; "Oil imports"; end
3058
+ def i373; @i373 ||= max(q41,0.0); end
3059
+ def j373; "Oil"; end
3060
+ def n373; "Biofuel imports"; end
3061
+ def o373; @o373 ||= sumif(a('h370','h460'),n373,a('i370','i460')); end
3062
+ def p373; @p373 ||= sumif(a('j370','j460'),n373,a('i370','i460')); end
3063
+ def q373; @q373 ||= o373-p373; end
3064
+ def r373; @r373 ||= excel_if(excel_comparison(q373,"==",0.0),"ok",excel_if(excel_comparison(abs(q373),"==",sum(a('o373','p373'))),"ok","error")); end
3065
+ def s373; 70.0; end
3066
+ def t373; 0.0; end
3067
+ def u373; 70.0; end
3068
+ def h374; "Gas reserves"; end
3069
+ def i374; @i374 ||= q45; end
3070
+ def j374; "Ngas"; end
3071
+ def n374; "Biomass imports"; end
3072
+ def o374; @o374 ||= sumif(a('h370','h460'),n374,a('i370','i460')); end
3073
+ def p374; @p374 ||= sumif(a('j370','j460'),n374,a('i370','i460')); end
3074
+ def q374; @q374 ||= o374-p374; end
3075
+ def r374; @r374 ||= excel_if(excel_comparison(q374,"==",0.0),"ok",excel_if(excel_comparison(abs(q374),"==",sum(a('o374','p374'))),"ok","error")); end
3076
+ def s374; 70.0; end
3077
+ def t374; 0.0; end
3078
+ def u374; 70.0; end
3079
+ def h375; "Gas imports"; end
3080
+ def i375; @i375 ||= max(q44,0.0); end
3081
+ def j375; "Ngas"; end
3082
+ def n375; "CHP"; end
3083
+ def o375; @o375 ||= sumif(a('h370','h460'),n375,a('i370','i460')); end
3084
+ def p375; @p375 ||= sumif(a('j370','j460'),n375,a('i370','i460')); end
3085
+ def q375; @q375 ||= o375-p375; end
3086
+ def r375; @r375 ||= excel_if(excel_comparison(q375,"==",0.0),"ok",excel_if(excel_comparison(abs(q375),"==",sum(a('o375','p375'))),"ok","error")); end
3087
+ def s375; 210.8480139335702; end
3088
+ def t375; 210.8480139335702; end
3089
+ def u375; 0.0; end
3090
+ def h376; "UK land based bioenergy"; end
3091
+ def i376; @i376 ||= :name+:name; end
3092
+ def j376; "Bio-conversion"; end
3093
+ def n376; "Coal"; end
3094
+ def o376; @o376 ||= sumif(a('h370','h460'),n376,a('i370','i460')); end
3095
+ def p376; @p376 ||= sumif(a('j370','j460'),n376,a('i370','i460')); end
3096
+ def q376; @q376 ||= o376-p376; end
3097
+ def r376; @r376 ||= excel_if(excel_comparison(q376,"==",0.0),"ok",excel_if(excel_comparison(abs(q376),"==",sum(a('o376','p376'))),"ok","error")); end
3098
+ def s376; 86.55506943339304; end
3099
+ def t376; 86.55506943339304; end
3100
+ def u376; 0.0; end
3101
+ def h377; "Marine algae"; end
3102
+ def i377; @i377 ||= :name; end
3103
+ def j377; "Bio-conversion"; end
3104
+ def n377; "Coal imports"; end
3105
+ def o377; @o377 ||= sumif(a('h370','h460'),n377,a('i370','i460')); end
3106
+ def p377; @p377 ||= sumif(a('j370','j460'),n377,a('i370','i460')); end
3107
+ def q377; @q377 ||= o377-p377; end
3108
+ def r377; @r377 ||= excel_if(excel_comparison(q377,"==",0.0),"ok",excel_if(excel_comparison(abs(q377),"==",sum(a('o377','p377'))),"ok","error")); end
3109
+ def s377; 22.59006943339304; end
3110
+ def t377; 0.0; end
3111
+ def u377; 22.59006943339304; end
3112
+ def h378; "Agricultural 'waste'"; end
3113
+ def i378; @i378 ||= :name+:name; end
3114
+ def j378; "Bio-conversion"; end
3115
+ def n378; "Coal reserves"; end
3116
+ def o378; @o378 ||= sumif(a('h370','h460'),n378,a('i370','i460')); end
3117
+ def p378; @p378 ||= sumif(a('j370','j460'),n378,a('i370','i460')); end
3118
+ def q378; @q378 ||= o378-p378; end
3119
+ def r378; @r378 ||= excel_if(excel_comparison(q378,"==",0.0),"ok",excel_if(excel_comparison(abs(q378),"==",sum(a('o378','p378'))),"ok","error")); end
3120
+ def s378; 63.965; end
3121
+ def t378; 0.0; end
3122
+ def u378; 63.965; end
3123
+ def h379; "Other waste"; end
3124
+ def i379; @i379 ||= :name+:name+:name; end
3125
+ def j379; "Bio-conversion"; end
3126
+ def n379; "District heating"; end
3127
+ def o379; @o379 ||= sumif(a('h370','h460'),n379,a('i370','i460')); end
3128
+ def p379; @p379 ||= sumif(a('j370','j460'),n379,a('i370','i460')); end
3129
+ def q379; @q379 ||= o379-p379; end
3130
+ def r379; @r379 ||= excel_if(excel_comparison(q379,"==",0.0),"ok",excel_if(excel_comparison(abs(q379),"==",sum(a('o379','p379'))),"ok","error")); end
3131
+ def s379; 32.947704428248294; end
3132
+ def t379; 32.947704428248294; end
3133
+ def u379; 0.0; end
3134
+ def h380; "Other waste"; end
3135
+ def i380; @i380 ||= :name; end
3136
+ def j380; "Solid"; end
3137
+ def n380; "Domestic aviation"; end
3138
+ def o380; @o380 ||= sumif(a('h370','h460'),n380,a('i370','i460')); end
3139
+ def p380; @p380 ||= sumif(a('j370','j460'),n380,a('i370','i460')); end
3140
+ def q380; @q380 ||= o380-p380; end
3141
+ def r380; @r380 ||= excel_if(excel_comparison(q380,"==",0.0),"ok",excel_if(excel_comparison(abs(q380),"==",sum(a('o380','p380'))),"ok","error")); end
3142
+ def s380; 0.0; end
3143
+ def t380; 14.45823092617519; end
3144
+ def u380; -14.45823092617519; end
3145
+ def h381; "Biomass imports"; end
3146
+ def i381; @i381 ||= :name; end
3147
+ def j381; "Solid"; end
3148
+ def n381; "Electricity grid"; end
3149
+ def o381; @o381 ||= sumif(a('h370','h460'),n381,a('i370','i460')); end
3150
+ def p381; @p381 ||= sumif(a('j370','j460'),n381,a('i370','i460')); end
3151
+ def q381; @q381 ||= o381-p381; end
3152
+ def r381; @r381 ||= excel_if(excel_comparison(q381,"==",0.0),"ok",excel_if(excel_comparison(abs(q381),"==",sum(a('o381','p381'))),"ok","error")); end
3153
+ def s381; 551.5637593526618; end
3154
+ def t381; 551.5637593526618; end
3155
+ def u381; 0.0; end
3156
+ def h382; "Biofuel imports"; end
3157
+ def i382; @i382 ||= :name; end
3158
+ def j382; "Liquid"; end
3159
+ def n382; "Electricity imports"; end
3160
+ def o382; @o382 ||= sumif(a('h370','h460'),n382,a('i370','i460')); end
3161
+ def p382; @p382 ||= sumif(a('j370','j460'),n382,a('i370','i460')); end
3162
+ def q382; @q382 ||= o382-p382; end
3163
+ def r382; @r382 ||= excel_if(excel_comparison(q382,"==",0.0),"ok",excel_if(excel_comparison(abs(q382),"==",sum(a('o382','p382'))),"ok","error")); end
3164
+ def s382; 15.0; end
3165
+ def t382; 0.0; end
3166
+ def u382; 15.0; end
3167
+ def h383; "Coal"; end
3168
+ def i383; @i383 ||= sum(a('i370','i371')); end
3169
+ def j383; "Solid"; end
3170
+ def n383; "Gas"; end
3171
+ def o383; @o383 ||= sumif(a('h370','h460'),n383,a('i370','i460')); end
3172
+ def p383; @p383 ||= sumif(a('j370','j460'),n383,a('i370','i460')); end
3173
+ def q383; @q383 ||= o383-p383; end
3174
+ def r383; @r383 ||= excel_if(excel_comparison(q383,"==",0.0),"ok",excel_if(excel_comparison(abs(q383),"==",sum(a('o383','p383'))),"ok","error")); end
3175
+ def s383; 350.6393702891703; end
3176
+ def t383; 350.63937028917024; end
3177
+ def u383; 0.0; end
3178
+ def h384; "Oil"; end
3179
+ def i384; @i384 ||= sum(a('i372','i373')); end
3180
+ def j384; "Liquid"; end
3181
+ def n384; "Gas imports"; end
3182
+ def o384; @o384 ||= sumif(a('h370','h460'),n384,a('i370','i460')); end
3183
+ def p384; @p384 ||= sumif(a('j370','j460'),n384,a('i370','i460')); end
3184
+ def q384; @q384 ||= o384-p384; end
3185
+ def r384; @r384 ||= excel_if(excel_comparison(q384,"==",0.0),"ok",excel_if(excel_comparison(abs(q384),"==",sum(a('o384','p384'))),"ok","error")); end
3186
+ def s384; 214.91648830119163; end
3187
+ def t384; 0.0; end
3188
+ def u384; 214.91648830119163; end
3189
+ def h385; "Ngas"; end
3190
+ def i385; @i385 ||= sum(a('i374','i375')); end
3191
+ def j385; "Gas"; end
3192
+ def n385; "Gas reserves"; end
3193
+ def o385; @o385 ||= sumif(a('h370','h460'),n385,a('i370','i460')); end
3194
+ def p385; @p385 ||= sumif(a('j370','j460'),n385,a('i370','i460')); end
3195
+ def q385; @q385 ||= o385-p385; end
3196
+ def r385; @r385 ||= excel_if(excel_comparison(q385,"==",0.0),"ok",excel_if(excel_comparison(abs(q385),"==",sum(a('o385','p385'))),"ok","error")); end
3197
+ def s385; 82.2325418852722; end
3198
+ def t385; 0.0; end
3199
+ def u385; 82.2325418852722; end
3200
+ def h386; "Solar"; end
3201
+ def i386; @i386 ||= :name; end
3202
+ def j386; "Solar PV"; end
3203
+ def n386; "Geosequestration"; end
3204
+ def o386; @o386 ||= sumif(a('h370','h460'),n386,a('i370','i460')); end
3205
+ def p386; @p386 ||= sumif(a('j370','j460'),n386,a('i370','i460')); end
3206
+ def q386; @q386 ||= o386-p386; end
3207
+ def r386; @r386 ||= excel_if(excel_comparison(q386,"==",0.0),"ok",excel_if(excel_comparison(abs(q386),"==",sum(a('o386','p386'))),"ok","error")); end
3208
+ def s386; 0.0; end
3209
+ def t386; 0.0; end
3210
+ def u386; 0.0; end
3211
+ def h387; "Solar PV"; end
3212
+ def i387; @i387 ||= i386; end
3213
+ def j387; "Electricity grid"; end
3214
+ def n387; "Geothermal"; end
3215
+ def o387; @o387 ||= sumif(a('h370','h460'),n387,a('i370','i460')); end
3216
+ def p387; @p387 ||= sumif(a('j370','j460'),n387,a('i370','i460')); end
3217
+ def q387; @q387 ||= o387-p387; end
3218
+ def r387; @r387 ||= excel_if(excel_comparison(q387,"==",0.0),"ok",excel_if(excel_comparison(abs(q387),"==",sum(a('o387','p387'))),"ok","error")); end
3219
+ def s387; 0.0; end
3220
+ def t387; 0.0; end
3221
+ def u387; 0.0; end
3222
+ def h388; "Solar"; end
3223
+ def i388; @i388 ||= :name; end
3224
+ def j388; "Solar Thermal"; end
3225
+ def n388; "H2"; end
3226
+ def o388; @o388 ||= sumif(a('h370','h460'),n388,a('i370','i460')); end
3227
+ def p388; @p388 ||= sumif(a('j370','j460'),n388,a('i370','i460')); end
3228
+ def q388; @q388 ||= o388-p388; end
3229
+ def r388; @r388 ||= excel_if(excel_comparison(q388,"==",0.0),"ok",excel_if(excel_comparison(abs(q388),"==",sum(a('o388','p388'))),"ok","error")); end
3230
+ def s388; 1.7012811485283734; end
3231
+ def t388; 1.7012811485283734; end
3232
+ def u388; 0.0; end
3233
+ def n389; "H2 conversion"; end
3234
+ def o389; @o389 ||= sumif(a('h370','h460'),n389,a('i370','i460')); end
3235
+ def p389; @p389 ||= sumif(a('j370','j460'),n389,a('i370','i460')); end
3236
+ def q389; @q389 ||= o389-p389; end
3237
+ def r389; @r389 ||= excel_if(excel_comparison(q389,"==",0.0),"ok",excel_if(excel_comparison(abs(q389),"==",sum(a('o389','p389'))),"ok","error")); end
3238
+ def s389; 2.2094560370498355; end
3239
+ def t389; 2.2094560370498355; end
3240
+ def u389; 0.0; end
3241
+ def h390; "Bio-conversion"; end
3242
+ def i390; @i390 ||= :name; end
3243
+ def j390; "Solid"; end
3244
+ def n390; "Heating and cooling - commercial"; end
3245
+ def o390; @o390 ||= sumif(a('h370','h460'),n390,a('i370','i460')); end
3246
+ def p390; @p390 ||= sumif(a('j370','j460'),n390,a('i370','i460')); end
3247
+ def q390; @q390 ||= o390-p390; end
3248
+ def r390; @r390 ||= excel_if(excel_comparison(q390,"==",0.0),"ok",excel_if(excel_comparison(abs(q390),"==",sum(a('o390','p390'))),"ok","error")); end
3249
+ def s390; 0.0; end
3250
+ def t390; 100.66839811374751; end
3251
+ def u390; -100.66839811374751; end
3252
+ def h391; "Bio-conversion"; end
3253
+ def i391; @i391 ||= :name; end
3254
+ def j391; "Liquid"; end
3255
+ def n391; "Heating and cooling - homes"; end
3256
+ def o391; @o391 ||= sumif(a('h370','h460'),n391,a('i370','i460')); end
3257
+ def p391; @p391 ||= sumif(a('j370','j460'),n391,a('i370','i460')); end
3258
+ def q391; @q391 ||= o391-p391; end
3259
+ def r391; @r391 ||= excel_if(excel_comparison(q391,"==",0.0),"ok",excel_if(excel_comparison(abs(q391),"==",sum(a('o391','p391'))),"ok","error")); end
3260
+ def s391; 0.0; end
3261
+ def t391; 272.59644437905297; end
3262
+ def u391; -272.59644437905297; end
3263
+ def h392; "Bio-conversion"; end
3264
+ def i392; @i392 ||= :name; end
3265
+ def j392; "Gas"; end
3266
+ def n392; "Hydro"; end
3267
+ def o392; @o392 ||= sumif(a('h370','h460'),n392,a('i370','i460')); end
3268
+ def p392; @p392 ||= sumif(a('j370','j460'),n392,a('i370','i460')); end
3269
+ def q392; @q392 ||= o392-p392; end
3270
+ def r392; @r392 ||= excel_if(excel_comparison(q392,"==",0.0),"ok",excel_if(excel_comparison(abs(q392),"==",sum(a('o392','p392'))),"ok","error")); end
3271
+ def s392; 5.329728000000001; end
3272
+ def t392; 0.0; end
3273
+ def u392; 5.329728000000001; end
3274
+ def h393; "Bio-conversion"; end
3275
+ def i393; @i393 ||= :name; end
3276
+ def j393; "Losses"; end
3277
+ def n393; "Industry"; end
3278
+ def o393; @o393 ||= sumif(a('h370','h460'),n393,a('i370','i460')); end
3279
+ def p393; @p393 ||= sumif(a('j370','j460'),n393,a('i370','i460')); end
3280
+ def q393; @q393 ||= o393-p393; end
3281
+ def r393; @r393 ||= excel_if(excel_comparison(q393,"==",0.0),"ok",excel_if(excel_comparison(abs(q393),"==",sum(a('o393','p393'))),"ok","error")); end
3282
+ def s393; 0.0; end
3283
+ def t393; 355.9804755886297; end
3284
+ def u393; -355.9804755886297; end
3285
+ def h394; "Solid"; end
3286
+ def i394; @i394 ||= max(-q37,0.0); end
3287
+ def j394; "Over generation / exports"; end
3288
+ def n394; "International aviation"; end
3289
+ def o394; @o394 ||= sumif(a('h370','h460'),n394,a('i370','i460')); end
3290
+ def p394; @p394 ||= sumif(a('j370','j460'),n394,a('i370','i460')); end
3291
+ def q394; @q394 ||= o394-p394; end
3292
+ def r394; @r394 ||= excel_if(excel_comparison(q394,"==",0.0),"ok",excel_if(excel_comparison(abs(q394),"==",sum(a('o394','p394'))),"ok","error")); end
3293
+ def s394; 0.0; end
3294
+ def t394; 186.3002024926071; end
3295
+ def u394; -186.3002024926071; end
3296
+ def h395; "Liquid"; end
3297
+ def i395; @i395 ||= max(-q41,0.0); end
3298
+ def j395; "Over generation / exports"; end
3299
+ def n395; "International shipping"; end
3300
+ def o395; @o395 ||= sumif(a('h370','h460'),n395,a('i370','i460')); end
3301
+ def p395; @p395 ||= sumif(a('j370','j460'),n395,a('i370','i460')); end
3302
+ def q395; @q395 ||= o395-p395; end
3303
+ def r395; @r395 ||= excel_if(excel_comparison(q395,"==",0.0),"ok",excel_if(excel_comparison(abs(q395),"==",sum(a('o395','p395'))),"ok","error")); end
3304
+ def s395; 0.0; end
3305
+ def t395; 96.15035135056532; end
3306
+ def u395; -96.15035135056532; end
3307
+ def h396; "Gas"; end
3308
+ def i396; @i396 ||= max(-q44,0.0); end
3309
+ def j396; "Over generation / exports"; end
3310
+ def n396; "Lighting & appliances - commercial"; end
3311
+ def o396; @o396 ||= sumif(a('h370','h460'),n396,a('i370','i460')); end
3312
+ def p396; @p396 ||= sumif(a('j370','j460'),n396,a('i370','i460')); end
3313
+ def q396; @q396 ||= o396-p396; end
3314
+ def r396; @r396 ||= excel_if(excel_comparison(q396,"==",0.0),"ok",excel_if(excel_comparison(abs(q396),"==",sum(a('o396','p396'))),"ok","error")); end
3315
+ def s396; 0.0; end
3316
+ def t396; 72.90673211164959; end
3317
+ def u396; -72.90673211164959; end
3318
+ def h397; "Solid"; end
3319
+ def i397; @i397 ||= -:name-:name; end
3320
+ def j397; "Thermal generation"; end
3321
+ def n397; "Lighting & appliances - homes"; end
3322
+ def o397; @o397 ||= sumif(a('h370','h460'),n397,a('i370','i460')); end
3323
+ def p397; @p397 ||= sumif(a('j370','j460'),n397,a('i370','i460')); end
3324
+ def q397; @q397 ||= o397-p397; end
3325
+ def r397; @r397 ||= excel_if(excel_comparison(q397,"==",0.0),"ok",excel_if(excel_comparison(abs(q397),"==",sum(a('o397','p397'))),"ok","error")); end
3326
+ def s397; 0.0; end
3327
+ def t397; 62.70002002556289; end
3328
+ def u397; -62.70002002556289; end
3329
+ def h398; "Liquid"; end
3330
+ def i398; @i398 ||= -:name; end
3331
+ def j398; "Thermal generation"; end
3332
+ def n398; "Liquid"; end
3333
+ def o398; @o398 ||= sumif(a('h370','h460'),n398,a('i370','i460')); end
3334
+ def p398; @p398 ||= sumif(a('j370','j460'),n398,a('i370','i460')); end
3335
+ def q398; @q398 ||= o398-p398; end
3336
+ def r398; @r398 ||= excel_if(excel_comparison(q398,"==",0.0),"ok",excel_if(excel_comparison(abs(q398),"==",sum(a('o398','p398'))),"ok","error")); end
3337
+ def s398; 552.1736401050265; end
3338
+ def t398; 552.1736401050266; end
3339
+ def u398; 0.0; end
3340
+ def h399; "Gas"; end
3341
+ def i399; @i399 ||= -:name-:name; end
3342
+ def j399; "Thermal generation"; end
3343
+ def n399; "Losses"; end
3344
+ def o399; @o399 ||= sumif(a('h370','h460'),n399,a('i370','i460')); end
3345
+ def p399; @p399 ||= sumif(a('j370','j460'),n399,a('i370','i460')); end
3346
+ def q399; @q399 ||= o399-p399; end
3347
+ def r399; @r399 ||= excel_if(excel_comparison(q399,"==",0.0),"ok",excel_if(excel_comparison(abs(q399),"==",sum(a('o399','p399'))),"ok","error")); end
3348
+ def s399; 0.0; end
3349
+ def t399; 614.6504645311538; end
3350
+ def u399; -614.6504645311538; end
3351
+ def h400; "Nuclear"; end
3352
+ def i400; @i400 ||= -:name; end
3353
+ def j400; "Thermal generation"; end
3354
+ def n400; "Marine algae"; end
3355
+ def o400; @o400 ||= sumif(a('h370','h460'),n400,a('i370','i460')); end
3356
+ def p400; @p400 ||= sumif(a('j370','j460'),n400,a('i370','i460')); end
3357
+ def q400; @q400 ||= o400-p400; end
3358
+ def r400; @r400 ||= excel_if(excel_comparison(q400,"==",0.0),"ok",excel_if(excel_comparison(abs(q400),"==",sum(a('o400','p400'))),"ok","error")); end
3359
+ def s400; 0.0; end
3360
+ def t400; 0.0; end
3361
+ def u400; 0.0; end
3362
+ def h401; "Thermal generation"; end
3363
+ def i401; @i401 ||= :name; end
3364
+ def j401; "District heating"; end
3365
+ def n401; "National navigation"; end
3366
+ def o401; @o401 ||= sumif(a('h370','h460'),n401,a('i370','i460')); end
3367
+ def p401; @p401 ||= sumif(a('j370','j460'),n401,a('i370','i460')); end
3368
+ def q401; @q401 ||= o401-p401; end
3369
+ def r401; @r401 ||= excel_if(excel_comparison(q401,"==",0.0),"ok",excel_if(excel_comparison(abs(q401),"==",sum(a('o401','p401'))),"ok","error")); end
3370
+ def s401; 0.0; end
3371
+ def t401; 28.046644936214143; end
3372
+ def u401; -28.046644936214143; end
3373
+ def h402; "Thermal generation"; end
3374
+ def i402; @i402 ||= :name+:name+:name+:name; end
3375
+ def j402; "Electricity grid"; end
3376
+ def n402; "Ngas"; end
3377
+ def o402; @o402 ||= sumif(a('h370','h460'),n402,a('i370','i460')); end
3378
+ def p402; @p402 ||= sumif(a('j370','j460'),n402,a('i370','i460')); end
3379
+ def q402; @q402 ||= o402-p402; end
3380
+ def r402; @r402 ||= excel_if(excel_comparison(q402,"==",0.0),"ok",excel_if(excel_comparison(abs(q402),"==",sum(a('o402','p402'))),"ok","error")); end
3381
+ def s402; 297.14903018646385; end
3382
+ def t402; 297.14903018646385; end
3383
+ def u402; 0.0; end
3384
+ def h403; "Thermal generation"; end
3385
+ def i403; @i403 ||= :name+:name+:name+:name+:name+:name+:name; end
3386
+ def j403; "Losses"; end
3387
+ def n403; "Nuclear"; end
3388
+ def o403; @o403 ||= sumif(a('h370','h460'),n403,a('i370','i460')); end
3389
+ def p403; @p403 ||= sumif(a('j370','j460'),n403,a('i370','i460')); end
3390
+ def q403; @q403 ||= o403-p403; end
3391
+ def r403; @r403 ||= excel_if(excel_comparison(q403,"==",0.0),"ok",excel_if(excel_comparison(abs(q403),"==",sum(a('o403','p403'))),"ok","error")); end
3392
+ def s403; 419.9888000000001; end
3393
+ def t403; 0.0; end
3394
+ def u403; 419.9888000000001; end
3395
+ def h404; "Solid"; end
3396
+ def i404; @i404 ||= -:name-:name; end
3397
+ def j404; "CHP"; end
3398
+ def n404; "Oil"; end
3399
+ def o404; @o404 ||= sumif(a('h370','h460'),n404,a('i370','i460')); end
3400
+ def p404; @p404 ||= sumif(a('j370','j460'),n404,a('i370','i460')); end
3401
+ def q404; @q404 ||= o404-p404; end
3402
+ def r404; @r404 ||= excel_if(excel_comparison(q404,"==",0.0),"ok",excel_if(excel_comparison(abs(q404),"==",sum(a('o404','p404'))),"ok","error")); end
3403
+ def s404; 481.5771354262274; end
3404
+ def t404; 481.5771354262274; end
3405
+ def u404; 0.0; end
3406
+ def h405; "Liquid"; end
3407
+ def i405; @i405 ||= -:name-:name; end
3408
+ def j405; "CHP"; end
3409
+ def n405; "Oil imports"; end
3410
+ def o405; @o405 ||= sumif(a('h370','h460'),n405,a('i370','i460')); end
3411
+ def p405; @p405 ||= sumif(a('j370','j460'),n405,a('i370','i460')); end
3412
+ def q405; @q405 ||= o405-p405; end
3413
+ def r405; @r405 ||= excel_if(excel_comparison(q405,"==",0.0),"ok",excel_if(excel_comparison(abs(q405),"==",sum(a('o405','p405'))),"ok","error")); end
3414
+ def s405; 373.87377542238823; end
3415
+ def t405; 0.0; end
3416
+ def u405; 373.87377542238823; end
3417
+ def h406; "Gas"; end
3418
+ def i406; @i406 ||= -:name-:name; end
3419
+ def j406; "CHP"; end
3420
+ def n406; "Oil reserves"; end
3421
+ def o406; @o406 ||= sumif(a('h370','h460'),n406,a('i370','i460')); end
3422
+ def p406; @p406 ||= sumif(a('j370','j460'),n406,a('i370','i460')); end
3423
+ def q406; @q406 ||= o406-p406; end
3424
+ def r406; @r406 ||= excel_if(excel_comparison(q406,"==",0.0),"ok",excel_if(excel_comparison(abs(q406),"==",sum(a('o406','p406'))),"ok","error")); end
3425
+ def s406; 107.70336000383915; end
3426
+ def t406; 0.0; end
3427
+ def u406; 107.70336000383915; end
3428
+ def h407; "CHP"; end
3429
+ def i407; @i407 ||= :name+:name; end
3430
+ def j407; "Electricity grid"; end
3431
+ def n407; "Other waste"; end
3432
+ def o407; @o407 ||= sumif(a('h370','h460'),n407,a('i370','i460')); end
3433
+ def p407; @p407 ||= sumif(a('j370','j460'),n407,a('i370','i460')); end
3434
+ def q407; @q407 ||= o407-p407; end
3435
+ def r407; @r407 ||= excel_if(excel_comparison(q407,"==",0.0),"ok",excel_if(excel_comparison(abs(q407),"==",sum(a('o407','p407'))),"ok","error")); end
3436
+ def s407; 59.072098478484804; end
3437
+ def t407; 0.0; end
3438
+ def u407; 59.072098478484804; end
3439
+ def h408; "CHP"; end
3440
+ def i408; @i408 ||= :name+:name; end
3441
+ def j408; "Losses"; end
3442
+ def n408; "Over generation / exports"; end
3443
+ def o408; @o408 ||= sumif(a('h370','h460'),n408,a('i370','i460')); end
3444
+ def p408; @p408 ||= sumif(a('j370','j460'),n408,a('i370','i460')); end
3445
+ def q408; @q408 ||= o408-p408; end
3446
+ def r408; @r408 ||= excel_if(excel_comparison(q408,"==",0.0),"ok",excel_if(excel_comparison(abs(q408),"==",sum(a('o408','p408'))),"ok","error")); end
3447
+ def s408; 0.0; end
3448
+ def t408; 61.288314718968195; end
3449
+ def u408; -61.288314718968195; end
3450
+ def h409; "Electricity imports"; end
3451
+ def i409; @i409 ||= :name; end
3452
+ def j409; "Electricity grid"; end
3453
+ def n409; "Pumped heat"; end
3454
+ def o409; @o409 ||= sumif(a('h370','h460'),n409,a('i370','i460')); end
3455
+ def p409; @p409 ||= sumif(a('j370','j460'),n409,a('i370','i460')); end
3456
+ def q409; @q409 ||= o409-p409; end
3457
+ def r409; @r409 ||= excel_if(excel_comparison(q409,"==",0.0),"ok",excel_if(excel_comparison(abs(q409),"==",sum(a('o409','p409'))),"ok","error")); end
3458
+ def s409; 142.41553252431277; end
3459
+ def t409; 0.0; end
3460
+ def u409; 142.41553252431277; end
3461
+ def h410; "Wind"; end
3462
+ def i410; @i410 ||= :name+:name; end
3463
+ def j410; "Electricity grid"; end
3464
+ def n410; "Rail transport"; end
3465
+ def o410; @o410 ||= sumif(a('h370','h460'),n410,a('i370','i460')); end
3466
+ def p410; @p410 ||= sumif(a('j370','j460'),n410,a('i370','i460')); end
3467
+ def q410; @q410 ||= o410-p410; end
3468
+ def r410; @r410 ||= excel_if(excel_comparison(q410,"==",0.0),"ok",excel_if(excel_comparison(abs(q410),"==",sum(a('o410','p410'))),"ok","error")); end
3469
+ def s410; 0.0; end
3470
+ def t410; 14.302960702035355; end
3471
+ def u410; -14.302960702035355; end
3472
+ def h411; "Tidal"; end
3473
+ def i411; @i411 ||= :name+:name; end
3474
+ def j411; "Electricity grid"; end
3475
+ def n411; "Road transport"; end
3476
+ def o411; @o411 ||= sumif(a('h370','h460'),n411,a('i370','i460')); end
3477
+ def p411; @p411 ||= sumif(a('j370','j460'),n411,a('i370','i460')); end
3478
+ def q411; @q411 ||= o411-p411; end
3479
+ def r411; @r411 ||= excel_if(excel_comparison(q411,"==",0.0),"ok",excel_if(excel_comparison(abs(q411),"==",sum(a('o411','p411'))),"ok","error")); end
3480
+ def s411; 0.0; end
3481
+ def t411; 164.54009825396582; end
3482
+ def u411; -164.54009825396582; end
3483
+ def h412; "Wave"; end
3484
+ def i412; @i412 ||= :name; end
3485
+ def j412; "Electricity grid"; end
3486
+ def n412; "Solar"; end
3487
+ def o412; @o412 ||= sumif(a('h370','h460'),n412,a('i370','i460')); end
3488
+ def p412; @p412 ||= sumif(a('j370','j460'),n412,a('i370','i460')); end
3489
+ def q412; @q412 ||= o412-p412; end
3490
+ def r412; @r412 ||= excel_if(excel_comparison(q412,"==",0.0),"ok",excel_if(excel_comparison(abs(q412),"==",sum(a('o412','p412'))),"ok","error")); end
3491
+ def s412; 0.0; end
3492
+ def t412; 0.0; end
3493
+ def u412; 0.0; end
3494
+ def h413; "Geothermal"; end
3495
+ def i413; @i413 ||= :name; end
3496
+ def j413; "Electricity grid"; end
3497
+ def n413; "Solar PV"; end
3498
+ def o413; @o413 ||= sumif(a('h370','h460'),n413,a('i370','i460')); end
3499
+ def p413; @p413 ||= sumif(a('j370','j460'),n413,a('i370','i460')); end
3500
+ def q413; @q413 ||= o413-p413; end
3501
+ def r413; @r413 ||= excel_if(excel_comparison(q413,"==",0.0),"ok",excel_if(excel_comparison(abs(q413),"==",sum(a('o413','p413'))),"ok","error")); end
3502
+ def s413; 0.0; end
3503
+ def t413; 0.0; end
3504
+ def u413; 0.0; end
3505
+ def h414; "Hydro"; end
3506
+ def i414; @i414 ||= :name; end
3507
+ def j414; "Electricity grid"; end
3508
+ def n414; "Solar Thermal"; end
3509
+ def o414; @o414 ||= sumif(a('h370','h460'),n414,a('i370','i460')); end
3510
+ def p414; @p414 ||= sumif(a('j370','j460'),n414,a('i370','i460')); end
3511
+ def q414; @q414 ||= o414-p414; end
3512
+ def r414; @r414 ||= excel_if(excel_comparison(q414,"==",0.0),"ok",excel_if(excel_comparison(abs(q414),"==",sum(a('o414','p414'))),"ok","error")); end
3513
+ def s414; 0.0; end
3514
+ def t414; 0.0; end
3515
+ def u414; 0.0; end
3516
+ def h415; "Electricity grid"; end
3517
+ def i415; @i415 ||= -:name; end
3518
+ def j415; "H2 conversion"; end
3519
+ def n415; "Solid"; end
3520
+ def o415; @o415 ||= sumif(a('h370','h460'),n415,a('i370','i460')); end
3521
+ def p415; @p415 ||= sumif(a('j370','j460'),n415,a('i370','i460')); end
3522
+ def q415; @q415 ||= o415-p415; end
3523
+ def r415; @r415 ||= excel_if(excel_comparison(q415,"==",0.0),"ok",excel_if(excel_comparison(abs(q415),"==",sum(a('o415','p415'))),"ok","error")); end
3524
+ def s415; 448.3424689522869; end
3525
+ def t415; 448.34246895228694; end
3526
+ def u415; 0.0; end
3527
+ def h416; "Electricity grid"; end
3528
+ def i416; @i416 ||= max(-:name,0.0); end
3529
+ def j416; "Over generation / exports"; end
3530
+ def n416; "Thermal generation"; end
3531
+ def o416; @o416 ||= sumif(a('h370','h460'),n416,a('i370','i460')); end
3532
+ def p416; @p416 ||= sumif(a('j370','j460'),n416,a('i370','i460')); end
3533
+ def q416; @q416 ||= o416-p416; end
3534
+ def r416; @r416 ||= excel_if(excel_comparison(q416,"==",0.0),"ok",excel_if(excel_comparison(abs(q416),"==",sum(a('o416','p416'))),"ok","error")); end
3535
+ def s416; 927.9827519145847; end
3536
+ def t416; 927.9827519145847; end
3537
+ def u416; 0.0; end
3538
+ def h417; "Electricity grid"; end
3539
+ def i417; @i417 ||= :name; end
3540
+ def j417; "Losses"; end
3541
+ def n417; "Tidal"; end
3542
+ def o417; @o417 ||= sumif(a('h370','h460'),n417,a('i370','i460')); end
3543
+ def p417; @p417 ||= sumif(a('j370','j460'),n417,a('i370','i460')); end
3544
+ def q417; @q417 ||= o417-p417; end
3545
+ def r417; @r417 ||= excel_if(excel_comparison(q417,"==",0.0),"ok",excel_if(excel_comparison(abs(q417),"==",sum(a('o417','p417'))),"ok","error")); end
3546
+ def s417; 0.0; end
3547
+ def t417; 0.0; end
3548
+ def u417; 0.0; end
3549
+ def h418; "Gas"; end
3550
+ def i418; @i418 ||= -:name; end
3551
+ def j418; "H2 conversion"; end
3552
+ def n418; "UK land based bioenergy"; end
3553
+ def o418; @o418 ||= sumif(a('h370','h460'),n418,a('i370','i460')); end
3554
+ def p418; @p418 ||= sumif(a('j370','j460'),n418,a('i370','i460')); end
3555
+ def q418; @q418 ||= o418-p418; end
3556
+ def r418; @r418 ||= excel_if(excel_comparison(q418,"==",0.0),"ok",excel_if(excel_comparison(abs(q418),"==",sum(a('o418','p418'))),"ok","error")); end
3557
+ def s418; 182.0095179564277; end
3558
+ def t418; 0.0; end
3559
+ def u418; 182.0095179564277; end
3560
+ def h419; "H2 conversion"; end
3561
+ def i419; @i419 ||= :name; end
3562
+ def j419; "H2"; end
3563
+ def n419; "Wave"; end
3564
+ def o419; @o419 ||= sumif(a('h370','h460'),n419,a('i370','i460')); end
3565
+ def p419; @p419 ||= sumif(a('j370','j460'),n419,a('i370','i460')); end
3566
+ def q419; @q419 ||= o419-p419; end
3567
+ def r419; @r419 ||= excel_if(excel_comparison(q419,"==",0.0),"ok",excel_if(excel_comparison(abs(q419),"==",sum(a('o419','p419'))),"ok","error")); end
3568
+ def s419; 0.0; end
3569
+ def t419; 0.0; end
3570
+ def u419; 0.0; end
3571
+ def h420; "H2 conversion"; end
3572
+ def i420; @i420 ||= :name; end
3573
+ def j420; "Losses"; end
3574
+ def n420; "Wind"; end
3575
+ def o420; @o420 ||= sumif(a('h370','h460'),n420,a('i370','i460')); end
3576
+ def p420; @p420 ||= sumif(a('j370','j460'),n420,a('i370','i460')); end
3577
+ def q420; @q420 ||= o420-p420; end
3578
+ def r420; @r420 ||= excel_if(excel_comparison(q420,"==",0.0),"ok",excel_if(excel_comparison(abs(q420),"==",sum(a('o420','p420'))),"ok","error")); end
3579
+ def s420; 97.39043532000001; end
3580
+ def t420; 0.0; end
3581
+ def u420; 97.39043532000001; end
3582
+ def h421; "Solar Thermal"; end
3583
+ def i421; @i421 ||= -:name; end
3584
+ def j421; "Heating and cooling - homes"; end
3585
+ def h422; "H2"; end
3586
+ def i422; @i422 ||= -:name; end
3587
+ def j422; "Road transport"; end
3588
+ def h423; "Pumped heat"; end
3589
+ def i423; @i423 ||= -:name; end
3590
+ def j423; "Heating and cooling - homes"; end
3591
+ def h424; "Pumped heat"; end
3592
+ def i424; @i424 ||= -:name; end
3593
+ def j424; "Heating and cooling - commercial"; end
3594
+ def h425; "CHP"; end
3595
+ def i425; @i425 ||= :name; end
3596
+ def j425; "Heating and cooling - homes"; end
3597
+ def h426; "CHP"; end
3598
+ def i426; @i426 ||= :name; end
3599
+ def j426; "Heating and cooling - commercial"; end
3600
+ def h427; "District heating"; end
3601
+ def i427; @i427 ||= -:name; end
3602
+ def j427; "Heating and cooling - homes"; end
3603
+ def h428; "District heating"; end
3604
+ def i428; @i428 ||= -:name; end
3605
+ def j428; "Heating and cooling - commercial"; end
3606
+ def h429; "District heating"; end
3607
+ def i429; @i429 ||= -:name-:name; end
3608
+ def j429; "Industry"; end
3609
+ def h430; "District heating"; end
3610
+ def i430; @i430 ||= i401-sum(a('i427','i429')); end
3611
+ def j430; "Losses"; end
3612
+ def h431; "Electricity grid"; end
3613
+ def i431; @i431 ||= -:name-:name; end
3614
+ def j431; "Heating and cooling - homes"; end
3615
+ def h432; "Solid"; end
3616
+ def i432; @i432 ||= -:name; end
3617
+ def j432; "Heating and cooling - homes"; end
3618
+ def h433; "Liquid"; end
3619
+ def i433; @i433 ||= -:name; end
3620
+ def j433; "Heating and cooling - homes"; end
3621
+ def h434; "Gas"; end
3622
+ def i434; @i434 ||= -:name; end
3623
+ def j434; "Heating and cooling - homes"; end
3624
+ def h435; "Electricity grid"; end
3625
+ def i435; @i435 ||= -:name; end
3626
+ def j435; "Heating and cooling - commercial"; end
3627
+ def h436; "Solid"; end
3628
+ def i436; @i436 ||= -:name; end
3629
+ def j436; "Heating and cooling - commercial"; end
3630
+ def h437; "Liquid"; end
3631
+ def i437; @i437 ||= -:name; end
3632
+ def j437; "Heating and cooling - commercial"; end
3633
+ def h438; "Gas"; end
3634
+ def i438; @i438 ||= -:name; end
3635
+ def j438; "Heating and cooling - commercial"; end
3636
+ def h439; "Electricity grid"; end
3637
+ def i439; @i439 ||= -:name; end
3638
+ def j439; "Lighting & appliances - homes"; end
3639
+ def h440; "Gas"; end
3640
+ def i440; @i440 ||= -:name; end
3641
+ def j440; "Lighting & appliances - homes"; end
3642
+ def h441; "Electricity grid"; end
3643
+ def i441; @i441 ||= -:name; end
3644
+ def j441; "Lighting & appliances - commercial"; end
3645
+ def h442; "Gas"; end
3646
+ def i442; @i442 ||= -:name; end
3647
+ def j442; "Lighting & appliances - commercial"; end
3648
+ def h443; "Electricity grid"; end
3649
+ def i443; @i443 ||= -:name-:name-:name; end
3650
+ def j443; "Industry"; end
3651
+ def h444; "Solid"; end
3652
+ def i444; @i444 ||= -:name-:name; end
3653
+ def j444; "Industry"; end
3654
+ def h445; "Liquid"; end
3655
+ def i445; @i445 ||= -:name-:name; end
3656
+ def j445; "Industry"; end
3657
+ def h446; "Gas"; end
3658
+ def i446; @i446 ||= -:name-:name-:name; end
3659
+ def j446; "Industry"; end
3660
+ def h447; "Electricity grid"; end
3661
+ def i447; @i447 ||= -:name; end
3662
+ def j447; "Agriculture"; end
3663
+ def h448; "Solid"; end
3664
+ def i448; @i448 ||= -:name; end
3665
+ def j448; "Agriculture"; end
3666
+ def h449; "Liquid"; end
3667
+ def i449; @i449 ||= -:name; end
3668
+ def j449; "Agriculture"; end
3669
+ def h450; "Gas"; end
3670
+ def i450; @i450 ||= -:name; end
3671
+ def j450; "Agriculture"; end
3672
+ def h451; "Electricity grid"; end
3673
+ def i451; @i451 ||= -:name-:name; end
3674
+ def j451; "Road transport"; end
3675
+ def h452; "Liquid"; end
3676
+ def i452; @i452 ||= -:name-:name; end
3677
+ def j452; "Road transport"; end
3678
+ def h453; "Electricity grid"; end
3679
+ def i453; @i453 ||= -:name-:name; end
3680
+ def j453; "Rail transport"; end
3681
+ def h454; "Liquid"; end
3682
+ def i454; @i454 ||= -:name-:name; end
3683
+ def j454; "Rail transport"; end
3684
+ def h455; "Liquid"; end
3685
+ def i455; @i455 ||= -:name; end
3686
+ def j455; "Domestic aviation"; end
3687
+ def h456; "Liquid"; end
3688
+ def i456; @i456 ||= -:name; end
3689
+ def j456; "National navigation"; end
3690
+ def h457; "Liquid"; end
3691
+ def i457; @i457 ||= -:name; end
3692
+ def j457; "International aviation"; end
3693
+ def h458; "Liquid"; end
3694
+ def i458; @i458 ||= -:name; end
3695
+ def j458; "International shipping"; end
3696
+ def h459; "Electricity grid"; end
3697
+ def i459; @i459 ||= -:name; end
3698
+ def j459; "Geosequestration"; end
3699
+ def h460; "Gas"; end
3700
+ def i460; @i460 ||= :name; end
3701
+ def j460; "Losses"; end
3702
+ end
3703
+