Update Clustering authored by Christine Nowak's avatar Christine Nowak
...@@ -31,7 +31,7 @@ The goal was to define a model with higher resolution for Germany ([nuts2](https ...@@ -31,7 +31,7 @@ The goal was to define a model with higher resolution for Germany ([nuts2](https
- modify `custom_clustering.py.ipynb` (in backbone_tools) such that it meets your needs. - modify `custom_clustering.py.ipynb` (in backbone_tools) such that it meets your needs.
- execute it. It will create a `custom_busmap_elec_s_{clusters}.csv` file where `clusters` is analogous to its use in the PyPSA-eur snakefile. It will be written to the PyPSA-eur-folder "data". - execute it. It will create a `custom_busmap_elec_s_{clusters}.csv` file where `clusters` is analogous to its use in the PyPSA-eur snakefile. It will be written to the PyPSA-eur-folder "data".
- delete all files in the PyPSA-eur-folder "network", "results" and "resources" - delete all files in the PyPSA-eur-folder "network", "results" and "resources"
- create a PyPSA-eur-network with desired settings (remember to match the wildcard `{clusters}` to `custom_busmap_elec_s_{clusters}.csv`; since custom clustering is now flagged as true in the PyPSA-eur-settings, it will create a custom clustered network) - create a PyPSA-eur-network with desired settings (remember to match the wildcard `{clusters}` to `custom_busmap_elec_s_{clusters}.csv`). Since custom clustering is now flagged as true in the PyPSA-eur-settings, it will create a custom clustered network.
**The result** **The result**
Clustering as described above yields the following map. Note that colours only serve the purpose of visually separating clusters. Clustering as described above yields the following map. Note that colours only serve the purpose of visually separating clusters.
... ...
......