This Gitlab instance will be briefly unavailable today from 19:15 CET onwards for maintenance reasons.
Diese Gitlab-Instanz wird heute ab 19:15 Uhr kurzzeitig nicht verfügbar sein aufgrund von Wartungsarbeiten.
@@ -26,7 +26,7 @@ This chapter was written and tested for the commit cfb979a0d0f037a24b9d916b72680
...
@@ -26,7 +26,7 @@ This chapter was written and tested for the commit cfb979a0d0f037a24b9d916b72680
**The goal**\* The goal was to define a model with higher resolution for Germany ([NUTS 2](https://ec.europa.eu/eurostat/de/web/gisco/geodata/reference-data/administrative-units-statistical-units/nuts), also see explanation of [NUTS](https://de.wikipedia.org/wiki/NUTS) and [NUTS:DE](https://de.wikipedia.org/wiki/NUTS:DE)) and limit modelling of neighbouring countries to a minimum. While the current solution is specific to Germany, it can easily be adapted to other countries.
**The goal**\* The goal was to define a model with higher resolution for Germany ([NUTS 2](https://ec.europa.eu/eurostat/de/web/gisco/geodata/reference-data/administrative-units-statistical-units/nuts), also see explanation of [NUTS](https://de.wikipedia.org/wiki/NUTS) and [NUTS:DE](https://de.wikipedia.org/wiki/NUTS:DE)) and limit modelling of neighbouring countries to a minimum. While the current solution is specific to Germany, it can easily be adapted to other countries.
**The way**
## The way
- Create a PyPSA-eur-network with desired config-settings (clustering.custom_busmap in the PyPSA-eur config file must be set to `false` at this step).
- Create a PyPSA-eur-network with desired config-settings (clustering.custom_busmap in the PyPSA-eur config file must be set to `false` at this step).
- 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.
...
@@ -35,13 +35,15 @@ This chapter was written and tested for the commit cfb979a0d0f037a24b9d916b72680
...
@@ -35,13 +35,15 @@ This chapter was written and tested for the commit cfb979a0d0f037a24b9d916b72680
- Enable clustering.custom_busmap in the PyPSA-eur config file by setting it to `true`.
- Enable clustering.custom_busmap in the PyPSA-eur config file by setting it to `true`.
- Create the final PyPSA-eur-network with desired settings (remember to match the wildcard `{clusters}` to `custom_busmap_elec_s_{clusters}.csv`).
- Create the final PyPSA-eur-network with desired settings (remember to match the wildcard `{clusters}` to `custom_busmap_elec_s_{clusters}.csv`).
**The result** Clustering as described above yields the following map. Note that colours only serve the purpose of visually separating clusters.
## The result
Clustering as described above yields the following map. Note that colours only serve the purpose of visually separating clusters.
| DE (NUTS 2 level), AT (NUTS 0) & IT (NUTS 0) with buses |  |
| DE (NUTS 2 level), AT (NUTS 0) & IT (NUTS 0) with buses |  |
**The errors** Several errors were encountered, when developing/using this tool. The following list serves as a short quick-fix guide reconstructed from the top of my head:
## The errors
Several errors were encountered, when developing/using this tool. The following list serves as a short quick-fix guide reconstructed from the top of my head:
| description | what caused it/what to do |
| description | what caused it/what to do |
|-------------|---------------------------|
|-------------|---------------------------|
| 'some number does not match expected number' | One of the mentioned number is twice the amount of buses in your \`networks/elec_s.nc". Somewhere along the way some buses were lost and are missing in the output. |
| 'some number does not match expected number' | One of the mentioned number is twice the amount of buses in your \`networks/elec_s.nc". Somewhere along the way some buses were lost and are missing in the output. |
...
@@ -49,7 +51,7 @@ This chapter was written and tested for the commit cfb979a0d0f037a24b9d916b72680
...
@@ -49,7 +51,7 @@ This chapter was written and tested for the commit cfb979a0d0f037a24b9d916b72680
Gain further insight by altering the following code snippet in ´C:\\ProgramData\\Miniconda3\\envs\\pypsa-eur\\Lib\\site-packages\\pypsa\\networkclustering.py´ to something like this:
Gain further insight by altering the following code snippet in ´C:\\ProgramData\\Miniconda3\\envs\\pypsa-eur\\Lib\\site-packages\\pypsa\\networkclustering.py´ to something like this: