message_ix_models.model.transport.factor

Tools for scaling factors.

Todo

Add further Layer subclasses beyond Constant for, for instance:

  • Linear interpolation between given points.

  • Exponentials, splines, and other functions.

Module Attributes

LMH

Common settings of ‘L’ow -20%, ‘M’edium = 0%, ‘H’igh = +20%.

OMIT_2025

Exclude 2020 and 2025 from certain factors.

COMMON

Common Factors for SSP quantification in transport.

Functions

insert(c, key, *, name, target[, dims])

Update c to apply the factor COMMON[name] to key.

Classes

Constant(value, dims)

A value that is constant across 1 or more dims.

Factor(layers)

Representation of assumptions used to construct a factor.

Keep(**kwargs)

A layer that preserves values for 1 or more labels along dim.

Layer()

Base class for layered assumptions used to build up a factor quantification.

Map(dim[, values])

A layer that maps to different values along dim.

Omit(**kwargs)

A layer that excludes 1 or more labels along dim.

ScenarioSetting([setting, default])

A layer that transforms a ‘scenario’ identifier to a particular ‘setting’.