message_ix_models.tools.iea.web

Tools for IEA (Extended) World Energy Balance (WEB) data.

Module Attributes

COUNTRY_NAME

ISO 3166-1 alpha-3 codes for “COUNTRY” codes appearing in the 2024 edition.

DIMS

Dimensions of the data.

FILES

Mapping from (provider, year, time stamp) → set of file name(s) containing data.

WHERE

Location of FILES; where= argument to path_fallback().

Functions

dir_fallback(*parts, **kwargs)

Return path to the directory that contains a particular file.

fwf_to_csv(path[, progress])

Convert the IEA fixed-width file format to CSV.

generate_code_lists(provider, edition[, ...])

Extract structure from the data itself.

get_mapping(provider, edition)

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

iea_web_data_for_query(base_path, ...)

Load data from base_path / filenames in IEA WEB formats.

load_data(provider, edition[, query_expr, path])

Load data from the IEA World Energy Balances.

unpack_zip(path)

Unpack a ZIP archive.

Classes

IEA_EWEB(source, source_kw)

Provider of exogenous data from the IEA Extended World Energy Balances.