Model Customization File Specifications

August 1, 2024 ยท View on GitHub

This page describes the file formats needed to customize models in useeior. This includes models with aggregation and/or disaggregation of target sectors, integrated hybrid models hybridized with process LCI data, mixed unit models (which contain physical flow data), and waste input-output models.

Disaggreation and Aggregation .yml File Specification

Aggregating a sector requires only one .yml input file, while disaggregation requires a .yml input file and several .csv files to specify the disaggregation parameters. The disaggregation and aggregation files are assigned in a yml file based on the parameters shown below. Each file is a list, named based on the Code/location of the sector to be disaggregated or aggregated to (e.g. 221100/US)

Disaggregation

ItemTypeRequired?Description
OriginalSectorCodestrYCode/location of the sector to be disaggregated
OriginalSectorNamestrYName of the sector to be disaggregated
DisaggregationTypestrYCan be "Predefined" for a uniform disaggregation or "User Defined" for a custom disaggregation with user-supplied inputs
SectorFilestrYPointer to a file containing disaggregated sectors mapping
MakeFilestrNPointer to a file containing make table allocations for disaggregated sectors
UseFilestrNPointer to a file containing use table allocations for disaggregated sectors
EnvFilestrNPointer to a file containing satellite table data for disaggregated sectors

Aggregation

ItemTypeRequired?Description
SectorsstrYBracketed list of strings of the Code/location of the sectors to be aggregated, with the first item in the list being the main aggregation sector (i.e., where all sectors will be aggregated to).

Disaggregation Table Specifications

Input disaggregation tables are in csv format with the fields shown below. The Disaggregated Table format applies to both the Disaggregated Make and Disaggregated Use tables.

Disaggregated Sectors Format

This .csv file is a crosswalk between the most relevant 6-digit NAICS codes and the disaggregated sectors.

FieldTypeRequired?Description
NAICS_2012_CodestringYNAICS 2012 6-digit code
USEEIO_CodestringYCode for new sector in the form of Code/location
USEEIO_NamestringYName for new sector
CategorystringY2-digit NAICS Code:Description combination which the disaggregated sector would fall under (e.g., 22:Utilities for disaggregated electricity sector 221111/US)
SubcategorystringY3- or 4-digit NAICS Code:Description combination which the disaggregated sector would fall under (e.g., 2211:Electric Power Generation, Transmission, and Distribution for disaggregated electricity sector 221111/US)
DescriptionstringYDescription of the disaggregated sector

Disaggregated Table Format

These .csv files contain the input values required for the disaggregation of the Make and Use tables. One file is required for each table.

FieldTypeRequired?Description
IndustryCodestringYCode/location for industry. Values included in this column can represent the original industry code to be disaggregated; the new industry codes representing disaggregated sectors; or existing industries where an allocation for a newly disaggregated commodity is to be assigned.
CommodityCodestringYCode/location for commodity. Values included in this column can represent the original commodity code to be disaggregated; the new commodity codes representing disaggregated sectors; or existing commodities where an allocation for a newly disaggregated industry is to be assigned.
PercentAllocationnumericYPercent of sector output dedicated to the newly disaggregated sector. This column represents the allocation value for the specific industry/commodity combination specified by the IndustryCode and CommodityCode columns. All values must be between 0 and 1, to represent the percent allocated to the specific industry/commodity combination.
NotestringNThis column contains short text strings describing the allocation performed in each row. The text is intended to describe how the allocation value is used in the disaggregation.

Disaggregated Satellite Table Format

Matches totals-by-sector but includes an additional field SatelliteTable indicating the satellite table to which each record applies.

Hybridization File Specification

Model hybridization, e.g., with LCA data from unit processes is available via Model Type: EEIO-IH. This hybrid model type requires as input data normalized environmental and technical (i.e., supply chain) data. Additional examples of integrated hybrid models can be found in the Hybrid Input-Output (HIO) data repository.

ItemTypeRequired?Description
TechFilestrNPointer to a file containing technical inputs and outputs for hybrid sectors
EnvFilestrNPointer to a file containing normalized satellite table data for hybrid sectors

Hybridization Technical Table Format

To match the style of the A matrix:

Rows and columns are sectors in the format of code_loc

To build the A matrix, the technological data frame requires the following fields:

FieldTypeRequiredNote
ProcessIDstrYProcessID of the consuming process
ProcessNamestrY
ProcessUnitstrYReference flow
LocationstrYtwo-digit code, e.g., US
AmountfloatYNormalized per unit of reference flow
FlowIDstrYProcessID of the flow being consumed, use code_loc format
FlowstrNProcessName of the flow being consumed
FlowUnitstrNFEDEFL nomenclature

Hybridization Environmental Table Format

To match the style of the B matrix:

Rows are flowable/context/unit and columns are sector in the format of code_loc

To build the B matrix, the environmental data frame requires the following fields:

FieldTypeRequiredNote
ProcessIDstrYProcessID of the source process
ProcessNamestrY
LocationstrYtwo-digit code, e.g., US
AmountfloatYPer unit of reference flow
FlowablestrYFEDEFL nomenclature
ContextstrYFEDEFL nomenclature
UnitstrYFEDEFL nomenclature
FlowUUIDstrYFEDEFL nomenclature

Mixed Unit File Specification

Model hybridization which converts economic flows for target sectors into physical flows is available via Model Type: MUIO. This hybridization approach requires one .yml input file with one or more csv files that label specific sectors as mixed unit (using the MUIO tag) and price conversation data. Additional examples of mixed unit models can be found in the Hybrid Input-Output (HIO) data repository.

FieldTypeRequired?Description
SectorTypestringYe.g., MUIO
TagstringYStr tag used to identify the physical sector
NAICS_2012_CodestringYNAICS 2012 6-digit code
USEEIO_CodestringYCode for new sector in the form of Code/location
USEEIO_NamestringYName for new sector
CategorystringY2-digit NAICS Code:Description combination
SubcategorystringN3- or 4-digit NAICS Code:Description combination
DescriptionstringNDescription of the sector
PricenumericYPrice conversion to target unit
UnitstringYPhysical target unit

Waste Input Output File Specification

Model hybridization which appends physical waste flows and waste treatment processes via Model Type: WIO. This hybridization approach requires one .yml input file with one or more csv files that label specific sectors as: Waste Treatment Industries and Waste Treatment Commodities (economic sectors); as well as Waste Generation by Mass and Waste Generation by Treatment (physical sectors). Additional examples of mixed unit models can be found in the Hybrid Input-Output (HIO) data repository.

Waste Sectors Format

FieldTypeRequired?Description
SectorTypestringYe.g., WIO
USEEIO_CodestringYCode for new sector in the form of Code/location
USEEIO_NamestringYName for new sector
CategorystringY2-digit NAICS Code:Description combination
SubcategorystringN3- or 4-digit NAICS Code:Description combination
DescriptionstringNDescription of the sector
LocationstringNtwo-digit code, e.g., US
UnitstringYPhysical target unit

Waste Make and Use Table Format

FieldTypeRequired?Description
IndustryCodestringYin the form of Code/location
CommodityCodestringYin the form of Code/location
AmountnumericY
UnitstrY
WIO SectionstrN
NotestringN

Import Emission Factors

Specifications for import emission factors file, e.g.,

ImportFactors:
  StaticFile: "useeior/US_summary_import_factors_exio_2019_17sch.csv"
  FileLocation: "DataCommons"