Skip to content

Commit

Permalink
Merge pull request #767 from ekatef/retrofit_data_fixes
Browse files Browse the repository at this point in the history
Minor fixes for retrofit calculations
  • Loading branch information
fneum authored Oct 26, 2023
2 parents 9ce125b + a31b421 commit f35ecbe
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions scripts/build_retro_cost.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
)
# solar global radiation [kWh/(m^2a)]
solar_global_radiation = pd.Series(
[246, 401, 246, 148],
[271, 392, 271, 160],
index=["east", "south", "west", "north"],
name="solar_global_radiation [kWh/(m^2a)]",
)
Expand Down Expand Up @@ -164,6 +164,12 @@ def prepare_building_stock_data():
},
inplace=True,
)
building_data["feature"].replace(
{
"Construction features (U-value)": "Construction features (U-values)",
},
inplace=True,
)

building_data.country_code = building_data.country_code.str.upper()
building_data["subsector"].replace(
Expand Down Expand Up @@ -202,7 +208,8 @@ def prepare_building_stock_data():

# heated floor area ----------------------------------------------------------
area = building_data[
(building_data.type == "Heated area [Mm²]") & (building_data.detail != "Total")
(building_data.type == "Heated area [Mm²]")
& (building_data.subsector != "Total")
]
area_tot = area[["country", "sector", "value"]].groupby(["country", "sector"]).sum()
area = pd.concat(
Expand Down

0 comments on commit f35ecbe

Please sign in to comment.