This PR simplifies logic in convertUNFCCC by using madrat functions and unifies handling of 0s vs NAs in calcUNFCCC:
all countries in regions "EUR", "REF", "NEU", "CAZ" are set to 0s if they have NAs so regional aggregation yields results.
Before, this was limited only to data read in from the source, now it also includes data calculated on top of read in data.
This fixes the problem that
Emi|CO2|Industrial Processes and Emi|CO2|Energy|Demand|Industry are available for EU27 and CAZ, but Emi|CO2|Industry is not.
This PR simplifies logic in convertUNFCCC by using madrat functions and unifies handling of 0s vs NAs in calcUNFCCC: all countries in regions "EUR", "REF", "NEU", "CAZ" are set to 0s if they have NAs so regional aggregation yields results.
Before, this was limited only to data read in from the source, now it also includes data calculated on top of read in data.
This fixes the problem that
Emi|CO2|Industrial Processes
andEmi|CO2|Energy|Demand|Industry
are available for EU27 and CAZ, butEmi|CO2|Industry
is not.