[X] I am using the current main branch or the latest release. Please indicate.
[X] I am running on an up-to-date pypsa-earth environment. Update via conda env update -f envs/environment.yaml.
Describe the Bug
As OSM data is filled-in by users around the world, not all data is provided at equal quality or completeness.
For modelling the electricity grid in PyPSA, the most important columns are voltage, number of circuits, AC/DC type (and connected buses).
While in many cases, data is given for all three parameters, users sometimes fill in multiple circuits and voltages into a single OSM way. In cases where data is missing, heuristic methods can be applied.
Simple example:
voltage = "380;220"
circuits = "12"
frequency = "50"
Right now, PyPSA-Earth is handling this way:
Two lines are created
line_1
voltage = 380
circuits = 12
frequency = 50
line_2
voltage = 220
circuits = 12
frequency = 50
--> Leading to an over estimation. Based on comparisons for Europe, we have found that in most cases, the OSM user implied that the total number of circuits is 12. If no additional information on the distribution is available, a simple heuristic could be to simply divide the circuits by the number of split strings in the original voltage string. In this example, line_1 and line_2 would have 6 circuits, respectively. This is only one illustrative example, there are more cases to consider.
Checklist
main
branch or the latest release. Please indicate.pypsa-earth
environment. Update viaconda env update -f envs/environment.yaml
.Describe the Bug
Right now, PyPSA-Earth is handling this way:
Two lines are created
line_1
line_2
--> Leading to an over estimation. Based on comparisons for Europe, we have found that in most cases, the OSM user implied that the total number of circuits is 12. If no additional information on the distribution is available, a simple heuristic could be to simply divide the circuits by the number of split strings in the original voltage string. In this example, line_1 and line_2 would have 6 circuits, respectively. This is only one illustrative example, there are more cases to consider.