message_ix_models.project.engage.workflow.calc_hist_cum_CO2

message_ix_models.project.engage.workflow.calc_hist_cum_CO2(context: Context, scen: Scenario, info: ScenarioInfo) tuple[float, float][source]

Calculate historic CO2 emissions.

Adapted from engage.scenario_runner.ScenarioRunner.calc_hist_cum_CO2(), with the following differences:

  • Reported emissions are retrieved for a region with the code “GLB region (R##)”, based on context. This allows the method to work with either R11 or R12 models.

Returns:

  • float – Cumulative emissions [megatonne CO₂].

  • float – Total duration of historical periods [years].