-
Notifications
You must be signed in to change notification settings - Fork 207
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
Introducing OpenStreetMap high-voltage grid to PyPSA-Eur #1079
Open
bobbyxng
wants to merge
89
commits into
PyPSA:master
Choose a base branch
from
bobbyxng:osm-network-fast
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…r individual countries.
…licy and potential request errors.
…d code. Speed improvements
for more information, see https://pre-commit.ci
…aw and osm-prebuilt. Further cleaning in config.
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…e OSM base_network input files.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
closes #1100
Changes proposed in this Pull Request
This pull request introduces a first functioning implementation of the high voltage-electricity grid (incl. 200 kV and above) extracted from OpenStreetMap (OSM, https://www.openstreetmap.org). The implementation is proposed in such a way that the user can freely determine whether to use the existing electricity network based on the GridKit extract of the ENTSO-E online map or based on OSM.
Components/scripts
retrieve_osm_data.py
: Retrieves OSM data for the specified country using the overpass API and save itto the specified output (json) files. Note that overpass requests are based on a fair use policy.
retrieve_osm_data
is meant to be used in a way that respects this policy by fetching the needed data once, only.clean_osm_data.py
: The script performs various cleaning operations on the OSM data, including:build_osm_network.py
: Modified implementation of PyPSA-Earth'sbuild_osm_network.py
script, which creates a connected network, bybase.nc
Checklist
envs/environment.yaml
.config.default.yaml
.doc/configtables/*.csv
.doc/release_notes.rst
is added.Known issues and simplifications
p_nom
is currently calculated using the extracted voltage and the two DC line types available in PyPSA. In the future, we will determine the correct p_nom, e.g. by filling in the missing data to OSM, directly.base_network.py
(andbase_network_osm.py
, respectively) exist. This is partly related to how links are currently being handled in the OSM implementation. In the near future, this will be consolidated, so only onebase_network.py
for both GridKit and OSM-sourced electricity networks is needed.Benchmarks and validation
Benchmarks (exemplary for Europe retion)
Comparison of results/validation
Comparing route and circuit lengths against official ENTSO-E data (Inventory of transmission, https://www.entsoe.eu/data/power-stats/)
Base network overview
Line volume per NUTS1 region
Cross-regional capacity between NUTS1 regions
![scatterplot_crossregion_capacity](https://github.com/PyPSA/pypsa-eur/assets/36541459/cc8b5dc6-06c2-47a3-81
![scatterplot_crossregion_count](https://private-user-images.githubusercontent.com/36541459/332836298-d70871ca-8df5-4f72-834e-2fe08180262f.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3NzU3ODksIm5iZiI6MTcxOTc3NTQ4OSwicGF0aCI6Ii8zNjU0MTQ1OS8zMzI4MzYyOTgtZDcwODcxY2EtOGRmNS00ZjcyLTgzNGUtMmZlMDgxODAyNjJmLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjMwVDE5MjQ0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZlYTg2ODMwMzZiYjRkOWM3NzY0MDA0M2MxZjVlMTZjOWQ5OWRhYWMyYTdmNzI3NjM1MTY4ZjBjNDE2YmFhZWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.220H-Dm2BjXPIOo7u6YtK0Uqyx49bA0nmCd4m3vuYyU)
23-6d9daa0810ae)
Delta in electricity generation per country
Transmission (25h resolution, full-year run, no TYNDP projects, no line expansion)