Buildings in Basel: Difference between revisions
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
== Rationale == | == Rationale == | ||
=== Data === | |||
Detailed data can be found from [[:heande:Buildings in Basel]]. This data is aggregated to the postal code level. The table uses Swiss Land Survey coordinates CH1903. [http://spatialreference.org/ref/epsg/21782/] [http://en.wikipedia.org/wiki/Swiss_coordinate_system] Use this code in the ova2spat function: | Detailed data can be found from [[:heande:Buildings in Basel]]. This data is aggregated to the postal code level. The table uses Swiss Land Survey coordinates CH1903. [http://spatialreference.org/ref/epsg/21782/] [http://en.wikipedia.org/wiki/Swiss_coordinate_system] Use this code in the ova2spat function: | ||
proj4string = "+init=epsg:21781" | proj4string = "+init=epsg:21781" | ||
==== Renovations ==== | |||
Estimates from Laura Perez and Stephan Trüeb, unibas.ch N:\YMAL\Projects\Urgenche\WP9 Basel\Energy_scenarios_Basel_update.docx | |||
<t2b name='Fraction of houses renovated per year' index="Age" obs="Result" desc="Description" unit= "%"> | |||
0|0|Estimates from Laura Perez and Stephan Trüeb | |||
20|0|Assumption Result applies to buildings older than the value in the Age column. | |||
25|1| | |||
30|1| | |||
50|1| | |||
100|1| | |||
1000|1| | |||
</t2b> | |||
<t2b name='Popularity of renovation types' index='Renovation' obs='Fraction' desc='Description' unit='%'> | |||
None|0| | |||
Windows|65| | |||
Technical systems|30| | |||
Sheath reform|5| | |||
General|0| | |||
</t2b> | |||
==== Emission locations ==== | |||
Where and how do the emissions of heating take place? | |||
<t2b name='Emission locations' index='Heating,Emission site,Emission height' obs='Dummy' unit='-'> | |||
District|4056|High|4056 is the postal code of the heat and power plant IWB, Hagenaustrasse 40/70 4056 Basel. | |||
Long-distance heating|4056|High| | |||
Electricity|4056|High| | |||
Geothermal|4056|High| | |||
Centrifuge, hydro-extractor|4056|High| | |||
Heating oil|At site of consumption|Ground| | |||
Wood|At site of consumption|Ground| | |||
Gas|At site of consumption|Ground| | |||
Coal|At site of consumption|Ground| | |||
Solar heater/ collector|At site of consumption|Ground| | |||
No energy source|At site of consumption|Ground| | |||
Other sources|At site of consumption|Ground| | |||
</t2b> | |||
<t2b name="Locations of postal codes" index="Postal code,X" obs="Y" unit="epsg:21781"> | <t2b name="Locations of postal codes" index="Postal code,X" obs="Y" unit="epsg:21781"> | ||
Line 38: | Line 81: | ||
<rcode name="initiate" label="Initiate objects (developers only)" embed=1> | <rcode name="initiate" label="Initiate objects (developers only)" embed=1> | ||
library(OpasnetUtils) | library(OpasnetUtils) | ||
# [[Buildings in Basel]], building stock, locations by postal codes (in A Swiss coordinate system) | # [[Buildings in Basel]], building stock, locations by postal codes (in A Swiss coordinate system) | ||
Line 68: | Line 107: | ||
heatingShares <- 1 # This is already in the Basel data. | heatingShares <- 1 # This is already in the Basel data. | ||
renovationRate <- Ovariable("renovationRate", | renovationRate <- Ovariable('renovationRate', | ||
data = data.frame( | dependencies = data.frame(Name = "dummy"), | ||
formula = function(...) { | |||
Result = | temp <- tidy(opbase.data('Op_en7044', subset = 'Fraction of houses renovated per year')) | ||
) | temp$Age <- round(as.numeric(as.character(temp$Age))) | ||
out <- as.data.frame(approx( | |||
temp$Age, | |||
temp$Result, | |||
n = (max(temp$Age) - min(temp$Age) + 1), | |||
method = "constant" | |||
)) | |||
colnames(out) <- c("Age", "renovationRateResult") | |||
out$renovationRateResult <- out$renovationRateResult / 100 | |||
out <- Ovariable("renovationRate", output = out, marginals = c(TRUE, FALSE)) | |||
return(out) | |||
} | |||
) | |||
renovationShares <- Ovariable("renovationShares", | |||
dependencies = data.frame(Name = "dummy"), | |||
formula = function(...) { | |||
out <- Ovariable("raw", ddata = 'Op_en7044', subset = 'Popularity of renovation types') | |||
out <- findrest((out), cols = "Renovation", total = 100) / 100 | |||
renovationyear <- Ovariable("renovationyear", data = data.frame( | |||
Startyear = factor(2010 + 0:8 * 5), | |||
Result = 1 | |||
)) | |||
out <- out * renovationyear # renovation shares repeated for every potential renovation year. | |||
out@output$Renovation <- factor(out@output$Renovation, levels = c( | |||
"None", | |||
"General", | |||
"Windows", | |||
"Technical systems", | |||
"Sheath reform" | |||
), ordered = TRUE) | |||
return(out) | |||
} | |||
) | ) | ||
Line 94: | Line 169: | ||
</rcode> | </rcode> | ||
==See also== | ==See also== |
Revision as of 08:26, 25 February 2015
Moderator:Jouni (see all) |
|
Upload data
|
Question
What is the building stock in Basel?
Answer
Rationale
Data
Detailed data can be found from heande:Buildings in Basel. This data is aggregated to the postal code level. The table uses Swiss Land Survey coordinates CH1903. [1] [2] Use this code in the ova2spat function:
proj4string = "+init=epsg:21781"
Renovations
Estimates from Laura Perez and Stephan Trüeb, unibas.ch N:\YMAL\Projects\Urgenche\WP9 Basel\Energy_scenarios_Basel_update.docx
Obs | Age | Result | Description |
---|---|---|---|
1 | 0 | 0 | Estimates from Laura Perez and Stephan Trüeb |
2 | 20 | 0 | Assumption Result applies to buildings older than the value in the Age column. |
3 | 25 | 1 | |
4 | 30 | 1 | |
5 | 50 | 1 | |
6 | 100 | 1 | |
7 | 1000 | 1 |
Obs | Renovation | Fraction | Description |
---|---|---|---|
1 | None | 0 | |
2 | Windows | 65 | |
3 | Technical systems | 30 | |
4 | Sheath reform | 5 | |
5 | General | 0 |
Emission locations
Where and how do the emissions of heating take place?
Obs | Heating | Emission site | Emission height | Dummy |
---|---|---|---|---|
1 | District | 4056 | High | 4056 is the postal code of the heat and power plant IWB, Hagenaustrasse 40/70 4056 Basel. |
2 | Long-distance heating | 4056 | High | |
3 | Electricity | 4056 | High | |
4 | Geothermal | 4056 | High | |
5 | Centrifuge, hydro-extractor | 4056 | High | |
6 | Heating oil | At site of consumption | Ground | |
7 | Wood | At site of consumption | Ground | |
8 | Gas | At site of consumption | Ground | |
9 | Coal | At site of consumption | Ground | |
10 | Solar heater/ collector | At site of consumption | Ground | |
11 | No energy source | At site of consumption | Ground | |
12 | Other sources | At site of consumption | Ground |
Obs | Postal code | X | Y |
---|---|---|---|
1 | 4001 | 611296.55 | 267316.04 |
2 | 4051 | 611004.37 | 267137.18 |
3 | 4052 | 612735.06 | 266596.60 |
4 | 4053 | 611695.00 | 265635.41 |
5 | 4054 | 609694.31 | 266598.91 |
6 | 4055 | 609798.12 | 267812.13 |
7 | 4056 | 610271.78 | 268500.37 |
8 | 4057 | 611580.35 | 268976.81 |
9 | 4058 | 612781.70 | 268225.32 |
10 | 4059 | 611615.85 | 264689.04 |
11 | 4125 | 615721.84 | 269737.40 |
12 | 4126 | 617160.01 | 268852.20 |
Calculations
Initiation
This code creates ovariables that are needed to run the Building model and its ovariables buildings and heatingEnergy.
See also
References