message_ix_models.tools.bilateralize.bare_to_scenario

Move data from bare files to a dictionary to update a MESSAGEix scenario

This script is the second step in implementing the bilateralize tool. It moves data from /data/bilateralize/[your_trade_commodity]/bare_files/ to a dictionary compatible with updating a MESSAGEix scenario.

Functions

bare_to_scenario([project_name, ...])

Move data from bare files to a dictionary to update a MESSAGEix scenario

broadcast_years(df, year_type, year_list)

Broadcast vintage, relation, or activity years.

broadcast_yv_ya(df, ya_list, yv_list, ...)

Broadcast years to create vintage-activity year pairs.

build_parameter_sheets(log[, project_name, ...])

Read the input csv files and build the tech sets and parameters.

calibrate_historical_shipping(config, ...[, ...])

full_broadcast(data_dict, tec, ty, ya_list, ...)

Full broadcast function :param data_dict: Dictionary of parameter dataframes :param tec: Technology name :param ty: Type of parameter (trade or flow) :param ya_list: List of activity years :param yv_list: List of vintage years :param log: Logger