PyPSA / pypsa-ariadne

High resolution, sector-coupled model of the German Energy System
https://ariadneprojekt.de/en/model-documentation-pypsa/
MIT License
6 stars 4 forks source link

Import/Export of FT is subtracted/added to the national CO2 target #40

Closed toniseibold closed 3 months ago

toniseibold commented 3 months ago

When synfuels are imported to Germany (or any country) the emissions are not accounted for in the national CO2 target. The same applies to the export of synfuels. This PR adds in extra_functionality.py in the function add_co2limit_country(n, limit_countries, snakemake) the sum over all import and export of synfuels to/from Germany and subtract/adds multiplied by the emission factor of oil to the national CO2 target. PR https://github.com/PyPSA/pypsa-ariadne/pull/33 is therefore obsolete.

at the moment it will only work for "DE". If we want to enable that for any country, the untangling of the oil bus must be flexible as well. For this look into modify_prenetwork.py in https://github.com/PyPSA/pypsa-ariadne/pull/39