Update plot_summary.py

-Add 2022 emissions to plot carbon budget
-Add UK emissions to the previous numbers
This commit is contained in:
Parisra 2024-05-16 17:06:28 +02:00 committed by GitHub
parent 27009f5060
commit ce14cd6647
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -477,9 +477,10 @@ def plot_carbon_budget_distribution(input_eurostat, options):
) )
emissions = historical_emissions(countries) emissions = historical_emissions(countries)
# add other years https://sdi.eea.europa.eu/data/0569441f-2853-4664-a7cd-db969ef54de0 # add other years https://sdi.eea.europa.eu/data/0569441f-2853-4664-a7cd-db969ef54de0
emissions.loc[2019] = 2.971372 emissions.loc[2019] = 3.414362
emissions.loc[2020] = 2.691958 emissions.loc[2020] = 3.092434
emissions.loc[2021] = 2.869355 emissions.loc[2021] = 3.290418
emissions.loc[2022] = 3.213025
if snakemake.config["foresight"] == "myopic": if snakemake.config["foresight"] == "myopic":
path_cb = "results/" + snakemake.params.RDIR + "/csvs/" path_cb = "results/" + snakemake.params.RDIR + "/csvs/"