IAMconsortium / pyam

Analysis & visualization of energy & climate scenarios
https://pyam-iamc.readthedocs.io/
Apache License 2.0
227 stars 119 forks source link

Reading filtered dataframes from iiasa contain incorrect properties #694

Closed Rlamboll closed 2 years ago

Rlamboll commented 2 years ago

When reading from the IIASA database, the returned database seems to always have .model, .scenario and .variable properties of the unfiltered database, even when we request only a subset of data.

new_read = read_iiasa( "iamc15", scenario="SSP2*", model="MESSAGE*", variable="*CO2" ) print(new_read.scenario) print(new_read.variable) investigate the properties

danielhuppmann commented 2 years ago

Interesting. From a first glance, the culprit is not the IIASA database API but initializing an IamDataFrame with incompatible data and meta indices...