message_ix_models.tools.iea.web.get_mapping

message_ix_models.tools.iea.web.get_mapping(provider: str, edition: str) MappingAdapter[source]

Return a Mapping Adapter from codes appearing in IEA EWEB data.

For each code in the COUNTRY code list for (provider, edition) that is a country name, the adapter maps the name to a corresponding ISO 3166-1 alpha-3 code. COUNTRY_NAME is used for values particular to IEA EWEB.

Using the adapter makes data suitable for aggregation using the message_ix_models node code lists, which include those alpha-3 codes as children of each region code.