Difference between revisions of "Energy balance in Helsinki"
From Testiwiki
(→Rationale) |
(this page was marked outdated) |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{variable|moderator=Pauli}} | ||
[[Category:Energy]] | [[Category:Energy]] | ||
[[Category:Helsinki]] | [[Category:Helsinki]] | ||
Line 4: | Line 5: | ||
==Scope== | ==Scope== | ||
− | + | What are the amounts of energy produced, consumed, imported, and exported in Helsinki? | |
− | |||
− | |||
− | |||
− | |||
− | |||
==Answer== | ==Answer== | ||
+ | |||
+ | {{attack|# |The code on this page is outdated. For up-to-date answers to this question, see [[Helsinki energy decision 2015]].|--[[User:Jouni|Jouni]] ([[User talk:Jouni|talk]]) 12:49, 1 September 2015 (UTC)}} | ||
+ | |||
+ | <rcode name="answer" graphics=1> | ||
+ | |||
+ | ### This code was run from page [[Energy balance in Kuopio#Answer]] | ||
+ | |||
+ | library(OpasnetUtils) | ||
+ | library(ggplot2) | ||
+ | |||
+ | N <- 10 | ||
+ | |||
+ | objects.latest("Op_en5141", code_name = "initiate") | ||
+ | |||
+ | balance <- Ovariable("balance", ddata = "Op_en5469.equations") | ||
+ | |||
+ | balance@data$Policy[balance@data$Policy == ""] <- NA # Prepare indices for fillna. This should be part of fillna. | ||
+ | balance@data$CHPcapacity[balance@data$CHPcapacity == ""] <- NA | ||
+ | balance@data <- fillna(balance@data, marginals = 1:2) # Fill empty slots in indices. | ||
+ | |||
+ | nonlinearity <- Ovariable("nonlinearity", ddata = "Op_en5469", subset = "Nonlinearity parameters") | ||
+ | |||
+ | directinput <- Ovariable("directinput", ddata = "Op_en5141", subset = "No modelled upstream variables") | ||
+ | |||
+ | energy.balance <- EvalOutput(energy.balance) | ||
+ | |||
+ | oprint(summary(energy.balance)) | ||
+ | |||
+ | ggplot(energy.balance@output, aes_string(x = "energybalanceVars", y = "energy.balanceResult", fill = "Policy")) + | ||
+ | geom_boxplot() + | ||
+ | theme_grey(base_size = 24) + | ||
+ | theme(axis.text.x = element_text(angle = 90, hjust = 1)) | ||
+ | |||
+ | </rcode> | ||
+ | |||
+ | {{attack|# |Code directly from page [[Energy balance in Kuopio]]!|--[[User:Heta|Heta]] ([[User talk:Heta|talk]]) 12:39, 10 June 2015 (UTC)}} | ||
==Rationale== | ==Rationale== | ||
− | + | <t2b name="Equations" index="CHPcapacity,Policy,Equation" obs="Dummy" desc="Description" unit="GWh /a"> | |
− | + | | | | | | |
− | + | </t2b> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==See also== | ==See also== | ||
− | + | {{Helsinki energy decision 2015}} | |
==References== | ==References== | ||
<references/> | <references/> |
Latest revision as of 12:49, 1 September 2015
This page is a variable.
The page identifier is Op_en7273 |
---|
Moderator:Pauli (see all) |
Give your opinion to the peer rating of the content of this page. |
Upload data
|
Contents
Scope
What are the amounts of energy produced, consumed, imported, and exported in Helsinki?
Answer
⇤# : The code on this page is outdated. For up-to-date answers to this question, see Helsinki energy decision 2015. --Jouni (talk) 12:49, 1 September 2015 (UTC)
⇤# : Code directly from page Energy balance in Kuopio! --Heta (talk) 12:39, 10 June 2015 (UTC)
Rationale
Obs | CHPcapacity | Policy | Equation | Dummy | Description |
---|---|---|---|---|---|
1 |