At the moment the bus ID for PV rooftop plants in status quo is determined on the grid district boundaries. This is sometimes wrong as the bus IDs for buildings is determined by the zensus cell which always have one distinct bus ID determined by the centroid, but the boundaries usually do not match. This needs to be changed:
At the moment the bus ID for PV rooftop plants in status quo is determined on the grid district boundaries. This is sometimes wrong as the bus IDs for buildings is determined by the zensus cell which always have one distinct bus ID determined by the centroid, but the boundaries usually do not match. This needs to be changed:
https://github.com/openego/eGon-data/blob/5b5dcaab6e12b710df5b9dcea173b1eb074ea082/src/egon/data/datasets/power_plants/pv_rooftop_buildings.py#L2157-L2182