Skip to content

aeromaps.models.impacts.emissions.co2_emissions

co2_emissions

This module contains models for calculating CO2 emissions and related factors.

KayaFactors

KayaFactors(name='kaya_factors', *args, **kwargs)

Bases: AeroMAPSModel

Class to compute Kaya factors for CO2 emissions calculation.

Parameters:

Name Type Description Default
name str

Name of the model instance ('kaya_factors' by default).

'kaya_factors'
Source code in aeromaps/models/impacts/emissions/co2_emissions.py
24
25
def __init__(self, name="kaya_factors", *args, **kwargs):
    super().__init__(name=name, *args, **kwargs)

compute

compute(ask, rtk, energy_consumption_passenger_dropin_fuel_without_operations, energy_consumption_passenger_hydrogen_without_operations, energy_consumption_passenger_electric_without_operations, energy_consumption_passenger_dropin_fuel, energy_consumption_passenger_hydrogen, energy_consumption_passenger_electric, energy_consumption_freight_dropin_fuel_without_operations, energy_consumption_freight_hydrogen_without_operations, energy_consumption_freight_electric_without_operations, energy_consumption_freight_dropin_fuel, energy_consumption_freight_hydrogen, energy_consumption_freight_electric, energy_consumption_dropin_fuel, energy_consumption_hydrogen, energy_consumption_electric, energy_consumption, dropin_fuel_mean_co2_emission_factor, hydrogen_mean_co2_emission_factor, electric_mean_co2_emission_factor)

Execute the computation of Kaya factors for CO2 emissions calculation.

Parameters:

Name Type Description Default
ask Series

Available seat kilometers (ASK) [ASK].

required
rtk Series

Revenue ton kilometers (RTK) [RTK].

required
energy_consumption_passenger_dropin_fuel_without_operations Series

Energy consumption for passenger transport using drop-in fuels without operational improvements [MJ].

required
energy_consumption_passenger_hydrogen_without_operations Series

Energy consumption for passenger transport using hydrogen without operational improvements [MJ].

required
energy_consumption_passenger_electric_without_operations Series

Energy consumption for passenger transport using electricity without operational improvements [MJ].

required
energy_consumption_passenger_dropin_fuel Series

Energy consumption for passenger transport using drop-in fuels [MJ].

required
energy_consumption_passenger_hydrogen Series

Energy consumption for passenger transport using hydrogen [MJ].

required
energy_consumption_passenger_electric Series

Energy consumption for passenger transport using electricity [MJ].

required
energy_consumption_freight_dropin_fuel_without_operations Series

Energy consumption for freight transport using drop-in fuels without operational improvements [MJ].

required
energy_consumption_freight_hydrogen_without_operations Series

Energy consumption for freight transport using hydrogen without operational improvements [MJ].

required
energy_consumption_freight_electric_without_operations Series

Energy consumption for freight transport using electricity without operational improvements [MJ].

required
energy_consumption_freight_dropin_fuel Series

Energy consumption for freight transport using drop-in fuels [MJ].

required
energy_consumption_freight_hydrogen Series

Energy consumption for freight transport using hydrogen [MJ].

required
energy_consumption_freight_electric Series

Energy consumption for freight transport using electricity [MJ].

required
energy_consumption_dropin_fuel Series

Total energy consumption using drop-in fuels [MJ].

required
energy_consumption_hydrogen Series

Total energy consumption using hydrogen [MJ].

required
energy_consumption_electric Series

Total energy consumption using electricity [MJ].

required
energy_consumption Series

Total energy consumption [MJ].

required
dropin_fuel_mean_co2_emission_factor Series

Mean CO2 emission factor for drop-in fuels [gCO2/MJ].

required
hydrogen_mean_co2_emission_factor Series

Mean CO2 emission factor for hydrogen [gCO2/MJ].

required
electric_mean_co2_emission_factor Series

Mean CO2 emission factor for electricity [gCO2/MJ].

required

Returns:

Type Description
energy_per_ask_mean_without_operations

Energy consumption per ASK without operational improvements [MJ/ASK].

energy_per_ask_mean

Energy consumption per ASK [MJ/ASK].

energy_per_rtk_mean_without_operations

Energy consumption per RTK without operational improvements [MJ/RTK].

energy_per_rtk_mean

Energy consumption per RTK [MJ/RTK].

co2_per_energy_mean

CO2 emissions per unit of energy consumed [gCO2/MJ].

Source code in aeromaps/models/impacts/emissions/co2_emissions.py
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
def compute(
    self,
    ask: pd.Series,
    rtk: pd.Series,
    energy_consumption_passenger_dropin_fuel_without_operations: pd.Series,
    energy_consumption_passenger_hydrogen_without_operations: pd.Series,
    energy_consumption_passenger_electric_without_operations: pd.Series,
    energy_consumption_passenger_dropin_fuel: pd.Series,
    energy_consumption_passenger_hydrogen: pd.Series,
    energy_consumption_passenger_electric: pd.Series,
    energy_consumption_freight_dropin_fuel_without_operations: pd.Series,
    energy_consumption_freight_hydrogen_without_operations: pd.Series,
    energy_consumption_freight_electric_without_operations: pd.Series,
    energy_consumption_freight_dropin_fuel: pd.Series,
    energy_consumption_freight_hydrogen: pd.Series,
    energy_consumption_freight_electric: pd.Series,
    energy_consumption_dropin_fuel: pd.Series,
    energy_consumption_hydrogen: pd.Series,
    energy_consumption_electric: pd.Series,
    energy_consumption: pd.Series,
    dropin_fuel_mean_co2_emission_factor: pd.Series,
    hydrogen_mean_co2_emission_factor: pd.Series,
    electric_mean_co2_emission_factor: pd.Series,
) -> Tuple[pd.Series, pd.Series, pd.Series, pd.Series, pd.Series]:
    """
    Execute the computation of Kaya factors for CO2 emissions calculation.

    Parameters
    ----------
    ask
        Available seat kilometers (ASK) [ASK].
    rtk
        Revenue ton kilometers (RTK) [RTK].
    energy_consumption_passenger_dropin_fuel_without_operations
        Energy consumption for passenger transport using drop-in fuels without operational improvements [MJ].
    energy_consumption_passenger_hydrogen_without_operations
        Energy consumption for passenger transport using hydrogen without operational improvements [MJ].
    energy_consumption_passenger_electric_without_operations
        Energy consumption for passenger transport using electricity without operational improvements [MJ].
    energy_consumption_passenger_dropin_fuel
        Energy consumption for passenger transport using drop-in fuels [MJ].
    energy_consumption_passenger_hydrogen
        Energy consumption for passenger transport using hydrogen [MJ].
    energy_consumption_passenger_electric
        Energy consumption for passenger transport using electricity [MJ].
    energy_consumption_freight_dropin_fuel_without_operations
        Energy consumption for freight transport using drop-in fuels without operational improvements [MJ].
    energy_consumption_freight_hydrogen_without_operations
        Energy consumption for freight transport using hydrogen without operational improvements [MJ].
    energy_consumption_freight_electric_without_operations
        Energy consumption for freight transport using electricity without operational improvements [MJ].
    energy_consumption_freight_dropin_fuel
        Energy consumption for freight transport using drop-in fuels [MJ].
    energy_consumption_freight_hydrogen
        Energy consumption for freight transport using hydrogen [MJ].
    energy_consumption_freight_electric
        Energy consumption for freight transport using electricity [MJ].
    energy_consumption_dropin_fuel
        Total energy consumption using drop-in fuels [MJ].
    energy_consumption_hydrogen
        Total energy consumption using hydrogen [MJ].
    energy_consumption_electric
        Total energy consumption using electricity [MJ].
    energy_consumption
        Total energy consumption [MJ].
    dropin_fuel_mean_co2_emission_factor
        Mean CO2 emission factor for drop-in fuels [gCO2/MJ].
    hydrogen_mean_co2_emission_factor
        Mean CO2 emission factor for hydrogen [gCO2/MJ].
    electric_mean_co2_emission_factor
        Mean CO2 emission factor for electricity [gCO2/MJ].

    Returns
    -------
    energy_per_ask_mean_without_operations
        Energy consumption per ASK without operational improvements [MJ/ASK].
    energy_per_ask_mean
        Energy consumption per ASK [MJ/ASK].
    energy_per_rtk_mean_without_operations
        Energy consumption per RTK without operational improvements [MJ/RTK].
    energy_per_rtk_mean
        Energy consumption per RTK [MJ/RTK].
    co2_per_energy_mean
        CO2 emissions per unit of energy consumed [gCO2/MJ].
    """
    energy_per_ask_mean_without_operations = (
        +energy_consumption_passenger_dropin_fuel_without_operations
        + energy_consumption_passenger_hydrogen_without_operations
        + energy_consumption_passenger_electric_without_operations
    ) / ask

    energy_per_ask_mean = (
        +energy_consumption_passenger_dropin_fuel
        + energy_consumption_passenger_hydrogen
        + energy_consumption_passenger_electric
    ) / ask

    energy_per_rtk_mean_without_operations = (
        +energy_consumption_freight_dropin_fuel_without_operations
        + energy_consumption_freight_hydrogen_without_operations
        + energy_consumption_freight_electric_without_operations
    ) / rtk

    energy_per_rtk_mean = (
        +energy_consumption_freight_dropin_fuel
        + energy_consumption_freight_hydrogen
        + energy_consumption_freight_electric
    ) / rtk

    # TODO
    #  --> Better way than fillna to handle years where no energy is produced?

    co2_per_energy_mean = (
        +dropin_fuel_mean_co2_emission_factor.fillna(0) * energy_consumption_dropin_fuel
        + hydrogen_mean_co2_emission_factor.fillna(0) * energy_consumption_hydrogen
        + electric_mean_co2_emission_factor.fillna(0) * energy_consumption_electric
    ) / energy_consumption

    self.df.loc[:, "energy_per_ask_mean_without_operations"] = (
        energy_per_ask_mean_without_operations
    )
    self.df.loc[:, "energy_per_rtk_mean_without_operations"] = (
        energy_per_rtk_mean_without_operations
    )
    self.df.loc[:, "energy_per_ask_mean"] = energy_per_ask_mean
    self.df.loc[:, "energy_per_rtk_mean"] = energy_per_rtk_mean
    self.df.loc[:, "co2_per_energy_mean"] = co2_per_energy_mean

    return (
        energy_per_ask_mean_without_operations,
        energy_per_ask_mean,
        energy_per_rtk_mean_without_operations,
        energy_per_rtk_mean,
        co2_per_energy_mean,
    )

CO2Emissions

CO2Emissions(name='co2_emissions', *args, **kwargs)

Bases: AeroMAPSModel

Class to compute CO2 emissions.

Parameters:

Name Type Description Default
name str

Name of the model instance ('co2_emissions' by default).

'co2_emissions'
Source code in aeromaps/models/impacts/emissions/co2_emissions.py
174
175
176
def __init__(self, name="co2_emissions", *args, **kwargs):
    super().__init__(name=name, *args, **kwargs)
    self.climate_historical_data = None

compute

compute(rpk_short_range, rpk_medium_range, rpk_long_range, rtk, load_factor, energy_per_ask_short_range_dropin_fuel, energy_per_ask_medium_range_dropin_fuel, energy_per_ask_long_range_dropin_fuel, energy_per_rtk_freight_dropin_fuel, energy_per_ask_short_range_hydrogen, energy_per_ask_medium_range_hydrogen, energy_per_ask_long_range_hydrogen, energy_per_rtk_freight_hydrogen, energy_per_ask_short_range_electric, energy_per_ask_medium_range_electric, energy_per_ask_long_range_electric, energy_per_rtk_freight_electric, ask_short_range_dropin_fuel_share, ask_medium_range_dropin_fuel_share, ask_long_range_dropin_fuel_share, rtk_dropin_fuel_share, ask_short_range_hydrogen_share, ask_medium_range_hydrogen_share, ask_long_range_hydrogen_share, rtk_hydrogen_share, ask_short_range_electric_share, ask_medium_range_electric_share, ask_long_range_electric_share, rtk_electric_share, dropin_fuel_mean_co2_emission_factor, hydrogen_mean_co2_emission_factor, electric_mean_co2_emission_factor)

CO2 emissions calculation.

Parameters:

Name Type Description Default
rpk_short_range Series

Revenue passenger kilometers for short-range flights [RPK].

required
rpk_medium_range Series

Revenue passenger kilometers for medium-range flights [RPK].

required
rpk_long_range Series

Revenue passenger kilometers for long-range flights [RPK].

required
rtk Series

Revenue ton kilometers [RTK].

required
load_factor Series

Load factor [%].

required
energy_per_ask_short_range_dropin_fuel Series

Energy consumption per ASK for short-range flights using drop-in fuels [MJ/ASK].

required
energy_per_ask_medium_range_dropin_fuel Series

Energy consumption per ASK for medium-range flights using drop-in fuels [MJ/ASK].

required
energy_per_ask_long_range_dropin_fuel Series

Energy consumption per ASK for long-range flights using drop-in fuels [MJ/ASK].

required
energy_per_rtk_freight_dropin_fuel Series

Energy consumption per RTK for freight using drop-in fuels [MJ/RTK].

required
energy_per_ask_short_range_hydrogen Series

Energy consumption per ASK for short-range flights using hydrogen [MJ/ASK].

required
energy_per_ask_medium_range_hydrogen Series

Energy consumption per ASK for medium-range flights using hydrogen [MJ/ASK].

required
energy_per_ask_long_range_hydrogen Series

Energy consumption per ASK for long-range flights using hydrogen [MJ/ASK].

required
energy_per_rtk_freight_hydrogen Series

Energy consumption per RTK for freight using hydrogen [MJ/RTK].

required
energy_per_ask_short_range_electric Series

Energy consumption per ASK for short-range flights using electricity [MJ/ASK].

required
energy_per_ask_medium_range_electric Series

Energy consumption per ASK for medium-range flights using electricity [MJ/ASK].

required
energy_per_ask_long_range_electric Series

Energy consumption per ASK for long-range flights using electricity [MJ/ASK].

required
energy_per_rtk_freight_electric Series

Energy consumption per RTK for freight using electricity [MJ/RTK].

required
ask_short_range_dropin_fuel_share Series

Share of drop-in fuels in ASK for short-range flights [%].

required
ask_medium_range_dropin_fuel_share Series

Share of drop-in fuels in ASK for medium-range flights [%].

required
ask_long_range_dropin_fuel_share Series

Share of drop-in fuels in ASK for long-range flights [%].

required
rtk_dropin_fuel_share Series

Share of drop-in fuels in RTK for freight [%].

required
ask_short_range_hydrogen_share Series

Share of hydrogen in ASK for short-range flights [%].

required
ask_medium_range_hydrogen_share Series

Share of hydrogen in ASK for medium-range flights [%].

required
ask_long_range_hydrogen_share Series

Share of hydrogen in ASK for long-range flights [%].

required
rtk_hydrogen_share Series

Share of hydrogen in RTK for freight [%].

required
ask_short_range_electric_share Series

Share of electricity in ASK for short-range flights [%].

required
ask_medium_range_electric_share Series

Share of electricity in ASK for medium-range flights [%].

required
ask_long_range_electric_share Series

Share of electricity in ASK for long-range flights [%].

required
rtk_electric_share Series

Share of electricity in RTK for freight [%].

required
dropin_fuel_mean_co2_emission_factor Series

Mean CO2 emission factor for drop-in fuels [gCO2/MJ].

required
hydrogen_mean_co2_emission_factor Series

Mean CO2 emission factor for hydrogen [gCO2/MJ].

required
electric_mean_co2_emission_factor Series

Mean CO2 emission factor for electricity [gCO2/MJ].

required

Returns:

Type Description
co2_emissions_short_range

CO2 emissions from short-range flights [MtCO2].

co2_emissions_medium_range

CO2 emissions from medium-range flights [MtCO2].

co2_emissions_long_range

CO2 emissions from long-range flights [MtCO2].

co2_emissions_passenger

CO2 emissions from passenger transport [MtCO2].

co2_emissions_freight

CO2 emissions from freight transport [MtCO2].

co2_emissions

Total CO2 emissions [MtCO2].

Source code in aeromaps/models/impacts/emissions/co2_emissions.py
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
def compute(
    self,
    rpk_short_range: pd.Series,
    rpk_medium_range: pd.Series,
    rpk_long_range: pd.Series,
    rtk: pd.Series,
    load_factor: pd.Series,
    energy_per_ask_short_range_dropin_fuel: pd.Series,
    energy_per_ask_medium_range_dropin_fuel: pd.Series,
    energy_per_ask_long_range_dropin_fuel: pd.Series,
    energy_per_rtk_freight_dropin_fuel: pd.Series,
    energy_per_ask_short_range_hydrogen: pd.Series,
    energy_per_ask_medium_range_hydrogen: pd.Series,
    energy_per_ask_long_range_hydrogen: pd.Series,
    energy_per_rtk_freight_hydrogen: pd.Series,
    energy_per_ask_short_range_electric: pd.Series,
    energy_per_ask_medium_range_electric: pd.Series,
    energy_per_ask_long_range_electric: pd.Series,
    energy_per_rtk_freight_electric: pd.Series,
    ask_short_range_dropin_fuel_share: pd.Series,
    ask_medium_range_dropin_fuel_share: pd.Series,
    ask_long_range_dropin_fuel_share: pd.Series,
    rtk_dropin_fuel_share: pd.Series,
    ask_short_range_hydrogen_share: pd.Series,
    ask_medium_range_hydrogen_share: pd.Series,
    ask_long_range_hydrogen_share: pd.Series,
    rtk_hydrogen_share: pd.Series,
    ask_short_range_electric_share: pd.Series,
    ask_medium_range_electric_share: pd.Series,
    ask_long_range_electric_share: pd.Series,
    rtk_electric_share: pd.Series,
    dropin_fuel_mean_co2_emission_factor: pd.Series,
    hydrogen_mean_co2_emission_factor: pd.Series,
    electric_mean_co2_emission_factor: pd.Series,
) -> Tuple[pd.Series, pd.Series, pd.Series, pd.Series, pd.Series, pd.Series]:
    """
    CO2 emissions calculation.

    Parameters
    ----------
    rpk_short_range
        Revenue passenger kilometers for short-range flights [RPK].
    rpk_medium_range
        Revenue passenger kilometers for medium-range flights [RPK].
    rpk_long_range
        Revenue passenger kilometers for long-range flights [RPK].
    rtk
        Revenue ton kilometers [RTK].
    load_factor
        Load factor [%].
    energy_per_ask_short_range_dropin_fuel
        Energy consumption per ASK for short-range flights using drop-in fuels [MJ/ASK].
    energy_per_ask_medium_range_dropin_fuel
        Energy consumption per ASK for medium-range flights using drop-in fuels [MJ/ASK].
    energy_per_ask_long_range_dropin_fuel
        Energy consumption per ASK for long-range flights using drop-in fuels [MJ/ASK].
    energy_per_rtk_freight_dropin_fuel
        Energy consumption per RTK for freight using drop-in fuels [MJ/RTK].
    energy_per_ask_short_range_hydrogen
        Energy consumption per ASK for short-range flights using hydrogen [MJ/ASK].
    energy_per_ask_medium_range_hydrogen
        Energy consumption per ASK for medium-range flights using hydrogen [MJ/ASK].
    energy_per_ask_long_range_hydrogen
        Energy consumption per ASK for long-range flights using hydrogen [MJ/ASK].
    energy_per_rtk_freight_hydrogen
        Energy consumption per RTK for freight using hydrogen [MJ/RTK].
    energy_per_ask_short_range_electric
        Energy consumption per ASK for short-range flights using electricity [MJ/ASK].
    energy_per_ask_medium_range_electric
        Energy consumption per ASK for medium-range flights using electricity [MJ/ASK].
    energy_per_ask_long_range_electric
        Energy consumption per ASK for long-range flights using electricity [MJ/ASK].
    energy_per_rtk_freight_electric
        Energy consumption per RTK for freight using electricity [MJ/RTK].
    ask_short_range_dropin_fuel_share
        Share of drop-in fuels in ASK for short-range flights [%].
    ask_medium_range_dropin_fuel_share
        Share of drop-in fuels in ASK for medium-range flights [%].
    ask_long_range_dropin_fuel_share
        Share of drop-in fuels in ASK for long-range flights [%].
    rtk_dropin_fuel_share
        Share of drop-in fuels in RTK for freight [%].
    ask_short_range_hydrogen_share
        Share of hydrogen in ASK for short-range flights [%].
    ask_medium_range_hydrogen_share
        Share of hydrogen in ASK for medium-range flights [%].
    ask_long_range_hydrogen_share
        Share of hydrogen in ASK for long-range flights [%].
    rtk_hydrogen_share
        Share of hydrogen in RTK for freight [%].
    ask_short_range_electric_share
        Share of electricity in ASK for short-range flights [%].
    ask_medium_range_electric_share
        Share of electricity in ASK for medium-range flights [%].
    ask_long_range_electric_share
        Share of electricity in ASK for long-range flights [%].
    rtk_electric_share
        Share of electricity in RTK for freight [%].
    dropin_fuel_mean_co2_emission_factor
        Mean CO2 emission factor for drop-in fuels [gCO2/MJ].
    hydrogen_mean_co2_emission_factor
        Mean CO2 emission factor for hydrogen [gCO2/MJ].
    electric_mean_co2_emission_factor
        Mean CO2 emission factor for electricity [gCO2/MJ].

    Returns
    -------
    co2_emissions_short_range
        CO2 emissions from short-range flights [MtCO2].
    co2_emissions_medium_range
        CO2 emissions from medium-range flights [MtCO2].
    co2_emissions_long_range
        CO2 emissions from long-range flights [MtCO2].
    co2_emissions_passenger
        CO2 emissions from passenger transport [MtCO2].
    co2_emissions_freight
        CO2 emissions from freight transport [MtCO2].
    co2_emissions
        Total CO2 emissions [MtCO2].
    """
    # Locally filling incomplete emission factors with zeros so that sums are not nan if one is undefined
    dropin_fuel_mean_co2_emission_factor.fillna(0, inplace=True)
    hydrogen_mean_co2_emission_factor.fillna(0, inplace=True)
    electric_mean_co2_emission_factor.fillna(0, inplace=True)

    # Short range
    co2_emissions_short_range = (
        rpk_short_range
        / (load_factor / 100)
        * (
            ask_short_range_dropin_fuel_share
            / 100
            * (dropin_fuel_mean_co2_emission_factor * energy_per_ask_short_range_dropin_fuel)
            + ask_short_range_hydrogen_share
            / 100
            * (energy_per_ask_short_range_hydrogen * hydrogen_mean_co2_emission_factor)
            + ask_short_range_electric_share
            / 100
            * (energy_per_ask_short_range_electric * electric_mean_co2_emission_factor)
        )
        * 10 ** (-12)
    )

    # Medium range
    co2_emissions_medium_range = (
        rpk_medium_range
        / (load_factor / 100)
        * (
            ask_medium_range_dropin_fuel_share
            / 100
            * (dropin_fuel_mean_co2_emission_factor * energy_per_ask_medium_range_dropin_fuel)
            + ask_medium_range_hydrogen_share
            / 100
            * (energy_per_ask_medium_range_hydrogen * hydrogen_mean_co2_emission_factor)
            + ask_medium_range_electric_share
            / 100
            * (energy_per_ask_medium_range_electric * electric_mean_co2_emission_factor)
        )
        * 10 ** (-12)
    )

    # Long range
    co2_emissions_long_range = (
        rpk_long_range
        / (load_factor / 100)
        * (
            ask_long_range_dropin_fuel_share
            / 100
            * (dropin_fuel_mean_co2_emission_factor * energy_per_ask_long_range_dropin_fuel)
            + ask_long_range_hydrogen_share
            / 100
            * (energy_per_ask_long_range_hydrogen * hydrogen_mean_co2_emission_factor)
            + ask_long_range_electric_share
            / 100
            * (energy_per_ask_long_range_electric * electric_mean_co2_emission_factor)
        )
        * 10 ** (-12)
    )

    # Freight
    co2_emissions_freight = (
        rtk
        * (
            rtk_dropin_fuel_share
            / 100
            * (dropin_fuel_mean_co2_emission_factor * energy_per_rtk_freight_dropin_fuel)
            + rtk_hydrogen_share
            / 100
            * (energy_per_rtk_freight_hydrogen * hydrogen_mean_co2_emission_factor)
            + rtk_electric_share
            / 100
            * (energy_per_rtk_freight_electric * electric_mean_co2_emission_factor)
        )
        * 10 ** (-12)
    )

    # Passenger
    co2_emissions_passenger = (
        co2_emissions_short_range + co2_emissions_medium_range + co2_emissions_long_range
    )

    # Total: new way to affect without for loops
    historical_co2_emissions_for_temperature = self.climate_historical_data[:, 1]
    self.df_climate.loc[
        self.climate_historic_start_year : self.historic_start_year - 1, "co2_emissions"
    ] = historical_co2_emissions_for_temperature[
        : self.historic_start_year - self.climate_historic_start_year
    ]
    self.df_climate.loc[self.historic_start_year : self.end_year, "co2_emissions"] = (
        co2_emissions_passenger + co2_emissions_freight
    )

    self.df["co2_emissions_short_range"] = co2_emissions_short_range
    self.df["co2_emissions_medium_range"] = co2_emissions_medium_range
    self.df["co2_emissions_long_range"] = co2_emissions_long_range
    self.df["co2_emissions_freight"] = co2_emissions_freight
    self.df["co2_emissions_passenger"] = co2_emissions_passenger
    co2_emissions = self.df_climate["co2_emissions"]

    return (
        co2_emissions_short_range,
        co2_emissions_medium_range,
        co2_emissions_long_range,
        co2_emissions_passenger,
        co2_emissions_freight,
        co2_emissions,
    )

CumulativeCO2Emissions

CumulativeCO2Emissions(name='cumulative_co2_emissions', *args, **kwargs)

Bases: AeroMAPSModel

Class to compute cumulative CO2 emissions.

Parameters:

Name Type Description Default
name str

Name of the model instance ('cumulative_co2_emissions' by default).

'cumulative_co2_emissions'
Source code in aeromaps/models/impacts/emissions/co2_emissions.py
417
418
def __init__(self, name="cumulative_co2_emissions", *args, **kwargs):
    super().__init__(name=name, *args, **kwargs)

compute

compute(co2_emissions)

Execute the computation of cumulative CO2 emissions.

Parameters:

Name Type Description Default
co2_emissions Series

Annual CO2 emissions [MtCO2].

required

Returns:

Type Description
cumulative_co2_emissions

Cumulative CO2 emissions [GtCO2].

Source code in aeromaps/models/impacts/emissions/co2_emissions.py
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
def compute(
    self,
    co2_emissions: pd.Series,
) -> pd.Series:
    """
    Execute the computation of cumulative CO2 emissions.

    Parameters
    ----------
    co2_emissions
        Annual CO2 emissions [MtCO2].

    Returns
    -------
    cumulative_co2_emissions
        Cumulative CO2 emissions [GtCO2].

    """
    cumulative_co2_emissions = (
        co2_emissions.loc[self.prospection_start_year : self.end_year] / 1000
    ).cumsum()

    self.df["cumulative_co2_emissions"] = cumulative_co2_emissions

    return cumulative_co2_emissions

DetailedCo2Emissions

DetailedCo2Emissions(name='detailed_co2_emissions', *args, **kwargs)

Bases: AeroMAPSModel

Class to compute detailed CO2 emissions breakdown.

Parameters:

Name Type Description Default
name str

Name of the model instance ('detailed_co2_emissions' by default).

'detailed_co2_emissions'
Source code in aeromaps/models/impacts/emissions/co2_emissions.py
457
458
def __init__(self, name="detailed_co2_emissions", *args, **kwargs):
    super().__init__(name=name, *args, **kwargs)

compute

compute(rpk_reference, rtk_reference, rpk, rtk, load_factor, energy_per_ask_mean, energy_per_rtk_mean, energy_per_ask_mean_without_operations, energy_per_rtk_mean_without_operations, co2_per_energy_mean)

Execute the computation of detailed CO2 emissions breakdown.

Parameters:

Name Type Description Default
rpk_reference Series

Number of Revenue Passenger Kilometer (RPK) for all passenger air transport with a baseline air traffic growth [RPK].

required
rtk_reference Series

Number of Revenue Tonne Kilometer (RTK) for freight air transport with a baseline air traffic growth [RTK].

required
rpk Series

Revenue passenger kilometers (RPK) [RPK].

required
rtk Series

Revenue ton kilometers (RTK) [RTK].

required
load_factor Series

Load factor [%].

required
energy_per_ask_mean Series

Mean energy consumption per ASK for passenger market [MJ/ASK].

required
energy_per_rtk_mean Series

Mean energy consumption per RTK for freight market [MJ/RTK].

required
energy_per_ask_mean_without_operations Series

Mean energy consumption per ASK for passenger market without considering operation improvements [MJ/ASK].

required
energy_per_rtk_mean_without_operations Series

Mean energy consumption per RTK for freight market without considering operation improvements [MJ/RTK].

required
co2_per_energy_mean Series

Mean emission factor of aircraft energy [gCO2/MJ].

required

Returns:

Type Description
co2_emissions_2019technology_baseline3

CO2 emissions from all commercial air transport based on 2019 technological level with a baseline air traffic growth [MtCO2].

co2_emissions_2019technology

CO2 emissions from all commercial air transport based on 2019 technological level [MtCO2].

co2_emissions_including_aircraft_efficiency

CO2 emissions from all commercial air transport including aircraft efficiency improvements [MtCO2].

co2_emissions_including_operations

CO2 emissions from all commercial air transport including aircraft efficiency and operation improvements [MtCO2].

co2_emissions_including_load_factor

CO2 emissions from all commercial air transport including aircraft efficiency, operation and load factor improvements [MtCO2].

co2_emissions_including_energy

CO2 emissions from all commercial air transport including aircraft efficiency, operation and load factor improvements and energy decarbonization [MtCO2].

Source code in aeromaps/models/impacts/emissions/co2_emissions.py
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
def compute(
    self,
    rpk_reference: pd.Series,
    rtk_reference: pd.Series,
    rpk: pd.Series,
    rtk: pd.Series,
    load_factor: pd.Series,
    energy_per_ask_mean: pd.Series,
    energy_per_rtk_mean: pd.Series,
    energy_per_ask_mean_without_operations: pd.Series,
    energy_per_rtk_mean_without_operations: pd.Series,
    co2_per_energy_mean: pd.Series,
) -> Tuple[pd.Series, pd.Series, pd.Series, pd.Series, pd.Series, pd.Series]:
    """
    Execute the computation of detailed CO2 emissions breakdown.

    Parameters
    ----------
    rpk_reference
        Number of Revenue Passenger Kilometer (RPK) for all passenger air transport with a baseline air traffic growth [RPK].
    rtk_reference
        Number of Revenue Tonne Kilometer (RTK) for freight air transport with a baseline air traffic growth [RTK].
    rpk
        Revenue passenger kilometers (RPK) [RPK].
    rtk
        Revenue ton kilometers (RTK) [RTK].
    load_factor
        Load factor [%].
    energy_per_ask_mean
        Mean energy consumption per ASK for passenger market [MJ/ASK].
    energy_per_rtk_mean
        Mean energy consumption per RTK for freight market [MJ/RTK].
    energy_per_ask_mean_without_operations
        Mean energy consumption per ASK for passenger market without considering operation improvements [MJ/ASK].
    energy_per_rtk_mean_without_operations
        Mean energy consumption per RTK for freight market without considering operation improvements [MJ/RTK].
    co2_per_energy_mean
        Mean emission factor of aircraft energy [gCO2/MJ].


    Returns
    -------
    co2_emissions_2019technology_baseline3
        CO2 emissions from all commercial air transport based on 2019 technological level with a baseline air traffic growth [MtCO2].
    co2_emissions_2019technology
        CO2 emissions from all commercial air transport based on 2019 technological level [MtCO2].
    co2_emissions_including_aircraft_efficiency
        CO2 emissions from all commercial air transport including aircraft efficiency improvements [MtCO2].
    co2_emissions_including_operations
        CO2 emissions from all commercial air transport including aircraft efficiency and operation improvements [MtCO2].
    co2_emissions_including_load_factor
        CO2 emissions from all commercial air transport including aircraft efficiency, operation and load factor improvements [MtCO2].
    co2_emissions_including_energy
        CO2 emissions from all commercial air transport including aircraft efficiency, operation and load factor improvements and energy decarbonization [MtCO2].

    """
    years = range(self.prospection_start_year - 1, self.end_year + 1)

    # Speedup operations: access right portions of vectors
    rpk_reference_local = rpk_reference.loc[years]
    rtk_reference_local = rtk_reference.loc[years]
    rpk_local = rpk.loc[years]
    rtk_local = rtk.loc[years]
    load_factor_local = load_factor.loc[years]
    energy_per_ask_mean_local = energy_per_ask_mean.loc[years]
    energy_per_rtk_mean_local = energy_per_rtk_mean.loc[years]
    energy_per_ask_mean_without_operations_local = energy_per_ask_mean_without_operations.loc[
        years
    ]
    energy_per_rtk_mean_without_operations_local = energy_per_rtk_mean_without_operations.loc[
        years
    ]
    co2_per_energy_mean_local = co2_per_energy_mean.loc[years]

    # Start year values
    load_factor_start_year_local = load_factor.loc[self.prospection_start_year - 1]
    energy_per_ask_mean_start_year_local = energy_per_ask_mean.loc[
        self.prospection_start_year - 1
    ]
    energy_per_rtk_mean_start_year_local = energy_per_rtk_mean.loc[
        self.prospection_start_year - 1
    ]
    energy_per_ask_mean_without_operations_start_year_local = (
        energy_per_ask_mean_without_operations.loc[self.prospection_start_year - 1]
    )
    energy_per_rtk_mean_without_operations_start_year_local = (
        energy_per_rtk_mean_without_operations.loc[self.prospection_start_year - 1]
    )
    co2_per_energy_mean_start_year_local = co2_per_energy_mean.loc[
        self.prospection_start_year - 1
    ]

    co2_emissions_2019technology_baseline3 = (
        rpk_reference_local
        * energy_per_ask_mean_without_operations_start_year_local
        * energy_per_ask_mean_start_year_local
        / energy_per_ask_mean_without_operations_start_year_local
        / (load_factor_start_year_local / 100)
        * co2_per_energy_mean_start_year_local
        * 10 ** (-12)
    ) + (
        rtk_reference_local
        * energy_per_rtk_mean_without_operations_start_year_local
        * energy_per_rtk_mean_start_year_local
        / energy_per_rtk_mean_without_operations_start_year_local
        * co2_per_energy_mean_start_year_local
        * 10 ** (-12)
    )

    co2_emissions_2019technology = (
        rpk_local
        * energy_per_ask_mean_without_operations_start_year_local
        * energy_per_ask_mean_start_year_local
        / energy_per_ask_mean_without_operations_start_year_local
        / (load_factor_start_year_local / 100)
        * co2_per_energy_mean_start_year_local
        * 10 ** (-12)
    ) + (
        rtk_local
        * energy_per_rtk_mean_without_operations_start_year_local
        * energy_per_rtk_mean_start_year_local
        / energy_per_rtk_mean_without_operations_start_year_local
        * co2_per_energy_mean_start_year_local
        * 10 ** (-12)
    )

    co2_emissions_including_aircraft_efficiency = (
        rpk_local
        * energy_per_ask_mean_without_operations_local
        * energy_per_ask_mean_start_year_local
        / energy_per_ask_mean_without_operations_start_year_local
        / (load_factor_start_year_local / 100)
        * co2_per_energy_mean_start_year_local
        * 10 ** (-12)
    ) + (
        rtk_local
        * energy_per_rtk_mean_without_operations_local
        * energy_per_rtk_mean_start_year_local
        / energy_per_rtk_mean_without_operations_start_year_local
        * co2_per_energy_mean_start_year_local
        * 10 ** (-12)
    )

    co2_emissions_including_operations = (
        rpk_local
        * energy_per_ask_mean_without_operations_local
        * energy_per_ask_mean_local
        / energy_per_ask_mean_without_operations_local
        / (load_factor_start_year_local / 100)
        * co2_per_energy_mean_start_year_local
        * 10 ** (-12)
    ) + (
        rtk_local
        * energy_per_rtk_mean_without_operations_local
        * energy_per_rtk_mean_local
        / energy_per_rtk_mean_without_operations_local
        * co2_per_energy_mean_start_year_local
        * 10 ** (-12)
    )

    co2_emissions_including_load_factor = (
        rpk_local
        * energy_per_ask_mean_without_operations_local
        * energy_per_ask_mean_local
        / energy_per_ask_mean_without_operations_local
        / (load_factor_local / 100)
        * co2_per_energy_mean_start_year_local
        * 10 ** (-12)
    ) + (
        rtk_local
        * energy_per_rtk_mean_without_operations_local
        * energy_per_rtk_mean_local
        / energy_per_rtk_mean_without_operations_local
        * co2_per_energy_mean_start_year_local
        * 10 ** (-12)
    )

    co2_emissions_including_energy = (
        rpk_local
        * energy_per_ask_mean_without_operations_local
        * energy_per_ask_mean_local
        / energy_per_ask_mean_without_operations_local
        / (load_factor_local / 100)
        * co2_per_energy_mean_local
        * 10 ** (-12)
    ) + (
        rtk_local
        * energy_per_rtk_mean_without_operations_local
        * energy_per_rtk_mean_local
        / energy_per_rtk_mean_without_operations_local
        * co2_per_energy_mean_local
        * 10 ** (-12)
    )

    self.df.loc[years, "co2_emissions_2019technology_baseline3"] = (
        co2_emissions_2019technology_baseline3
    )
    self.df.loc[years, "co2_emissions_2019technology"] = co2_emissions_2019technology
    self.df.loc[years, "co2_emissions_including_aircraft_efficiency"] = (
        co2_emissions_including_aircraft_efficiency
    )
    self.df.loc[years, "co2_emissions_including_operations"] = (
        co2_emissions_including_operations
    )
    self.df.loc[years, "co2_emissions_including_load_factor"] = (
        co2_emissions_including_load_factor
    )
    self.df.loc[years, "co2_emissions_including_energy"] = co2_emissions_including_energy

    return (
        co2_emissions_2019technology_baseline3,
        co2_emissions_2019technology,
        co2_emissions_including_aircraft_efficiency,
        co2_emissions_including_operations,
        co2_emissions_including_load_factor,
        co2_emissions_including_energy,
    )

DetailedCumulativeCO2Emissions

DetailedCumulativeCO2Emissions(name='detailed_cumulative_co2_emissions', *args, **kwargs)

Bases: AeroMAPSModel

Class to compute detailed cumulative CO2 emissions breakdown.

Parameters:

Name Type Description Default
name str

Name of the model instance ('detailed_cumulative_co2_emissions' by default).

'detailed_cumulative_co2_emissions'
Source code in aeromaps/models/impacts/emissions/co2_emissions.py
689
690
def __init__(self, name="detailed_cumulative_co2_emissions", *args, **kwargs):
    super().__init__(name=name, *args, **kwargs)

compute

compute(co2_emissions_2019technology_baseline3, co2_emissions_2019technology, co2_emissions_including_load_factor, co2_emissions_including_energy)

Execute the computation of detailed cumulative CO2 emissions breakdown.

Parameters:

Name Type Description Default
co2_emissions_2019technology_baseline3 Series

CO2 emissions from all commercial air transport based on 2019 technological level with a baseline air traffic growth [MtCO2].

required
co2_emissions_2019technology Series

CO2 emissions from all commercial air transport based on 2019 technological level [MtCO2].

required
co2_emissions_including_load_factor Series

CO2 emissions from all commercial air transport including aircraft efficiency, operation and load factor improvements [MtCO2].

required
co2_emissions_including_energy Series

CO2 emissions from all commercial air transport including aircraft efficiency, operation and load factor improvements and energy decarbonization [MtCO2].

required

Returns:

Type Description
cumulative_co2_emissions_2019technology_baseline3

Cumulative CO2 emissions from all commercial air transport based on 2019 technological level with a baseline air traffic growth [GtCO2].

cumulative_co2_emissions_2019technology

Cumulative CO2 emissions from all commercial air transport based on 2019 technological level [GtCO2].

cumulative_co2_emissions_including_load_factor

Cumulative CO2 emissions from all commercial air transport including aircraft efficiency, operation and load factor improvements [GtCO2].

cumulative_co2_emissions_including_energy

Cumulative CO2 emissions from all commercial air transport including aircraft efficiency, operation and load factor improvements and energy decarbonization [GtCO2].

Source code in aeromaps/models/impacts/emissions/co2_emissions.py
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
def compute(
    self,
    co2_emissions_2019technology_baseline3: pd.Series,
    co2_emissions_2019technology: pd.Series,
    co2_emissions_including_load_factor: pd.Series,
    co2_emissions_including_energy: pd.Series,
) -> Tuple[pd.Series, pd.Series, pd.Series, pd.Series]:
    """
    Execute the computation of detailed cumulative CO2 emissions breakdown.
    Parameters
    ----------
    co2_emissions_2019technology_baseline3
        CO2 emissions from all commercial air transport based on 2019 technological level with a baseline air traffic growth [MtCO2].
    co2_emissions_2019technology
        CO2 emissions from all commercial air transport based on 2019 technological level [MtCO2].
    co2_emissions_including_load_factor
        CO2 emissions from all commercial air transport including aircraft efficiency, operation and load factor improvements [MtCO2].
    co2_emissions_including_energy
        CO2 emissions from all commercial air transport including aircraft efficiency, operation and load factor improvements and energy decarbonization [MtCO2].

    Returns
    -------
    cumulative_co2_emissions_2019technology_baseline3
        Cumulative CO2 emissions from all commercial air transport based on 2019 technological level with a baseline air traffic growth [GtCO2].
    cumulative_co2_emissions_2019technology
        Cumulative CO2 emissions from all commercial air transport based on 2019 technological level [GtCO2].
    cumulative_co2_emissions_including_load_factor
        Cumulative CO2 emissions from all commercial air transport including aircraft efficiency, operation and load factor
        improvements [GtCO2].
    cumulative_co2_emissions_including_energy
        Cumulative CO2 emissions from all commercial air transport including aircraft efficiency, operation and load factor
        improvements and energy decarbonization [GtCO2].

    """
    cumulative_co2_emissions_2019technology_baseline3 = (
        co2_emissions_2019technology_baseline3.loc[self.prospection_start_year : self.end_year]
        / 1000
    ).cumsum()

    cumulative_co2_emissions_2019technology = (
        co2_emissions_2019technology.loc[self.prospection_start_year : self.end_year] / 1000
    ).cumsum()

    cumulative_co2_emissions_including_load_factor = (
        co2_emissions_including_load_factor.loc[self.prospection_start_year : self.end_year]
        / 1000
    ).cumsum()

    cumulative_co2_emissions_including_energy = (
        co2_emissions_including_energy.loc[self.prospection_start_year : self.end_year] / 1000
    ).cumsum()

    self.df["cumulative_co2_emissions_2019technology_baseline3"] = (
        cumulative_co2_emissions_2019technology_baseline3
    )
    self.df["cumulative_co2_emissions_2019technology"] = cumulative_co2_emissions_2019technology
    self.df["cumulative_co2_emissions_including_load_factor"] = (
        cumulative_co2_emissions_including_load_factor
    )
    self.df["cumulative_co2_emissions_including_energy"] = (
        cumulative_co2_emissions_including_energy
    )

    return (
        cumulative_co2_emissions_2019technology_baseline3,
        cumulative_co2_emissions_2019technology,
        cumulative_co2_emissions_including_load_factor,
        cumulative_co2_emissions_including_energy,
    )

SimpleCO2Emissions

SimpleCO2Emissions(name='simple_co2_emissions', *args, **kwargs)

Bases: AeroMAPSModel

Class to compute simple CO2 emissions.

Parameters:

Name Type Description Default
name str

Name of the model instance ('simple_co2_emissions' by default).

'simple_co2_emissions'
Source code in aeromaps/models/impacts/emissions/co2_emissions.py
773
774
775
def __init__(self, name="simple_co2_emissions", *args, **kwargs):
    super().__init__(name=name, *args, **kwargs)
    self.climate_historical_data = None

compute

compute(energy_consumption_init, dropin_fuel_mean_co2_emission_factor, hydrogen_mean_co2_emission_factor, electric_mean_co2_emission_factor, energy_consumption_dropin_fuel, energy_consumption_hydrogen, energy_consumption_electricity)

Simple CO2 emissions calculation

Parameters:

Name Type Description Default
energy_consumption_init Series

Historical energy consumption of aviation over 2000-2019 [MJ].

required
dropin_fuel_mean_co2_emission_factor Series

Mean CO2 emission factor for drop-in fuels [gCO2/MJ].

required
hydrogen_mean_co2_emission_factor Series

Mean CO2 emission factor for hydrogen [gCO2/MJ].

required
electric_mean_co2_emission_factor Series

Mean CO2 emission factor for electric aviation [gCO2/MJ].

required
energy_consumption_dropin_fuel Series

Energy consumption in the form of drop-in fuels from all commercial air transport [MJ].

required
energy_consumption_hydrogen Series

Energy consumption in the form of hydrogen from all commercial air transport [MJ].

required
energy_consumption_electricity Series

Energy consumption in the form of electricity from all commercial air transport [MJ].

required

Returns:

Type Description
co2_emissions

CO2 emissions from all commercial air transport [MtCO2].

Source code in aeromaps/models/impacts/emissions/co2_emissions.py
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
def compute(
    self,
    energy_consumption_init: pd.Series,
    dropin_fuel_mean_co2_emission_factor: pd.Series,
    hydrogen_mean_co2_emission_factor: pd.Series,
    electric_mean_co2_emission_factor: pd.Series,
    energy_consumption_dropin_fuel: pd.Series,
    energy_consumption_hydrogen: pd.Series,
    energy_consumption_electricity: pd.Series,
) -> pd.Series:
    """
    Simple CO2 emissions calculation

    Parameters
    ----------
    energy_consumption_init
        Historical energy consumption of aviation over 2000-2019 [MJ].
    dropin_fuel_mean_co2_emission_factor
        Mean CO2 emission factor for drop-in fuels [gCO2/MJ].
    hydrogen_mean_co2_emission_factor
        Mean CO2 emission factor for hydrogen [gCO2/MJ].
    electric_mean_co2_emission_factor
        Mean CO2 emission factor for electric aviation [gCO2/MJ].
    energy_consumption_dropin_fuel
        Energy consumption in the form of drop-in fuels from all commercial air transport [MJ].
    energy_consumption_hydrogen
        Energy consumption in the form of hydrogen from all commercial air transport [MJ].
    energy_consumption_electricity
        Energy consumption in the form of electricity from all commercial air transport [MJ].

    Returns
    -------
    co2_emissions
        CO2 emissions from all commercial air transport [MtCO2].
    """

    ## Initialization
    historical_co2_emissions_for_temperature = self.climate_historical_data[:, 1]

    # Calculation
    for k in range(self.climate_historic_start_year, self.historic_start_year):
        self.df_climate.loc[k, "co2_emissions"] = historical_co2_emissions_for_temperature[
            k - self.climate_historic_start_year
        ]

    for k in range(self.historic_start_year, self.prospection_start_year):
        self.df_climate.loc[k, "co2_emissions"] = (
            dropin_fuel_mean_co2_emission_factor.loc[k]
            / 10**12
            * energy_consumption_init.loc[k]
        )

    for k in range(self.prospection_start_year, self.end_year + 1):
        self.df_climate.loc[k, "co2_emissions"] = (
            dropin_fuel_mean_co2_emission_factor.loc[k]
            / 10**12
            * energy_consumption_dropin_fuel.loc[k]
            + electric_mean_co2_emission_factor.loc[k]
            / 10**12
            * energy_consumption_electricity.loc[k]
            + hydrogen_mean_co2_emission_factor.loc[k]
            / 10**12
            * energy_consumption_hydrogen.loc[k]
        )

    co2_emissions = self.df_climate.loc[:, "co2_emissions"]

    return co2_emissions