message_ix_models.model.transport.operator

genno operators for MESSAGEix-Transport.

Module Attributes

EEI_TECH_MAP

Mapping from technology names appearing in the IEA EEI data to those in MESSAGEix-Transport.

Functions

base_model_data_header(scenario, *, name)

Return a header comment for writing out base model data.

base_shares(base, nodes, techs, y)

Return base mode shares.

broadcast(q1, q2)

broadcast_advance(data, y0, config)

Broadcast ADVANCE data from native n coords to config["regions"].

broadcast_t_c_l(technologies, commodities, kind)

Return a Quantity for broadcasting dimension (t) to (c, l) for kind.

broadcast_wildcard(qty, coords, *[, dim])

Broadcast over coordinates coords along dimension dim.

broadcast_y_yv_ya(y, y_include, *[, method])

Return a quantity for broadcasting y to (yv, ya).

cost(price, gdp_ppp_cap, whours, speeds, votm, y)

Calculate cost of transport [money / distance].

distance_ldv(config)

Return annual driving distance per LDV.

distance_nonldv(context)

Return annual travel distance per vehicle for non-LDV transport modes.

dummy_prices(gdp)

duration_period(info)

Convert duration_period parameter data to Quantity.

expand_dims(qty, dim, *args, **kwargs)

Like Quantity.expand_dims().

extend_y(qty, y, *[, dim])

Extend qty along the dimension dim to cover all of y.

factor_fv(n, y, config)

Scaling factor for freight activity.

factor_input(y, t, t_agg, config)

Scaling factor for input (energy intensity of activity).

factor_pdt(n, y, t, config)

Scaling factor for passenger activity.

factor_ssp(config, nodes, years, *others, info)

Return a scaling factor for an SSP realization.

freight_usage_output(context)

Output efficiency for transport F {MODE} usage pseudo-technologies.

groups_iea_eweb(technologies)

Structure for calibration to IEA Extended World Energy Balances (EWEB).

groups_y_annual(duration_period)

Return a list of groupers for aggregating annual data to MESSAGE periods.

iea_eei_fv(name, config)

Returns base-year demand for freight from IEA EEI, with dimensions n-c-y.

indexers_n_cd(config)

Indexers for selecting (n, census_division) → n.

indexers_usage(technologies)

Indexers for replacing LDV t and cg with t_new for usage technologies.

logit(x, k, lamda, y, dim)

Compute probabilities for a logit random utility model.

max(qty[, dim, skipna, keep_attrs])

Like xarray.DataArray.max().

maybe_select(qty, *, indexers)

Select from qty if possible, using "*" wildcard.

merge_data(*others)

Slightly modified from message_ix_models.util.

min(qty[, dim, skipna, keep_attrs])

Like xarray.DataArray.min().

nodes_world_agg(config[, dim])

Mapping to aggregate e.g. nl="World" from values for child nodes of "World".

price_units(qty)

Forcibly adjust price units, if necessary.

quantity_from_config(config, name[, ...])

relabel2(qty, new_dims)

Replace dimensions with new ones using label templates.

sales_fraction_annual(age)

Return fractions of current vehicle stock that should be added in prior years.

share_weight(share, gdp, cost, lamda, ...)

Calculate mode share weights.

smooth(qty)

Smooth qty (e.g. PRICE_COMMODITY) in the y dimension.

transport_check(scenario, ACT)

Reporting operator for check().

uniform_in_dim(value[, dim])

Construct a uniform distribution from value along its \(y\)-dimension.

votm(gdp_ppp_cap)

Calculate value of time multiplier.