Buildings in Basel: Difference between revisions
(4 intermediate revisions by the same user not shown) | |||
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 29: | Line 72: | ||
4126|617160.01|268852.20 | 4126|617160.01|268852.20 | ||
</t2b> | </t2b> | ||
==== Fuel use by heating type ==== | |||
Basel-specific data about connections between Heating and fuel usage. Generic data should be taken from [[Energy balance]]. | |||
<t2b name='Fuel use by heating type' index='Heating,Burner,Fuel' obs='Fraction' desc='Description' unit='-'> | |||
Long-distance heating|Large fluidized bed|Waste|0.5|The values are from Wikipedia for Basel. See below. | |||
Long-distance heating|Large fluidized bed|Wood|0.1| | |||
Long-distance heating|Large fluidized bed|Gas|0.4| | |||
Long-distance heating|Grid|Electricity|0|This is geothermally-generated district heating. Note: the fraction you need electricity is ca. 0.3*the amount of geoheat produced. | |||
Coal|Large fluidized bed|Coal|1| | |||
</t2b> | |||
For guesstimates about Long-distance heating (which is used in Basel), see [[Climate change policies in Basel]] and [[:de:IWB]]. | |||
<rcode name="fuelShares" label="Initiate fuelShares (developers only)" embed=1> | |||
## This code is Op_en7044/fuelShares on page [[Buildings in Basel]] | |||
library(OpasnetUtils) | |||
fuelShares <- Ovariable("fuelShares", | |||
dependencies = data.frame( | |||
Name = "fuelSharesgeneric", | |||
Ident = "Op_en5141/fuelSharesgeneric" # [[Energy balance]] | |||
), | |||
formula = function(...) { | |||
dat <- EvalOutput(Ovariable("dat", ddata = "Op_en7044", subset = "Fuel use by heating type")) # [[Buildings in Basel]] | |||
colnames(dat@output) <- gsub("[ \\.]", "_", colnames(dat@output)) | |||
out <- combine(fuelSharesgeneric, dat, name = "fuelShares") | |||
out <- out * Ovariable(output = data.frame(Time = 1900:2080, Result = 1), marginal = c(TRUE, FALSE)) | |||
out <- unkeep(out, prevresults = TRUE, sources = TRUE) | |||
return(out) | |||
} | |||
) | |||
objects.store(fuelShares) | |||
cat("Object fuelShares stored.\n") | |||
</rcode> | |||
=== Calculations === | === Calculations === | ||
This code creates ovariables that are needed to run the [[Building model]] and its ovariables buildings and heatingEnergy. | This code creates ovariables that are needed to run the [[Building model]] and its ovariables buildings and heatingEnergy. | ||
Line 38: | Line 122: | ||
<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 148: | ||
heatingShares <- 1 # This is already in the Basel data. | heatingShares <- 1 # This is already in the Basel data. | ||
renovationRate <- Ovariable(" | renovationRate <- Ovariable('renovationRate', | ||
data = data.frame( | dependencies = data.frame(Name = "dummy"), | ||
Age | formula = function(...) { | ||
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, marginal = 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( | |||
Obsyear = factor(c(2020, 2030, 2040, 2050)), | |||
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) | |||
} | |||
) | |||
dummy <- 1 | |||
objects.store( | objects.store( | ||
Line 81: | Line 199: | ||
heatingShares, # Heating types of current buildings | heatingShares, # Heating types of current buildings | ||
renovationRate, # Percentage of renovations per year | renovationRate, # Percentage of renovations per year | ||
renovationShares # Fraction of renovation type when renovation is done. From [[Building stock in Kuopio]] | renovationShares, # Fraction of renovation type when renovation is done. From [[Building stock in Kuopio]] | ||
dummy # Needed by renovationShares | |||
) | ) | ||
Line 94: | Line 213: | ||
</rcode> | </rcode> | ||
==See also== | ==See also== |
Latest revision as of 07:58, 23 July 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 |
Fuel use by heating type
Basel-specific data about connections between Heating and fuel usage. Generic data should be taken from Energy balance.
Obs | Heating | Burner | Fuel | Fraction | Description |
---|---|---|---|---|---|
1 | Long-distance heating | Large fluidized bed | Waste | 0.5 | The values are from Wikipedia for Basel. See below. |
2 | Long-distance heating | Large fluidized bed | Wood | 0.1 | |
3 | Long-distance heating | Large fluidized bed | Gas | 0.4 | |
4 | Long-distance heating | Grid | Electricity | 0 | This is geothermally-generated district heating. Note: the fraction you need electricity is ca. 0.3*the amount of geoheat produced. |
5 | Coal | Large fluidized bed | Coal | 1 |
For guesstimates about Long-distance heating (which is used in Basel), see Climate change policies in Basel and de:IWB.
Calculations
This code creates ovariables that are needed to run the Building model and its ovariables buildings and heatingEnergy.
See also
References