Buildings in Basel: Difference between revisions
Jump to navigation
Jump to search
(→Calculations: initiation code works) |
m (→Calculations) |
||
Line 38: | Line 38: | ||
# [[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) | ||
stockBuildings <- Ovariable("stockBuildings", ddata = "Op_en7044.postal_code_areas") | |||
colnames(stockBuildings@data)[colnames(stockBuildings@data) == "Eventyear"] <- "Time" | |||
# Geolocations of the buildings for emission calculations. | # Geolocations of the buildings for emission calculations. | ||
Line 53: | Line 54: | ||
)) | )) | ||
changeBuildings <- 0 | |||
obstime <- data.frame(Startyear = 2010) | |||
heating_before <- TRUE # Should heatingShares be calculated before renovate and timepoints (or after)? | |||
efficiency_before <- TRUE # Should efficiencyShares be calculated before renovate and timepoints (or after)? | |||
efficiencyShares <- Ovariable("efficiencies", data = data.frame(Efficiency = "New", Result = 1)) # Current efficiencies | |||
heatingShares <- 1 # Heating types of current buildings. Exists as part of buildingStock | heatingShares <- 1 # Heating types of current buildings. Exists as part of buildingStock | ||
heatingSharesNew <- 0 # Heating types of the buildings in the future | heatingSharesNew <- 0 # Heating types of the buildings in the future | ||
renovationRate <- 0 # Percentage of renovations per year | |||
renovationShares <- 0 # Fraction of renovation type when renovation is done. Renovations not considered. | renovationShares <- 0 # Fraction of renovation type when renovation is done. Renovations not considered. | ||
Line 66: | Line 67: | ||
# obsyear, # Years for which observations are calculated. Must be given in an assessment. | # obsyear, # Years for which observations are calculated. Must be given in an assessment. | ||
openv.setN(0) | |||
if(FALSE) { | |||
objects.store( | objects.store( | ||
buildingStock, # Current building stock | buildingStock, # Current building stock | ||
Line 93: | Line 99: | ||
renovationShares # Fraction of renovation type when renovation is done. | renovationShares # Fraction of renovation type when renovation is done. | ||
stored.\n") | stored.\n") | ||
} | |||
</rcode> | </rcode> | ||
Revision as of 13:24, 19 February 2015
Moderator:Jouni (see all) |
|
Upload data
|
Question
What is the building stock in Basel?
Answer
Rationale
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"
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
This code creates ovariables that are needed to run the Building model and its ovariables buildings and heatingEnergy.
See also
References