Buildings in Basel: Difference between revisions
Jump to navigation
Jump to search
(→Calculations: initiation code works) |
|||
Line 32: | Line 32: | ||
=== Calculations === | === Calculations === | ||
<rcode name="initiate" label="Initiate objects (developers only)" | This code creates ovariables that are needed to run the [[Building model]] and its ovariables buildings and heatingEnergy. | ||
<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) | |||
buildingStock <- Ovariable("buildingStock", ddata = "Op_en7044.postal_code_areas") | |||
# Geolocations of the buildings for emission calculations. | |||
emissionLocations <- Ovariable("emissionLocations", ddata = "Op_en7044.locations_of_postal_codes") | |||
####### DEFINE DUMMIES FOR MODEL PROPERTIES THAT ARE NOT NEEDED FOR BASEL | |||
construction <- Ovariable("construction", data = data.frame( | construction <- Ovariable("construction", data = data.frame( | ||
Postal.code = 4051, | Postal.code = 4051, | ||
Line 53: | Line 53: | ||
)) | )) | ||
# | buildingTypes <- 1 # A dummy variable to combine two different indices: Building and Building2 | ||
constructionAreas <- 1 #Places where construction takes place. | constructionAreas <- 1 #Places where construction takes place. | ||
efficiencies <- Ovariable("efficiencies", data = data.frame(Efficiency = "New", Result = 1)) # Current efficiencies | |||
efficienciesNew <- 0 # Energy efficiencies in the future | |||
eventyear <- 1 # A dummy variable to combine time periods to numerical time axis. | |||
heatingShares <- 1 # Heating types of current buildings. Exists as part of buildingStock | |||
heatingSharesNew <- 0 # Heating types of the buildings in the future | |||
# A dummy variable to combine time periods to numerical time axis. | renovation <- 0 # Percentage of renovations per year | ||
renovationShares <- 0 # Fraction of renovation type when renovation is done. Renovations not considered. | |||
# | |||
# | |||
# | |||
# Ovariables energyUse and savingPotential must be taken from [[Energy use of buildings]]. | |||
# obsyear, # Years for which observations are calculated. Must be given in an assessment. | |||
# | objects.store( | ||
# | buildingStock, # Current building stock | ||
buildingTypes, # A dummy variable to combine two different indices: Building and Building2 | |||
construction, # Construction rate in the future | |||
efficiencies, # Energy efficiencies of current buildings | |||
efficienciesNew, # Energy efficiencies in the future | |||
emissionLocations, # Locations of buildings | |||
eventyear, # A dummy variable to combine time periods to numerical time axis. | |||
heatingShares, # Heating types of current buildings | |||
heatingSharesNew, # Heating types of the buildings in the future | |||
renovation, # Percentage of renovations per year | |||
renovationShares # Fraction of renovation type when renovation is done. | |||
) | |||
cat("Objects | |||
buildingStock, # Current building stock | |||
buildingTypes, # A dummy variable to combine two different indices: Building and Building2 | |||
construction, # Construction rate in the future | |||
efficiencies, # Energy efficiencies of current buildings | |||
efficienciesNew, # Energy efficiencies in the future | |||
emissionLocations, # Locations of buildings | |||
eventyear, # A dummy variable to combine time periods to numerical time axis. | |||
heatingShares, # Heating types of current buildings | |||
heatingSharesNew, # Heating types of the buildings in the future | |||
renovation, # Percentage of renovations per year | |||
renovationShares # Fraction of renovation type when renovation is done. | |||
stored.\n") | |||
</rcode> | </rcode> |
Revision as of 06:28, 12 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