aeromaps.models.air_transport.aircraft_fleet_and_operations.load_factor.load_factor¶
load_factor¶
Module for computing aircraft load factor evolution.
LoadFactorMarket — per-market load factor.
LoadFactorAggregator — recombines per-market load factors into the global
load_factor consumed by downstream models
(CO2 emissions, airline costs, etc.).
LoadFactorMarket ¶
LoadFactorMarket(name, market_id, *args, **kwargs)
Bases: AeroMAPSModel
Per-market aircraft load factor projection.
Reads per-market parameters flattened from markets.yaml by
_initialize_markets():
<mid>_load_factor_end_year— target LF inend_year[%]<mid>_covid_load_factor_2020— LF override for 2020 [%]
Historical years use the global rpk_init / ask_init series, so
every market shares the same historical LF (no per-market historic split
exists — same convention as RPKMarket).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Discipline name. |
required |
market_id
|
str
|
Market identifier. |
required |
Source code in aeromaps/models/air_transport/aircraft_fleet_and_operations/load_factor/load_factor.py
79 80 81 82 83 84 85 86 87 88 89 90 91 | |
compute ¶
compute(input_data)
Execute the computation of per-market aircraft load factor.
Historical load factor values are computed from provided RPK and
historical ASK, initializes the 2019 load factor as a baseline, then
projects load factor forward to end_year using a quadratic model.
The 2020 value is overwritten with a Covid-19-specific value.
Source code in aeromaps/models/air_transport/aircraft_fleet_and_operations/load_factor/load_factor.py
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | |
LoadFactorMarketSimpleInterpolation ¶
LoadFactorMarketSimpleInterpolation(name, market_id, *args, **kwargs)
Bases: AeroMAPSModel
Per-market aircraft load factor projection via linear interpolation.
Instead of fitting a quadratic curve anchored at the last historical year,
this model projects the load factor by linearly interpolating the workbook
reference waypoints (e.g. 2025 → 83 %, 2045 → 88 %, 2050 → 89 %) using
the shared :func:aeromaps_interpolation_function. The result is a
piece-wise linear trajectory that hits every waypoint exactly, as opposed
to the smoothed LoadFactorMarket quadratic which only honours the
single load_factor_end_year target.
Select this model via global.load_factor.model: simple_interpolation
in markets.yaml; the default is quadratic (LoadFactorMarket).
Reads per-market parameters flattened from markets.yaml:
<mid>_load_factor_reference_years— list of reference years<mid>_load_factor_reference_years_values— LF values at those years [%]<mid>_covid_load_factor_2020— LF override for 2020 [%]
Historical years are filled from rpk_init / ask_init, identical to
LoadFactorMarket.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Discipline name. |
required |
market_id
|
str
|
Market identifier. |
required |
Source code in aeromaps/models/air_transport/aircraft_fleet_and_operations/load_factor/load_factor.py
183 184 185 186 187 188 189 190 191 192 193 194 195 196 | |
compute ¶
compute(input_data)
Execute the computation of per-market aircraft load factor via linear interpolation.
Historical load factor values are computed from provided RPK and ASK.
Prospective years are filled by linearly interpolating the reference
waypoints supplied in the workbook, using the shared
aeromaps_interpolation_function. The 2020 value is overwritten
with the Covid-19-specific value when 2020 falls in the prospective
window.
Source code in aeromaps/models/air_transport/aircraft_fleet_and_operations/load_factor/load_factor.py
198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 | |
LoadFactorAggregator ¶
LoadFactorAggregator(name='load_factor_aggregator', *args, **kwargs)
Bases: AeroMAPSModel
Recombine per-market load factors into the global load_factor.
Computed as rpk / ask * 100 from the already-aggregated totals, so
downstream consumers (CO2 emissions, airline costs, plots, ...) keep
seeing the same global load_factor series.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Discipline name. |
'load_factor_aggregator'
|
Source code in aeromaps/models/air_transport/aircraft_fleet_and_operations/load_factor/load_factor.py
251 252 253 254 255 256 257 258 259 | |
compute ¶
compute(input_data)
Aggregate load factor from total RPK and ASK.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_data
|
dict
|
Model inputs containing aggregated RPK and ASK series. |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Output dictionary with the global load factor series. |
Source code in aeromaps/models/air_transport/aircraft_fleet_and_operations/load_factor/load_factor.py
261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 | |