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

Add optional rule for updating network topology from entsoe map #55

Closed
coroa opened this issue Aug 7, 2019 · 4 comments
Closed

Add optional rule for updating network topology from entsoe map #55

coroa opened this issue Aug 7, 2019 · 4 comments

Comments

@coroa
Copy link
Member

coroa commented Aug 7, 2019

Must be optional, since it is based on GridKit and requires a working Postgres database with PostGIS. Based on https://github.com/PyPSA/GridKit/tree/master/entsoe and https://rustyb.github.io/ee_transmap/.

@nworbmot
Copy link
Member

nworbmot commented Aug 7, 2019

Need to also update heuristic for reading line tags (e.g. multiple circuit types).

@coroa
Copy link
Member Author

coroa commented Nov 7, 2019

To make some headway here, there are 4 steps this entails:

  1. Getting the raw geojson data from their new mapbox endpoint
  2. Importing them into a postgres database with the postgis extension
  3. Running Gridkit on them
  4. Exporting them

All steps have to be run on the https://github.com/PyPSA/GridKit repo in the entsoe directory.

Step 1: Getting the raw GeoJSON data

This is in principle accomplished by running the download.sh script. You can remove the two rusty handles from the while loop, those are the previous datasets (as used in pypsa-eur, atm). One of the entsoe.* files will contain buses, one will contain line segments.

The problem is, that the underlying vt-geojson library hasn't received any love in the last year and the rapidly changing javascript ecosystem has long evolved away.

I found it is possible to get it to run anyway with the help of an ancient docker image for node:

docker run -it -v $PWD:/app:rw -w /app node:8.16.0-alpine sh download.sh

Steps 2-4: Import, running and export

Are governed in order by the shell-scripts import.sh, run.sh and export.sh (creative isn't it).

These depend on a postgres database server with the PostGIS extension and a python installation with several packages. It's probably possible with the correct docker image again, but previously I just installed the postgres things with apt.

Once postgres is running, you must create a new database (maybe install the PostGIS extension there?) and set the environment variables PG_USER, PG_PASSWORD and PG_DATABASE in your shell.

The python environment (don't know whether python3 works or you'll have to go back to 2.7) should contain:

psycopg2
geopandas
fiona
geojson

Then, you should (brace for impact) be able to execute the shell scripts in order and finally get all the csv files which you need for pypsa-eur.

Note that the ids and oids differ from the version in pypsa now, so that you will have to re-write the data/parameter_corrections.yaml file, maybe what is in there has been already fixed in the upstream map, though.

I'll try watching this thread, if you need further instructions.

@fneum fneum added this to the Release v0.2 milestone Jan 13, 2020
@fneum fneum self-assigned this Feb 10, 2020
@fneum fneum modified the milestones: Release v0.2, Release v0.3 Jun 8, 2020
@fneum fneum removed this from the Release v0.4 milestone Dec 1, 2020
@p-glaum p-glaum moved this to 🔝 Prioritized in @Roadmap Aug 1, 2022
@p-glaum p-glaum added this to @Roadmap Aug 1, 2022
@pz-max
Copy link
Collaborator

pz-max commented Sep 6, 2022

We discussed this today. We won't add an optional rule but aim to document the process how to update the network.
@martacki is speaking to @coroa to get some information on the process (if understood correctly)

@lisazeyen lisazeyen removed the status in @Roadmap Feb 7, 2023
fneum pushed a commit that referenced this issue Mar 6, 2023
make the script running with pandas 1.0, colors for some network plot…
@FabianHofmann FabianHofmann moved this to 🔝 Prioritized in @Roadmap Mar 7, 2023
@p-glaum p-glaum removed this from @Roadmap May 2, 2023
tgi-climact added a commit to Climact/pypsa-eur-climact that referenced this issue Jul 8, 2024
Merged in feature/tgi-slides (pull request PyPSA#55)

Feature/tgi slides

* Remove unused function

* Improve overall experience in app

* Improve import export display

* Add page to compare production and consumption profiles

* Add switch between production and consumption to profiles

* Add more comments
@fneum fneum added the wontfix label Aug 3, 2024
@fneum
Copy link
Member

fneum commented Aug 3, 2024

closing as we will phase-out the use of the ENTSO-E map in favor of OSM data (#1079)

@fneum fneum closed this as completed Aug 3, 2024
tgi-climact added a commit to Climact/pypsa-eur-climact that referenced this issue Sep 4, 2024
Merged in feature/tgi-slides (pull request PyPSA#55)

Feature/tgi slides

* Remove unused function

* Improve overall experience in app

* Improve import export display

* Add page to compare production and consumption profiles

* Add switch between production and consumption to profiles

* Add more comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants