message_ix_models.project.ssp.transport.finalize

message_ix_models.project.ssp.transport.finalize(q_all: TQuantity, q_emi_update: TQuantity, q_fe_update: TQuantity, model_name: str, scenario_name: str) DataFrame[source]

Finalize output.

  1. Reattach “Model” and “Scenario” labels.

  2. Reassemble the “Variable” dimension/coords of q_update; drop “e” and “t”.

  3. Convert both q_all and q_update to pandas.Series; update the former with the contents of the latter. This retains all other, unmodified data in q_all.

  4. Adjust to IAMC ‘wide’ structure.

Parameters:
  • q_all – All data. Quantity with dimensions \((n, y, UNIT, VARIABLE)\).

  • q_update – Revised data to overwrite corresponding values in q_all. Quantity with dimensions DIMS.