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

Total rural_heat demand too low in eGon100RE #400

Open
CarlosEpia opened this issue Feb 11, 2025 · 1 comment
Open

Total rural_heat demand too low in eGon100RE #400

CarlosEpia opened this issue Feb 11, 2025 · 1 comment
Assignees

Comments

@CarlosEpia
Copy link

pypsa_eur inlcudes a total rural_heat demand for Germany of 3.09e+08 MWh but the last version of eGon100RE only has 1.49e+08 MWh

@ClaraBuettner
Copy link

It took quite some time to find the problem since it is in the high aggregation level.
The problem is related to missing mapping of CTS buildings to MV grids; there were no entries for CTS buildings in boundaries.egon_map_zensus_mvgd_bulidings.

I found these lines where eGon2035 is still the hard-coded basis:

db.execute_sql(
sql_string=f"""
INSERT INTO {EgonMapZensusMvgdBuildings.__table_args__["schema"]}.
{EgonMapZensusMvgdBuildings.__tablename__}
SELECT
bld.id as building_id,
peak.sector,
zensus.id as zensus_population_id,
mvgd.bus_id::integer
FROM (
SELECT "id"::integer, geom_point
FROM openstreetmap.osm_buildings_synthetic
UNION
SELECT "id"::integer, geom_point
FROM openstreetmap.osm_buildings_filtered
) AS bld,
demand.egon_building_electricity_peak_loads AS peak,
society.destatis_zensus_population_per_ha
AS zensus,
boundaries.egon_map_zensus_grid_districts AS mvgd
WHERE bld.id = peak.building_id
-- Buildings do not change in the scenarios
AND peak.scenario = 'eGon2035'
AND ST_Within(bld.geom_point, zensus.geom)
AND mvgd.zensus_population_id = zensus.id;

I could imagine that changing this will solve it.
I don't know why everything else was working, it might also effect status2019.
However, I will try it out and push a branch/PR if it worked.

ClaraBuettner added a commit that referenced this issue Feb 12, 2025
…-mvgd

Map buildings on mvgd using the first scenario in the list of scenarios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants