message_ix_models.model.material.data_util

Utilities for reading and preparing material-related data files and projections.

This module contains helper functions to load, transform and broadcast tables used by the MESSAGEix-Materials build (e.g., reading TIMER Excel tables, mapping IEA flows, generating emission factors and projections).

Functions

add_macro_materials(scen, filename[, ...])

Prepare data for MACRO calibration by reading data from xlsx file.

add_water_par_data(scenario)

Adds water supply technologies that are required for the Materials build.

calculate_ini_new_cap(df_demand, technology, ...)

Derive initial_new_capacity_up data for CCS from projected cement demand.

drop_redundant_rows(scen, results)

Drop duplicate row and those where \(y^A - y^V > technical\_lifetime\).

gen_chemicals_co2_ind_factors(info, species)

Generate CO2_ind relation_activity values for chemical production.

gen_emi_rel_data(s_info, material)

gen_ethanol_to_ethylene_emi_factor(info)

Generate CO2_ind relation_activity values for ethanol_to_ethylene_petro.

gen_plastics_emission_factors(info, species)

Generate "CO2_Emission" relation parameter to account stored carbon in plastics.

gen_te_projections(scen[, ssp, method, ...])

Generate cost parameter data for scenario technology set.

get_region_map()

Construct a mapping from "COUNTRY" IDs to regions (nodes in the "R12" codelist).

get_ssp_soc_eco_data(context, model, ...)

Generate GDP and POP data of SSP 3.0 in bound_activity_* format.

map_iea_db_to_msg_regs(df_iea)

Add a "REGION" column to df_iea.

read_iea_tec_map(tec_map_fname)

Reads mapping file and returns relevant columns needed for technology mapping.

read_rel(scenario, material, ssp, filename)

Read relation_* type parameter data for specific industry

read_sector_data(scenario, sectname, ssp, ...)

Read sector data for industry with sectname.

read_timeseries(scenario, material, ssp, ...)

Read ‘time-series’ data from a material-specific filename.