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

Error reading EU-CAB database data using pyam #42

Open
nijswouter opened this issue Feb 28, 2023 · 2 comments
Open

Error reading EU-CAB database data using pyam #42

nijswouter opened this issue Feb 28, 2023 · 2 comments
Labels
bug Something isn't working data error (Possible) error in a related scenario database

Comments

@nijswouter
Copy link

Dear,

I wonder why following lines do not work when using pyam:
df = pyam.read_iiasa('eu-climate-advisory-board',region='World')
df = pyam.read_iiasa('eu-climate-advisory-board',variable=‘Emissions|CO2’)

I get following information:
InvalidIndexError: Reindexing only valid with uniquely valued Index objects

However, following lines work:
df = pyam.read_iiasa('eu-climate-advisory-board',model='TIAM-ECN 1.1')
df = pyam.read_iiasa('iamc15',region='World')
df = pyam.read_iiasa('iamc15',variable=‘Emissions|CO2’)

If this cannot be solved, is there another way to do a cross-comparison for one region?
I am unsure whether this is a PYAM issue or an issue with the EU climate advisory board set.

Kind regards,
Wouter

@danielhuppmann danielhuppmann changed the title pyam.read_iiasa InvalidIndexError Error reading EU-CAB database data using pyam Mar 1, 2023
@danielhuppmann danielhuppmann added bug Something isn't working data error (Possible) error in a related scenario database labels Mar 1, 2023
@danielhuppmann
Copy link
Member

danielhuppmann commented Mar 1, 2023

Thanks for reporting this issue!

Indeed, something seems to have gone wrong when uploading the meta indicators to the public instance of the EU Climate Advisory Board Scenario Explorer database. I'll investigate...

In the meantime, you can omit the meta indicators in the data query using

df = pyam.read_iiasa("eu-climate-advisory-board", meta=False, ...)

or you can query timeseries data and meta indicators separately using

conn = pyam.iiasa.Connection("eu-climate-advisory-board")
df = conn.query(meta=False, ...)
meta = conn.meta()

@nijswouter
Copy link
Author

Thanks for the fast response and the workaround!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working data error (Possible) error in a related scenario database
Projects
None yet
Development

No branches or pull requests

2 participants