Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fixes for retrofit calculations #767

Merged
merged 7 commits into from
Oct 26, 2023
6 changes: 4 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 @@ -155,6 +155,7 @@ def prepare_building_stock_data():
building_data["type"].replace(
{
"Covered area: heated [Mm²]": "Heated area [Mm²]",
"Construction features (U-value)": "Construction features (U-values)",
"Windows ": "Window",
"Windows": "Window",
"Walls ": "Wall",
Expand Down Expand Up @@ -202,7 +203,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