Outdoor air temperature in Finland: Difference between revisions

From Opasnet
Jump to navigation Jump to search
(ovariable code)
mNo edit summary
 
Line 11: Line 11:
library(OpasnetUtils)
library(OpasnetUtils)
library(ggplot2)
library(ggplot2)
objects.latest("Op_en2959", code_name = "temperature")
objects.latest("Op_en2959", code_name = "temperatures")


ggplot(subset(temperdays@data, Time %in% c("2013", "2030", "2050")), aes(x = Temperature, y = Result, color = Time, group = Time))+geom_line()
ggplot(subset(temperdays@data, Time %in% c("2013", "2030", "2050")), aes(x = Temperature, y = Result, color = Time, group = Time))+geom_line()
Line 26: Line 26:
=== Calculations ===
=== Calculations ===


<rcode name="temperature" label="Initiate temperature (developers only)" embed=1>
<rcode name="temperatures" label="Initiate temperatures (for developers only)" embed=1>
## This is code is Op_en2959/temperatures [[Outdoor air temperature in Finland]]
## This is code is Op_en2959/temperatures [[Outdoor air temperature in Finland]]
library(OpasnetUtils)
library(OpasnetUtils)
Line 45: Line 45:
colnames(days)[colnames(days) == "Temperature"] <- "Result"
colnames(days)[colnames(days) == "Temperature"] <- "Result"
days$Temperature <- cut(days$Result, breaks = seq(-30, 33, 3))
days$Temperature <- cut(days$Result, breaks = seq(-30, 33, 3))
temperatures <- Ovariable("temperature", data = aggregate(days["Result"], days[c("Temperature", "Year")], FUN = mean))
temperatures <- Ovariable("temperatures", data = aggregate(days["Result"], days[c("Temperature", "Year")], FUN = mean))
temperdays <- Ovariable("temperdays", data = aggregate(days["Result"], days[c("Temperature", "Year")], FUN = length))
temperdays <- Ovariable("temperdays", data = aggregate(days["Result"], days[c("Temperature", "Year")], FUN = length))


Line 56: Line 56:


objects.store(temperatures, temperdays)
objects.store(temperatures, temperdays)
cat("Objects temperature, temperdays stored.\n")
cat("Objects temperatures, temperdays stored.\n")


#ggplot(hours, aes(x = Time, y = Result))+geom_line() + geom_point(data = days, aes(x = Date, y = Result, colour = "Daily mean", size = 2))
#ggplot(hours, aes(x = Time, y = Result))+geom_line() + geom_point(data = days, aes(x = Date, y = Result, colour = "Daily mean", size = 2))

Latest revision as of 08:20, 12 October 2015

Question

What are the outdoor air temperatures in Finland previously, now and in the future in different climate areas?

Answer

+ Show code

Rationale

Data from Statistics Finland:

Calculations

+ Show code


See also

Helsinki energy decision 2015
In English
Assessment Main page | Helsinki energy decision options 2015
Helsinki data Building stock in Helsinki | Helsinki energy production | Helsinki energy consumption | Energy use of buildings | Emission factors for burning processes | Prices of fuels in heat production | External cost
Models Building model | Energy balance | Health impact assessment | Economic impacts
Related assessments Climate change policies in Helsinki | Climate change policies and health in Kuopio | Climate change policies in Basel
In Finnish
Yhteenveto Helsingin energiapäätös 2015 | Helsingin energiapäätöksen vaihtoehdot 2015 | Helsingin energiapäätökseen liittyviä arvoja | Helsingin energiapäätös 2015.pptx

References


Related files