-
Notifications
You must be signed in to change notification settings - Fork 13
Retrofit Cost script
YONG WOOK KIM edited this page Feb 28, 2024
·
9 revisions
For Galveston, cost table is given (but need to adjust for the inflation), then based on the foundation type (bsmt_typ) updated in the new galveston inventory, and the foot_sq column we can calculate the cost.
- 0: not identified and can be assumed slab on grade (1ft from the ground)
- 1: slab on grade (1ft from the ground)
- 2: crawlspace (5ft from the ground)
- 3: Pile (10ft from the ground)
- Retrofit Strategy: comes from data service
- Building Inventory: comes from data service
- Retrofit Cost Table (optional): created from the image manually then saved with the script
- Use "retrofit strategy" as keyword to implement different method for calculating
- a csv table with "guid", "retrofit_cost"
- a json file that contains total cost information
- The column for bsmt 0 and 1 is Slab on Grade
- The column for bsmt 2 is Slab Separation
- The column for bsmt 3 is Open foundation
- From shpaefile's dbf file, get bsmt_type and sq_foot.
- The bsmt_type should be connected to the table created in step 1
- Also, the given retrofit table, associate the guid to see what elevation the each building has
- Then, calculate the cost by multiplying the cost from the step 1 table by using the bsmt_type and elevation to sq_foot.
- Apply inflation to the cost by multiplying the value of 1.79
- create the same output file as SLC retrofit cost
- output csv should have guid and cost
- output json should have total cost
For SLC, retrofit cost is given as a table with "guid" "cost" as it is without any calculation
- retrofit cost table: static csv table
- retrofit strategy: comes from data service
- a csv table with 'guid' and 'retrofit_cost'
- a json file that contains total_cost information
- the retrofit cost for each building has pre calculate already and recorded in the input table
- not every buildings has the cost
- the output should only have the rows that only exists in the retrofit strategy table
- to do this, the inner join between the input building inventory and retrofit strategy needed
- after inner join, if the cost is missing, give the 'NA' value
- the input inventory table was provided as static csv table
- retrofit strategy table is from data service
- there are two output files, one for csv table that has 'guid' and 'retrofit_cost' column, other is json file that has total cost