GLORIA parser walkthrough#
This notebook is the practical guide for parsing GLORIA monetary SUT releases in MARIO.
What this notebook covers#
where the GLORIA release material comes from;
how the local GLORIA release should be laid out on disk;
when to pass the release root, the
part_Ifolder, or theGLORIA_MRIOs_*directory directly;how
valuation=,regions=, andsatellites=change the parse;why
dtypeandcachematter for large GLORIA runs.
Relevant source pages#
GLORIA overview: IELab GLORIA overview
release notes and supporting material: IELab GLORIA supporting documents
MARIO does not download GLORIA automatically. The expected workflow is to obtain the release locally and then point the parser to the release root, to the part_I economic-account folder, or directly to the GLORIA_MRIOs_* directory.
Main entry point#
For normal user workflows, the public entry point is:
mario.parse_gloria(...)
The current backend supports monetary SUT parsing only.
Key arguments#
The key public arguments are:
path: GLORIA release root, the Google Drivepart_Ieconomic-account folder, or directly theGLORIA_MRIOs_*directory;table: currently only"SUT"is supported;valuation: choose one markup branch such asbasic,trade,transport,taxes, orsubsidies;year: used when the selected root contains more than one GLORIA year;regions: optional subset of GLORIA region acronyms;satellites: optional satellite group or row selector;dtype: numeric storage type, withfloat32as the practical default;cache:Trueor one explicit path to persist the parsed result.
Local layout expectation#
The parser supports two local layouts.
Compact layout:
one
GLORIA_MRIOs_*directory with rawT,Y, andVcsv files;the matching
GLORIA_ReadMe_*.xlsxworkbook next to that dataset;optionally, one matching
GLORIA_SatelliteAccounts_*directory.
Google Drive layout:
one
GLORIA_MRIO_Loop*_part_I_MRIOdatabasefolder containing the economic-account dataset;one
GLORIA_MRIO_Loop*_part_III_satelliteaccountsfolder containing satellite accounts;the matching
GLORIA_ReadMe_*.xlsxworkbook under the same release root.
You can point MARIO to the release root, the part_I folder, or directly to one GLORIA_MRIOs_* directory.
[ ]:
import mario
Parse one GLORIA SUT#
Use this when you want the default basic valuation and the full region set.
[ ]:
db = mario.parse_gloria(
path="/path/to/GLORIA",
year=2023,
)
db
Restrict the satellite payload#
You can keep all satellites, one full row label, or one group name from the GLORIA ReadMe.
[ ]:
db = mario.parse_gloria(
path="/path/to/GLORIA",
satellites="Emissions",
year = 2023,
)
db
Practical warnings#
GLORIAis currentlySUT-only in MARIO.Full-region parses can be memory-intensive;
regions=,dtype="float32", andcache=Trueare usually sensible defaults.If the local release does not include a complete satellite-account directory, MARIO falls back to empty extensions.