Changed snakefile to retrieve and reference data in the new way (storage and resources functions) and adapted the input plz_mapping in build_existing_chp_de.py accordingly
As a result, backtesting the model for 2020 can yield a more accurate central heat supply mix. However, this is only the case if the model is additionally restricted to not expand gas boilers (or gas boilers, heat pumps and resistive heaters) in 2020 (as done in prepare_sector_network.py in https://github.com/PyPSA/pypsa-eur/pull/907/commits/9219cb9ef39207943bdfc84437fead6ae222348b). Without this restriction the majority of the CHP fleet (gas, solid biomass) is not dispatched due to their high variable costs (CHP operation + fuel).
Without restriction:
With restriction:
a) restricting gas boilers
b) restricting gas boilers, air-sourced heat pumps, and resistive heaters
plz_mapping
inbuild_existing_chp_de.py
accordinglyprepare_sector_network.py
in https://github.com/PyPSA/pypsa-eur/pull/907/commits/9219cb9ef39207943bdfc84437fead6ae222348b). Without this restriction the majority of the CHP fleet (gas, solid biomass) is not dispatched due to their high variable costs (CHP operation + fuel).Without restriction:![urban_central_heat_2020_w_gas_boilers](https://github.com/PyPSA/pypsa-ariadne/assets/124347782/3c08c366-d232-41e8-b76b-958fe24dad83)
With restriction: a) restricting gas boilers![urban_central_heat_2020_wo_gas_boilers](https://github.com/PyPSA/pypsa-ariadne/assets/124347782/bab798df-78f1-4606-9a98-7dee87455b92)
b) restricting gas boilers, air-sourced heat pumps, and resistive heaters![urban_central_heat_2020_wo_boilershprh](https://github.com/PyPSA/pypsa-ariadne/assets/124347782/b442f437-f04f-4e2d-a2d0-138cfca8ad64)
Validation Source (AGFW):
https://www.agfw.de/energiewirtschaft-recht-politik/energiewende-politik/ueberblick-fakten-und-antworten-zu-fernwaerme