pypsa-meets-earth / pypsa-earth

PyPSA-Earth: A flexible Python-based open optimisation model to study energy system futures around the world.
https://pypsa-earth.readthedocs.io/en/latest/
206 stars 166 forks source link

Overestimated hydro inflow #1043

Open energyLS opened 1 week ago

energyLS commented 1 week ago

Checklist

Describe the Bug

In my model results, the hydro capacity factor is at 100%. This is probably due to extremely high inflow values, which are in the range of TWh within the first hour already:

grafik

This is tested for New Zealand. A possible source of error could be, that I have selected normalization:method: hydro_capacities in the config but didn't add the data for New Zealand in data/hydro_capacities. In this case, there should be a hint to do so in the config?

Currently running normalization:method:eia to see if it works.

energyLS commented 5 days ago

I have traced it down, the reason is that the installed_hydro flag is not set correctly if alternative_clustering: True is applied. This is the case because hydro_ppls.bus is chosen but hydro_ppls.region_id is correct for GADM, see here:

grafik

Happy to set up a PR which includes this fix, if there are any smarter ideas on how to avoid another case separation I am open for ideas. @davide-f I have mentioned this error a while ago, but now stumbled across it again. What is your take on it?