Energy consumption of heating of buildings in Kuopio: Difference between revisions
Jump to navigation
Jump to search
(→Answer) |
mNo edit summary |
||
| (39 intermediate revisions by 6 users not shown) | |||
| Line 1: | Line 1: | ||
[[Category:Energy]] | |||
[[Category:Kuopio]] | |||
[[Category:Code under inspection]] | |||
{{variable|moderator=Marjo|stub=Yes}} | |||
== Question == | |||
What are the energy sources and their amounts used for heating the buildings in Kuopio? | What are the energy sources and their amounts used for heating the buildings in Kuopio? | ||
== Answer == | == Answer == | ||
<t2b index=" | This code gets the ovariable of this page and calculates some basic results. | ||
<rcode graphics="1"> | |||
library(OpasnetUtils) # A package with Opasnet functionalities | |||
library(xtable) # A package with table formats | |||
library(ggplot2) # A package with fancy graph formats | |||
objects.latest("Op_en5699", "calculations") # Get the latest ovariables from code calculations on page Op_en5699. | |||
heatingEnergyKuopio <- EvalOutput(heatingEnergyKuopio) | |||
print(xtable(heatingEnergyKuopio@output), type = 'html') # Show a result table | |||
ggplot(heatingEnergyKuopio@output, # Show a bar chart | |||
aes(x = Energy_source, y = heatingEnergyKuopioResult, fill = Year)) + | |||
geom_bar(position="dodge") + | |||
theme_grey(base_size = 24) | |||
</rcode> | |||
==Rationale== | |||
Evaluation of the page {{disclink|-- Jukka Hirvonen 17:35, 27 January 2013 (EET) }}. | |||
===Data=== | |||
<t2b index="Energy_source,Year,Observation" locations="Result,Description" unit="GWh"> | |||
District heat|2008|811|Benviroc 2011 | District heat|2008|811|Benviroc 2011 | ||
District heat|2009|871|Benviroc 2011 | District heat|2009|871|Benviroc 2011 | ||
| Line 21: | Line 46: | ||
</t2b> | </t2b> | ||
<ref>Benviroc Oy, Kuopion kasvihuonepäästöt 2008-2010, CO2-raportti</ref> | |||
===Unit=== | |||
GWh per year | |||
=== | === Calculations === | ||
=== | This code defines and stores the ovariable of this page (heatingEnergyKuopio). | ||
<rcode name="calculations"> | |||
library(OpasnetUtils) | |||
library(xtable) | |||
heatingEnergyKuopio <- Ovariable("heatingEnergyKuopio", ddata = "Op_en5699", getddata = FALSE, save = TRUE) | |||
cat("Ovariable heatingEnergyKuopio saved for later use. Page name: Op_en5699, code name: calculations\n") | |||
print(xtable(EvalOutput(heatingEnergyKuopio)@output), type = "html") | |||
</rcode> | |||
==See also== | ==See also== | ||
{{Urgenche}} | |||
==References== | ==References== | ||
| Line 40: | Line 79: | ||
{{mfiles}} | {{mfiles}} | ||
Latest revision as of 09:21, 27 August 2013
| Moderator:Marjo (see all) |
| This page is a stub. You may improve it into a full page. |
| Upload data
|
Question
What are the energy sources and their amounts used for heating the buildings in Kuopio?
Answer
This code gets the ovariable of this page and calculates some basic results.
Rationale
Evaluation of the page D↷.
Data
| Obs | Energy_source | Year | Result | Description |
|---|---|---|---|---|
| 1 | District heat | 2008 | 811 | Benviroc 2011 |
| 2 | District heat | 2009 | 871 | Benviroc 2011 |
| 3 | Oil | 2008 | 119 | Benviroc 2011 |
| 4 | Oil | 2009 | 128 | Benviroc 2011 |
| 5 | Wood (small scale use) | 2008 | 261 | Benviroc 2011 |
| 6 | Wood (small scale use) | 2009 | 261 | Benviroc 2011 |
Unit
GWh per year
Calculations
This code defines and stores the ovariable of this page (heatingEnergyKuopio).
See also
References
- ↑ Benviroc Oy, Kuopion kasvihuonepäästöt 2008-2010, CO2-raportti
Related files
<mfanonymousfilelist></mfanonymousfilelist>