imagepbl / effort-sharing

Analysis and plotting scripts for effort sharing, associated with the Carbon Budget Explorer
MIT License
0 stars 0 forks source link

Several fixes #23

Closed MarkMDekker closed 9 months ago

MarkMDekker commented 9 months ago

Fixes #14 Fixes #2 Fixes #10

Maybe useful to know for @EHooijschuur and @chantalwuer :

I fixed the starting year issue with GDR and AP (unequal to the exact 2021 emissions), which had to do with the fact that for not all countries we have population, GDP and baseline information, while we do have this for the world. In other words: sum of all countries != world. So it is better to in every instance use = EARTH instead of summing over all countries. It did require adding the EARTH dimension properly from baseline, GDP and population data.

While testing, I also removed the permission error thing by closing the netcdf files read in by class_allocation.

I also removed the print statements in class_allocation, which was clutter and not used because the calculations are fast enough.

This unfortunately also made some changes in the class_allocation. Hope it does not conflict too much with your work when pulled.

MarkMDekker commented 9 months ago

Hi @chantalwuer I now updated the pandas append line. Does it now work for you?