message_ix_models.model.buildings.report

Reporting for MESSAGEix-Buildings.

STURM output data are loaded from CSV files, manipulated, and stored as timeseries on a scenario.

Originally transcribed from reporting_EFC.py in the buildings repository.

Functions

add_aggregates(df, map_index)

Add aggregates to df using element map_index from MAPS.

add_global_total(df)

Add a global total (across the "node" dimension) to df.

buildings_agg0(spec, config)

Return mapping for buildings aggregation.

buildings_filters0(all_techs, years)

Return filters for buildings reporting.

buildings_filters1(years)

Return filters for buildings reporting.

callback(rep, context)

prepare_reporter() callback for MESSAGE-Buildings.

configure_legacy_reporting(config)

Callback to configure the legacy reporting.

fuel_sector_from_commodity(df)

Extract "fuel" and "sector" from "commodity" in df; apply NAME_MAP.

grouper(value, idx, map_index)

report0(scenario, filters)

Report buildings final energy.

report1(scenario, filters)

Report buildings emissions using the relation_activity approach.

report2(scenario, config)

Load STURM reporting outputs from file and return.

report3(scenario, sturm_rep)

Manipulate variable names for sturm_rep and compute additional sums.

sum_on(df, *columns)

Compute a sum on df, grouped by columns.

var_name(df, expr)

Format the "variable" column of df given expr.