Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execution error: disaggregate_country(): "combined_iso" is not in "original_data" #33

Open
lukeconibear opened this issue Apr 26, 2021 · 5 comments

Comments

@lukeconibear
Copy link

Hi,

Can anyone help with the following error, please?

When I try to create any of the emissions, the execution halts with the following message:

Error in disaggregate_country(original_data = A.IEA_others_bunkers, trend_data = cdiac_trend_bunkers,  : 
  in disaggregate_country(): "combined_iso" is not in "original_data" 
Execution halted

This happens after the 8th call to disaggregate_country(), which I think refers to line 740 of A1.3.IEA_downscale_ctry.R.

I'm not sure what the solution is here and appreciate any help.

Setup

  • CEDS v2021_2_05
  • R 3.6.3
  • r_env 0.13.2
  • IEA energy statistics 2020 edition

Many thanks,
Luke

@ssmithClimate
Copy link
Collaborator

Did you do a "make clean-all" beforehand?

@lukeconibear
Copy link
Author

Yes

@ssmithClimate
Copy link
Collaborator

Looks like you're using a newer version of the IEA data (out to 2018 right?). So what is probably happening is there is some country, product and/or fuel in this data version that isn't in our mapping files. They seem to change something in every version. (We will update soon as well, but haven't done that yet.) We'd be happy to helpl figure out what that might be.

@lukeconibear
Copy link
Author

Thanks very much for your help.

This version of the IEA data is out to 2019. That makes sense, as there are differences in the countries and flows for this new IEA version. For example in IEA2020, there are more countries and the flows do not use acronyms. I've attached the templates for the IEA2020 data here if it helps see these differences, or I could summarise them in another way. Let me know.

@ssmithClimate
Copy link
Collaborator

The wiki discusses a bit what you'll need to do to modify mapping files to accommodate new data (although also, as noted there, make sure any non-ASCII 255 characters are removed). We will be updating to the new datasets (trying to order that now), we will push a new version with those changes, but that won't be for a couple months.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants