message_ix_models.model.buildings.rc_afofi.return_PERC_AFOFI

message_ix_models.model.buildings.rc_afofi.return_PERC_AFOFI() tuple[DataFrame, DataFrame][source]

Query the ECE IEA database and return the share of AFOFI in RC.

This function copied 2023-07-11 from iiasa/MESSAGE_Buildings @ 7fb0e6fd.

Todo

Describe which data from the IEA data base are used for the calculation, for instance by adding comments to the code.

Returns:

  • The first data frame pertains to rc_therm, the second to rc_spec.

  • Index axis named “regions”, with indices like “AFR”. These are the R12 nodes, except the codes do not match codes like “R12_AFR” in the scenario. The code does not support other codelists.

  • Columns axis named “flow_code”, with a single column named “perc_afofi”.

  • Values like 0.152, i.e. shares: note this contradicts “perc”ent in the function and column name, which would suggest percent values like 15.2.

Return type:

tuple (pandas.DataFrame, pandas.DataFrame)