mrio_toolbox.extractors.figaro.figaro_extractor¶
Load and convert Figaro MRIO files.
Supports Figaro inter industry IO, supply and use tables in csv matrix format https://ec.europa.eu/eurostat/web/esa-supply-use-input-tables/database#Input-output%20tables%20industry%20by%20industry
The extractor loads the IO table and if available the supply and use tables.
@author: Florian Wirth
Functions¶
|
Extract FIGARO data. |
Module Contents¶
- mrio_toolbox.extractors.figaro.figaro_extractor.extract_figaro(year, source, format='industry by industry', sut='none', satellite_accounts=['env_ac_ainah_r2'], edition=25)[source]¶
Extract FIGARO data.
Loads FIGARO tables and labels and store them as NetCDF for further use with the mrio_toolbox library. Currently the extractor does not support emission satellite accounts (I couldn’t find them on the figaro website).
Put all tables as well as the ‘Description_FIGARO_Tables({edition}ed).xlsx’ file in the same source folder.
- Parameters:
year (str) – Data year to load.
source (path-like) – Path to folder where raw data is stored
format (str, optional) – Either ‘industry by industry’ or ‘product by product’.
sut (str, optional) – Supply and use tables to load, by default “none”. Available options are “none”, “supply”, “use” or “both”.
satellite_accounts (list of str, optional) – List of satellite accounts to load, by default [“”] (empty list). The respective csv files must be named as “{account}_{year}.csv” and be located in the source folder. Satellite accounts are named according to the eurostat nomenclature and should be downloaded with the download_MRIO() function or the eurostat python package. E.g. the emission satellite account is called ‘env_ac_ainah_r2’.
edition (int, optional) – Edition of the FIGARO tables, by default 25. The alternative is 24.