This script allows for importing and indexing the RMRIO database files (*.mat-files) in Python as Pandas DataFrames. See below for instructions.
RMRIO: A highly resolved MRIO database for analyzing environmental footprints and Green Economy Progress
Cabernard, Livia, and Stephan Pfister. 2021. ‘A Highly Resolved MRIO Database for Analyzing Environmental Footprints and Green Economy Progress’. Science of The Total Environment 755 (February): 142587. https://doi.org/10.1016/j.scitotenv.2020.142587.
Download RMRIO via: https://zenodo.org/record/3993659
Author of this script (not of the RMRIO database) is jonas.bunsen@tu-berlin.de
Note: This module for importing the RMRIO database is not to be mistaken with the package pymrio for importing some of the most common MRIO databases and for conducting MRIO-analyses.
Download the RMRIO database and RMRIO labels for a specific year from Zenodo.org:
- Year_YYYY_RMRIO.zip
- Labels_RMRIO.zip
Extract the *.zip-files into the folder rmrio-data
and run main.py
. The actual code for importing is provided in pyrmrio/rmrio.py
. In the example given in the screenshot below, the file main.py
is located in a folder named RMRIO
.
Alternatively, the class rmrio_import
can be loaded in main.py
with the optional parameters rmrio_file_path
and rmrio_year
specified e.g.
rmrio_db_importer = rmrio.rmrio_import(
rmrio_file_path = "path/to/RMRIO/", # Default: "rmrio-data/"
rmrio_year = 2015 # Default: 2015
)