Open pz-max opened 1 year ago
You can pickup this PR again:
https://github.com/PyPSA/pypsa-eur/pull/89
But I have closed it because it was not a priority for us.
You can pickup this PR again:
https://github.com/PyPSA/pypsa-eur/pull/89
But I have closed it because it was not a priority for us.
Cool thanks for sharing 🙂. Should have looked into this before. I think the issue raised here is especially useful if the study scope changes often.
Describe the feature you'd like to see
Currently, the co2 emissions for the 1990 base year are hard-coded in the config for Europe only. When the user wants to optimize only one country or a set of countries, they have to manually check and change the emissions for 1990. https://github.com/PyPSA/pypsa-eur/blob/5bf439009602ee950e509e12d1a4664ffc7bae54/config.default.yaml#L35-L40
What is proposed here, is to calculate the
co2base
automatically. A simple string could activate this automatic co2base calculation:A function which retrieves the data for the given countries and that calculates the co2base could be implemented in a "utils" folder and imported where the co2 constraints are defined. Depending on the data situation, we could host a CSV with all emissions per sector for all countries in the world. In case no data is available for a given country, an assertion is triggered which invites users to contribute detailed assumptions with references.