iiasa / eu-climate-advisory-board-workflow

5 stars 7 forks source link

Error reading EU-CAB database data using pyam #42

Open nijswouter opened 1 year ago

nijswouter commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Thanks for the fast response and the workaround!