mrio_toolbox.extractors.wiod.wiod_extractor¶
Extractor for WIOD 2016 files.
This script extracts data from WIOD xlsb files and converts them to NetCDF files for further use with the MRIO toolbox.
Supports WIOD 2016 in Excel format https://www.rug.nl/ggdc/valuechain/wiod/wiod-2016-release
Created on 08.01, 2024 @author: wirth, based on code of beaufils
Functions¶
|
Extract WIOD data. |
|
Load the raw WIOD matrix |
Module Contents¶
- mrio_toolbox.extractors.wiod.wiod_extractor.extract_wiod(year, source)[source]¶
Extract WIOD data.
Loads WIOD tables and labels and store them as NetCDF for further use with the mrio_toolbox library.
- Parameters:
year (str) – Data year to load.
parts (str) –
- Data blocks to load:
basic : T, Y all : T, Y, VA, QT, QY
source (path-like) – Path to folder where raw data is stored
- mrio_toolbox.extractors.wiod.wiod_extractor.load_raw_WIOD(path, year, release=16)[source]¶
Load the raw WIOD matrix
- Parameters:
year (int-like)
release (int-like, optional) – Version of the WIOD database. The default is 2016.
- Returns:
Full WIOD table as pandas DataFrame.
- Return type:
Pandas DataFrame