Multiple emission inventories
In this example, no time evolution file is given, but multiple emission inventories are given as input. OpenAirClim will interpolate between discrete inventory years.
Imports
If the openairclim package cannot be imported, make sure that you have installed openairclim properly (see User Guide → Installation).
import numpy as np
import xarray as xr
import matplotlib.pyplot as plt
from openairclim.utils.create_artificial_inventories import (
ArtificialInventoryDict,
convert_xr_dict_to_nc,
)
import openairclim as oac
xr.set_options(display_expand_attrs=False)
<xarray.core.options.set_options at 0x7f1aecd7cec0>
Input files
In order to be able to execute this example simulation, two types of input are required.
Configuration file
multi_inv.tomlEmission inventories
rnd_inv_20XX.nc
Emission inventories
Artificial (random) emission inventories generated with OpenAirClim
Inventory years: 2000, 2020, 2040, 2060, 2080, 2100
Emissions increase linearly with each year (relative to 2000)
The inventories are generated in the input directory of this demo. The random seed is fixed so that the example gives reproducible results.
np.random.seed(42)
rnd_inv_dict = ArtificialInventoryDict(year_arr=[2000, 2020, 2040, 2060, 2080, 2100]).create()
convert_xr_dict_to_nc(rnd_inv_dict, prefix="rnd_inv", out_path="../input/")
Simulation run
oac.run("multi_inv.toml")
2026-10-16 10:43:11,382 INFO main:449 (run):
-------------- OPENAIRCLIM MAIN RUN LOG --------------
oac version: 0.20.0
timestamp: 2026-10-16 10:43:11.382826
input file: multi_inv.toml
user: runner
platform: Linux 6.17.0-1022-azure
oac_premium available: False
NOTE:
OpenAirClim is currently in development phase.
The computed output is not to be used for scientific
purposes until the release of our publication.
The NOx response surfaces using the tagging method
are not validated and can produce misleading results
(output species CH4, O3, PMO and SWV).
------------------------------------------------------
START OF LOG
2026-10-16 10:43:11,385 INFO read_config:537 (check_config): Configuration file checked.
2026-10-16 10:43:11,386 INFO read_config:572 (create_output_dir): Create new output directory results
2026-10-16 10:43:11,429 INFO read_netcdf:204 (open_inventories): Emission inventories openend, attribute sections and time constraints checked successfully.
2026-10-16 10:43:11,430 INFO read_netcdf:257 (_resolve_aircraft_list): No ac data variable found in the emission inventories. Reverting to 'DEFAULT' aircraft from config file.
2026-10-16 10:43:11,630 INFO main:313 (_calc_sub_species_response): No subsequent species (PMO) defined in config.
2026-10-16 10:43:11,776 INFO main:529 (run): Execution time: 0.3934597969055176 sec
2026-10-16 10:43:11,777 INFO main:530 (run):
END OF LOG
------------------------------------------------------
Results
Time series
Emission sums
Concentrations
Radiative forcings
Temperature changes
results_ds = xr.load_dataset("results/multi_inv.nc")
display(results_ds)
<xarray.Dataset> Size: 17kB
Dimensions: (ac: 2, time: 101)
Coordinates:
* ac (ac) <U7 56B 'DEFAULT' 'TOTAL'
* time (time) int64 808B 2000 2001 2002 2003 ... 2097 2098 2099 2100
Data variables:
emis_CO2 (ac, time) float64 2kB 413.0 425.2 ... 1.646e+03 1.657e+03
emis_distance (ac, time) float64 2kB 2.68e+10 2.76e+10 ... 1.063e+11
emis_H2O (ac, time) float64 2kB 162.1 166.8 171.6 ... 645.8 650.4
conc_CO2 (ac, time) float64 2kB 0.053 0.1047 0.1559 ... 8.243 8.356
RF_CO2 (ac, time) float64 2kB 0.0008739 0.001722 ... 0.1062 0.1076
RF_cont (ac, time) float64 2kB 0.01033 0.01055 ... 0.03251 0.03276
RF_H2O (ac, time) float64 2kB 0.0003413 0.0003527 ... 0.001354
dT_CO2 (ac, time) float64 2kB 6.656e-05 0.0001903 ... 0.06977
dT_cont (ac, time) float64 2kB 0.0001652 0.0003156 ... 0.004768
dT_H2O (ac, time) float64 2kB 2.6e-05 4.998e-05 ... 0.0009609
Attributes: (9)- ac: 2
- time: 101
- ac(ac)<U7'DEFAULT' 'TOTAL'
- long_name :
- aircraft identifier
array(['DEFAULT', 'TOTAL'], dtype='<U7')
- time(time)int642000 2001 2002 ... 2098 2099 2100
- long_name :
- time
- units :
- years
array([2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026, 2027, 2028, 2029, 2030, 2031, 2032, 2033, 2034, 2035, 2036, 2037, 2038, 2039, 2040, 2041, 2042, 2043, 2044, 2045, 2046, 2047, 2048, 2049, 2050, 2051, 2052, 2053, 2054, 2055, 2056, 2057, 2058, 2059, 2060, 2061, 2062, 2063, 2064, 2065, 2066, 2067, 2068, 2069, 2070, 2071, 2072, 2073, 2074, 2075, 2076, 2077, 2078, 2079, 2080, 2081, 2082, 2083, 2084, 2085, 2086, 2087, 2088, 2089, 2090, 2091, 2092, 2093, 2094, 2095, 2096, 2097, 2098, 2099, 2100])
- emis_CO2(ac, time)float64413.0 425.2 ... 1.646e+03 1.657e+03
- long_name :
- CO2 Emission
- units :
- Tg
array([[ 413.00996915, 425.17842821, 437.34688727, 449.51534633, 461.68380539, 473.85226445, 486.02072351, 498.18918257, 510.35764163, 522.52610068, 534.69455974, 546.8630188 , 559.03147786, 571.19993692, 583.36839598, 595.53685504, 607.7053141 , 619.87377316, 632.04223222, 644.21069128, 656.37915034, 669.0310914 , 681.68303247, 694.33497354, 706.98691461, 719.63885568, 732.29079675, 744.94273782, 757.59467889, 770.24661996, 782.89856102, 795.55050209, 808.20244316, 820.85438423, 833.5063253 , 846.15826637, 858.81020744, 871.46214851, 884.11408957, 896.76603064, 909.41797171, 922.34662871, 935.27528571, 948.20394271, 961.13259971, 974.0612567 , 986.9899137 , 999.9185707 , 1012.8472277 , 1025.7758847 , 1038.7045417 , 1051.63319869, 1064.56185569, 1077.49051269, 1090.41916969, 1103.34782669, 1116.27648369, 1129.20514068, 1142.13379768, 1155.06245468, 1167.99111168, 1180.74202522, 1193.49293875, 1206.24385229, 1218.99476582, 1231.74567936, 1244.4965929 , 1257.24750643, 1269.99841997, 1282.7493335 , 1295.50024704, 1308.25116058, 1321.00207411, 1333.75298765, 1346.50390118, 1359.25481472, 1372.00572826, 1384.75664179, 1397.50755533, 1410.25846886, ... 706.98691461, 719.63885568, 732.29079675, 744.94273782, 757.59467889, 770.24661996, 782.89856102, 795.55050209, 808.20244316, 820.85438423, 833.5063253 , 846.15826637, 858.81020744, 871.46214851, 884.11408957, 896.76603064, 909.41797171, 922.34662871, 935.27528571, 948.20394271, 961.13259971, 974.0612567 , 986.9899137 , 999.9185707 , 1012.8472277 , 1025.7758847 , 1038.7045417 , 1051.63319869, 1064.56185569, 1077.49051269, 1090.41916969, 1103.34782669, 1116.27648369, 1129.20514068, 1142.13379768, 1155.06245468, 1167.99111168, 1180.74202522, 1193.49293875, 1206.24385229, 1218.99476582, 1231.74567936, 1244.4965929 , 1257.24750643, 1269.99841997, 1282.7493335 , 1295.50024704, 1308.25116058, 1321.00207411, 1333.75298765, 1346.50390118, 1359.25481472, 1372.00572826, 1384.75664179, 1397.50755533, 1410.25846886, 1423.0093824 , 1434.7325014 , 1446.4556204 , 1458.1787394 , 1469.90185841, 1481.62497741, 1493.34809641, 1505.07121541, 1516.79433441, 1528.51745341, 1540.24057242, 1551.96369142, 1563.68681042, 1575.40992942, 1587.13304842, 1598.85616742, 1610.57928643, 1622.30240543, 1634.02552443, 1645.74864343, 1657.47176243]]) - emis_distance(ac, time)float642.68e+10 2.76e+10 ... 1.063e+11
- long_name :
- distance Emission
- units :
- km
array([[2.68004024e+10, 2.75989531e+10, 2.83975037e+10, 2.91960543e+10, 2.99946050e+10, 3.07931556e+10, 3.15917062e+10, 3.23902568e+10, 3.31888075e+10, 3.39873581e+10, 3.47859087e+10, 3.55844594e+10, 3.63830100e+10, 3.71815606e+10, 3.79801113e+10, 3.87786619e+10, 3.95772125e+10, 4.03757631e+10, 4.11743138e+10, 4.19728644e+10, 4.27714150e+10, 4.35549053e+10, 4.43383955e+10, 4.51218858e+10, 4.59053761e+10, 4.66888663e+10, 4.74723566e+10, 4.82558468e+10, 4.90393371e+10, 4.98228273e+10, 5.06063176e+10, 5.13898078e+10, 5.21732981e+10, 5.29567883e+10, 5.37402786e+10, 5.45237688e+10, 5.53072591e+10, 5.60907493e+10, 5.68742396e+10, 5.76577298e+10, 5.84412201e+10, 5.92363897e+10, 6.00315593e+10, 6.08267289e+10, 6.16218984e+10, 6.24170680e+10, 6.32122376e+10, 6.40074072e+10, 6.48025768e+10, 6.55977464e+10, 6.63929160e+10, 6.71880856e+10, 6.79832551e+10, 6.87784247e+10, 6.95735943e+10, 7.03687639e+10, 7.11639335e+10, 7.19591031e+10, 7.27542727e+10, 7.35494423e+10, 7.43446118e+10, 7.51408759e+10, 7.59371399e+10, 7.67334040e+10, 7.75296680e+10, 7.83259320e+10, 7.91221961e+10, 7.99184601e+10, 8.07147241e+10, 8.15109882e+10, 8.23072522e+10, 8.31035163e+10, 8.38997803e+10, 8.46960443e+10, 8.54923084e+10, 8.62885724e+10, 8.70848365e+10, 8.78811005e+10, 8.86773645e+10, 8.94736286e+10, ... 4.59053761e+10, 4.66888663e+10, 4.74723566e+10, 4.82558468e+10, 4.90393371e+10, 4.98228273e+10, 5.06063176e+10, 5.13898078e+10, 5.21732981e+10, 5.29567883e+10, 5.37402786e+10, 5.45237688e+10, 5.53072591e+10, 5.60907493e+10, 5.68742396e+10, 5.76577298e+10, 5.84412201e+10, 5.92363897e+10, 6.00315593e+10, 6.08267289e+10, 6.16218984e+10, 6.24170680e+10, 6.32122376e+10, 6.40074072e+10, 6.48025768e+10, 6.55977464e+10, 6.63929160e+10, 6.71880856e+10, 6.79832551e+10, 6.87784247e+10, 6.95735943e+10, 7.03687639e+10, 7.11639335e+10, 7.19591031e+10, 7.27542727e+10, 7.35494423e+10, 7.43446118e+10, 7.51408759e+10, 7.59371399e+10, 7.67334040e+10, 7.75296680e+10, 7.83259320e+10, 7.91221961e+10, 7.99184601e+10, 8.07147241e+10, 8.15109882e+10, 8.23072522e+10, 8.31035163e+10, 8.38997803e+10, 8.46960443e+10, 8.54923084e+10, 8.62885724e+10, 8.70848365e+10, 8.78811005e+10, 8.86773645e+10, 8.94736286e+10, 9.02698926e+10, 9.10732321e+10, 9.18765715e+10, 9.26799110e+10, 9.34832505e+10, 9.42865900e+10, 9.50899294e+10, 9.58932689e+10, 9.66966084e+10, 9.74999478e+10, 9.83032873e+10, 9.91066268e+10, 9.99099662e+10, 1.00713306e+11, 1.01516645e+11, 1.02319985e+11, 1.03123324e+11, 1.03926664e+11, 1.04730003e+11, 1.05533343e+11, 1.06336682e+11]]) - emis_H2O(ac, time)float64162.1 166.8 171.6 ... 645.8 650.4
- long_name :
- H2O Emission
- units :
- Tg
array([[162.06720205, 166.8421673 , 171.61713254, 176.39209779, 181.16706304, 185.94202829, 190.71699354, 195.49195878, 200.26692403, 205.04188928, 209.81685453, 214.59181978, 219.36678502, 224.14175027, 228.91671552, 233.69168077, 238.46664602, 243.24161126, 248.01657651, 252.79154176, 257.56650701, 262.53119324, 267.49587948, 272.46056571, 277.42525194, 282.38993818, 287.35462441, 292.31931064, 297.28399688, 302.24868311, 307.21336934, 312.17805558, 317.14274181, 322.10742804, 327.07211428, 332.03680051, 337.00148675, 341.96617298, 346.93085921, 351.89554545, 356.86023168, 361.93350124, 367.00677079, 372.08004035, 377.1533099 , 382.22657946, 387.29984901, 392.37311857, 397.44638812, 402.51965768, 407.59292723, 412.66619679, 417.73946634, 422.8127359 , 427.88600545, 432.95927501, 438.03254456, 443.10581412, 448.17908367, 453.25235323, 458.32562278, 463.32914565, 468.33266852, 473.33619139, 478.33971425, 483.34323712, 488.34675999, 493.35028285, 498.35380572, 503.35732859, 508.36085146, 513.36437432, 518.36789719, 523.37142006, 528.37494292, 533.37846579, 538.38198866, 543.38551153, 548.38903439, 553.39255726, ... 277.42525194, 282.38993818, 287.35462441, 292.31931064, 297.28399688, 302.24868311, 307.21336934, 312.17805558, 317.14274181, 322.10742804, 327.07211428, 332.03680051, 337.00148675, 341.96617298, 346.93085921, 351.89554545, 356.86023168, 361.93350124, 367.00677079, 372.08004035, 377.1533099 , 382.22657946, 387.29984901, 392.37311857, 397.44638812, 402.51965768, 407.59292723, 412.66619679, 417.73946634, 422.8127359 , 427.88600545, 432.95927501, 438.03254456, 443.10581412, 448.17908367, 453.25235323, 458.32562278, 463.32914565, 468.33266852, 473.33619139, 478.33971425, 483.34323712, 488.34675999, 493.35028285, 498.35380572, 503.35732859, 508.36085146, 513.36437432, 518.36789719, 523.37142006, 528.37494292, 533.37846579, 538.38198866, 543.38551153, 548.38903439, 553.39255726, 558.39608013, 562.99629117, 567.59650222, 572.19671327, 576.79692431, 581.39713536, 585.99734641, 590.59755745, 595.1977685 , 599.79797955, 604.39819059, 608.99840164, 613.59861268, 618.19882373, 622.79903478, 627.39924582, 631.99945687, 636.59966792, 641.19987896, 645.80009001, 650.40030106]]) - conc_CO2(ac, time)float640.053 0.1047 0.1559 ... 8.243 8.356
- long_name :
- CO2 Concentration
- units :
- ppmv
array([[0.05299669, 0.10468125, 0.1559144 , 0.207177 , 0.25873879, 0.31075202, 0.36330349, 0.41644345, 0.4702017 , 0.52459646, 0.57963938, 0.6353383 , 0.69169878, 0.748725 , 0.80642022, 0.86478708, 0.92382773, 0.98354397, 1.0439373 , 1.10500891, 1.16675978, 1.2292527 , 1.29248485, 1.35645433, 1.42115969, 1.48659966, 1.55277306, 1.61967868, 1.68731525, 1.75568144, 1.82477585, 1.894597 , 1.96514332, 2.03641317, 2.10840487, 2.18111663, 2.25454664, 2.32869302, 2.40355382, 2.47912708, 2.55541077, 2.63243834, 2.71020575, 2.78870958, 2.86794675, 2.94791432, 3.0286095 , 3.11002952, 3.19217165, 3.27503316, 3.35861136, 3.44290355, 3.52790704, 3.61361913, 3.70003714, 3.78715841, 3.87498025, 3.96350001, 4.05271504, 4.14262269, 4.23322033, 4.32448252, 4.4164079 , 4.50899468, 4.60224088, 4.69614438, 4.79070302, 4.88591456, 4.98177679, 5.07828747, 5.17544434, 5.27324518, 5.37168775, 5.47076982, 5.57048916, 5.67084356, 5.77183082, 5.87344873, 5.97569511, 6.07856778, 6.18206456, 6.28605142, 6.39053336, 6.49551304, 6.60099179, 6.70697018, 6.81344836, 6.92042616, 7.02790329, 7.1358793 , 7.24435371, 7.35332593, 7.46279535, 7.5727613 , 7.68322309, 7.79417999, 7.90563123, 8.01757603, 8.13001356, 8.24294299, ... 0.31075202, 0.36330349, 0.41644345, 0.4702017 , 0.52459646, 0.57963938, 0.6353383 , 0.69169878, 0.748725 , 0.80642022, 0.86478708, 0.92382773, 0.98354397, 1.0439373 , 1.10500891, 1.16675978, 1.2292527 , 1.29248485, 1.35645433, 1.42115969, 1.48659966, 1.55277306, 1.61967868, 1.68731525, 1.75568144, 1.82477585, 1.894597 , 1.96514332, 2.03641317, 2.10840487, 2.18111663, 2.25454664, 2.32869302, 2.40355382, 2.47912708, 2.55541077, 2.63243834, 2.71020575, 2.78870958, 2.86794675, 2.94791432, 3.0286095 , 3.11002952, 3.19217165, 3.27503316, 3.35861136, 3.44290355, 3.52790704, 3.61361913, 3.70003714, 3.78715841, 3.87498025, 3.96350001, 4.05271504, 4.14262269, 4.23322033, 4.32448252, 4.4164079 , 4.50899468, 4.60224088, 4.69614438, 4.79070302, 4.88591456, 4.98177679, 5.07828747, 5.17544434, 5.27324518, 5.37168775, 5.47076982, 5.57048916, 5.67084356, 5.77183082, 5.87344873, 5.97569511, 6.07856778, 6.18206456, 6.28605142, 6.39053336, 6.49551304, 6.60099179, 6.70697018, 6.81344836, 6.92042616, 7.02790329, 7.1358793 , 7.24435371, 7.35332593, 7.46279535, 7.5727613 , 7.68322309, 7.79417999, 7.90563123, 8.01757603, 8.13001356, 8.24294299, 8.35636346]]) - RF_CO2(ac, time)float640.0008739 0.001722 ... 0.1076
- long_name :
- CO2 Radiative Forcing
- units :
- W/m²
array([[0.00087389, 0.00172166, 0.00255767, 0.00338988, 0.00422273, 0.00505871, 0.0058992 , 0.00674502, 0.00759658, 0.0084542 , 0.00931797, 0.01018456, 0.01105695, 0.01193512, 0.01281908, 0.01370883, 0.014593 , 0.01548178, 0.01637511, 0.017273 , 0.01817543, 0.01908284, 0.01999561, 0.02091371, 0.02183706, 0.02276562, 0.02369654, 0.02463239, 0.02557312, 0.02651868, 0.02746903, 0.02842129, 0.02937809, 0.03033937, 0.0313051 , 0.03227522, 0.03324968, 0.03422844, 0.03521144, 0.03619864, 0.03718999, 0.03818455, 0.03918359, 0.04018703, 0.04119481, 0.04220686, 0.04322314, 0.04424356, 0.04526809, 0.04629665, 0.04732921, 0.04837207, 0.04941902, 0.05046999, 0.05152494, 0.05258379, 0.05364652, 0.05471305, 0.05578333, 0.05685732, 0.05793497, 0.05903381, 0.06013641, 0.06124273, 0.06235272, 0.06346634, 0.06458355, 0.06570431, 0.06682857, 0.06795628, 0.06908742, 0.07024439, 0.07140526, 0.07256997, 0.07373849, 0.07491076, 0.07611288, 0.07731931, 0.07853002, 0.07974495, 0.08096407, 0.08223044, 0.08350042, 0.08477404, 0.0860513 , 0.08733219, 0.08861672, 0.08990486, 0.09119662, 0.09249196, 0.09379088, 0.09515294, 0.09652004, 0.09789216, 0.09926929, 0.10065141, 0.10203849, 0.10343053, 0.1048275 , 0.10622939, ... 0.00505871, 0.0058992 , 0.00674502, 0.00759658, 0.0084542 , 0.00931797, 0.01018456, 0.01105695, 0.01193512, 0.01281908, 0.01370883, 0.014593 , 0.01548178, 0.01637511, 0.017273 , 0.01817543, 0.01908284, 0.01999561, 0.02091371, 0.02183706, 0.02276562, 0.02369654, 0.02463239, 0.02557312, 0.02651868, 0.02746903, 0.02842129, 0.02937809, 0.03033937, 0.0313051 , 0.03227522, 0.03324968, 0.03422844, 0.03521144, 0.03619864, 0.03718999, 0.03818455, 0.03918359, 0.04018703, 0.04119481, 0.04220686, 0.04322314, 0.04424356, 0.04526809, 0.04629665, 0.04732921, 0.04837207, 0.04941902, 0.05046999, 0.05152494, 0.05258379, 0.05364652, 0.05471305, 0.05578333, 0.05685732, 0.05793497, 0.05903381, 0.06013641, 0.06124273, 0.06235272, 0.06346634, 0.06458355, 0.06570431, 0.06682857, 0.06795628, 0.06908742, 0.07024439, 0.07140526, 0.07256997, 0.07373849, 0.07491076, 0.07611288, 0.07731931, 0.07853002, 0.07974495, 0.08096407, 0.08223044, 0.08350042, 0.08477404, 0.0860513 , 0.08733219, 0.08861672, 0.08990486, 0.09119662, 0.09249196, 0.09379088, 0.09515294, 0.09652004, 0.09789216, 0.09926929, 0.10065141, 0.10203849, 0.10343053, 0.1048275 , 0.10622939, 0.10763618]]) - RF_cont(ac, time)float640.01033 0.01055 ... 0.03251 0.03276
- long_name :
- cont Radiative Forcing
- units :
- W/m²
array([[0.01032552, 0.01054602, 0.01076651, 0.01098701, 0.01120751, 0.011428 , 0.0116485 , 0.01186899, 0.01208949, 0.01230999, 0.01253048, 0.01275098, 0.01297148, 0.01319197, 0.01341247, 0.01363297, 0.01385346, 0.01407396, 0.01429445, 0.01451495, 0.01473545, 0.01495337, 0.0151713 , 0.01538923, 0.01560715, 0.01582508, 0.01604301, 0.01626093, 0.01647886, 0.01669678, 0.01691471, 0.01713264, 0.01735056, 0.01756849, 0.01778642, 0.01800434, 0.01822227, 0.0184402 , 0.01865812, 0.01887605, 0.01909397, 0.01940468, 0.01971539, 0.0200261 , 0.0203368 , 0.02064751, 0.02095822, 0.02126893, 0.02157964, 0.02189034, 0.02220105, 0.02251176, 0.02282247, 0.02313317, 0.02344388, 0.02375459, 0.0240653 , 0.024376 , 0.02468671, 0.02499742, 0.02530813, 0.02542312, 0.02553812, 0.02565311, 0.02576811, 0.02588311, 0.0259981 , 0.0261131 , 0.0262281 , 0.02634309, 0.02645809, 0.02657309, 0.02668808, 0.02680308, 0.02691808, 0.02703307, 0.02714807, 0.02726307, 0.02737806, 0.02749306, 0.02760806, 0.02786584, 0.02812363, 0.02838142, 0.02863921, 0.02889699, 0.02915478, 0.02941257, 0.02967036, 0.02992814, 0.03018593, 0.03044372, 0.03070151, 0.03095929, 0.03121708, 0.03147487, 0.03173265, 0.03199044, 0.03224823, 0.03250602, ... 0.011428 , 0.0116485 , 0.01186899, 0.01208949, 0.01230999, 0.01253048, 0.01275098, 0.01297148, 0.01319197, 0.01341247, 0.01363297, 0.01385346, 0.01407396, 0.01429445, 0.01451495, 0.01473545, 0.01495337, 0.0151713 , 0.01538923, 0.01560715, 0.01582508, 0.01604301, 0.01626093, 0.01647886, 0.01669678, 0.01691471, 0.01713264, 0.01735056, 0.01756849, 0.01778642, 0.01800434, 0.01822227, 0.0184402 , 0.01865812, 0.01887605, 0.01909397, 0.01940468, 0.01971539, 0.0200261 , 0.0203368 , 0.02064751, 0.02095822, 0.02126893, 0.02157964, 0.02189034, 0.02220105, 0.02251176, 0.02282247, 0.02313317, 0.02344388, 0.02375459, 0.0240653 , 0.024376 , 0.02468671, 0.02499742, 0.02530813, 0.02542312, 0.02553812, 0.02565311, 0.02576811, 0.02588311, 0.0259981 , 0.0261131 , 0.0262281 , 0.02634309, 0.02645809, 0.02657309, 0.02668808, 0.02680308, 0.02691808, 0.02703307, 0.02714807, 0.02726307, 0.02737806, 0.02749306, 0.02760806, 0.02786584, 0.02812363, 0.02838142, 0.02863921, 0.02889699, 0.02915478, 0.02941257, 0.02967036, 0.02992814, 0.03018593, 0.03044372, 0.03070151, 0.03095929, 0.03121708, 0.03147487, 0.03173265, 0.03199044, 0.03224823, 0.03250602, 0.0327638 ]]) - RF_H2O(ac, time)float640.0003413 0.0003527 ... 0.001354
- long_name :
- H2O Radiative Forcing
- units :
- W/m²
array([[0.00034131, 0.0003527 , 0.00036408, 0.00037547, 0.00038685, 0.00039824, 0.00040962, 0.00042101, 0.00043239, 0.00044378, 0.00045517, 0.00046655, 0.00047794, 0.00048932, 0.00050071, 0.00051209, 0.00052348, 0.00053486, 0.00054625, 0.00055764, 0.00056902, 0.0005766 , 0.00058417, 0.00059175, 0.00059932, 0.0006069 , 0.00061447, 0.00062205, 0.00062962, 0.0006372 , 0.00064477, 0.00065235, 0.00065992, 0.0006675 , 0.00067507, 0.00068265, 0.00069022, 0.0006978 , 0.00070537, 0.00071295, 0.00072052, 0.00073558, 0.00075064, 0.0007657 , 0.00078076, 0.00079582, 0.00081088, 0.00082594, 0.000841 , 0.00085606, 0.00087112, 0.00088618, 0.00090124, 0.0009163 , 0.00093136, 0.00094641, 0.00096147, 0.00097653, 0.00099159, 0.00100665, 0.00102171, 0.00103324, 0.00104478, 0.00105631, 0.00106784, 0.00107937, 0.0010909 , 0.00110243, 0.00111397, 0.0011255 , 0.00113703, 0.00114856, 0.00116009, 0.00117162, 0.00118316, 0.00119469, 0.00120622, 0.00121775, 0.00122928, 0.00124082, 0.00125235, 0.00125742, 0.00126249, 0.00126756, 0.00127264, 0.00127771, 0.00128278, 0.00128786, 0.00129293, 0.001298 , 0.00130307, 0.00130815, 0.00131322, 0.00131829, 0.00132336, 0.00132844, 0.00133351, 0.00133858, 0.00134366, 0.00134873, ... 0.00039824, 0.00040962, 0.00042101, 0.00043239, 0.00044378, 0.00045517, 0.00046655, 0.00047794, 0.00048932, 0.00050071, 0.00051209, 0.00052348, 0.00053486, 0.00054625, 0.00055764, 0.00056902, 0.0005766 , 0.00058417, 0.00059175, 0.00059932, 0.0006069 , 0.00061447, 0.00062205, 0.00062962, 0.0006372 , 0.00064477, 0.00065235, 0.00065992, 0.0006675 , 0.00067507, 0.00068265, 0.00069022, 0.0006978 , 0.00070537, 0.00071295, 0.00072052, 0.00073558, 0.00075064, 0.0007657 , 0.00078076, 0.00079582, 0.00081088, 0.00082594, 0.000841 , 0.00085606, 0.00087112, 0.00088618, 0.00090124, 0.0009163 , 0.00093136, 0.00094641, 0.00096147, 0.00097653, 0.00099159, 0.00100665, 0.00102171, 0.00103324, 0.00104478, 0.00105631, 0.00106784, 0.00107937, 0.0010909 , 0.00110243, 0.00111397, 0.0011255 , 0.00113703, 0.00114856, 0.00116009, 0.00117162, 0.00118316, 0.00119469, 0.00120622, 0.00121775, 0.00122928, 0.00124082, 0.00125235, 0.00125742, 0.00126249, 0.00126756, 0.00127264, 0.00127771, 0.00128278, 0.00128786, 0.00129293, 0.001298 , 0.00130307, 0.00130815, 0.00131322, 0.00131829, 0.00132336, 0.00132844, 0.00133351, 0.00133858, 0.00134366, 0.00134873, 0.0013538 ]]) - dT_CO2(ac, time)float646.656e-05 0.0001903 ... 0.06977
- long_name :
- CO2 Temperature change
- units :
- K
array([[6.65610255e-05, 1.90324321e-04, 3.64070806e-04, 5.81997020e-04, 8.39288711e-04, 1.13185999e-03, 1.45619060e-03, 1.80921698e-03, 2.18825118e-03, 2.59093203e-03, 3.01517094e-03, 3.45885926e-03, 3.92035324e-03, 4.39819295e-03, 4.89108220e-03, 5.39787136e-03, 5.91667407e-03, 6.44659136e-03, 6.98682044e-03, 7.53664945e-03, 8.09544603e-03, 8.66268130e-03, 9.23791695e-03, 9.82075957e-03, 1.04108561e-02, 1.10078897e-02, 1.16113626e-02, 1.22210281e-02, 1.28366642e-02, 1.34580704e-02, 1.40850653e-02, 1.47172697e-02, 1.53545463e-02, 1.59967702e-02, 1.66438270e-02, 1.72956118e-02, 1.79520279e-02, 1.86129860e-02, 1.92784033e-02, 1.99482029e-02, 2.06223129e-02, 2.13005986e-02, 2.19830367e-02, 2.26696015e-02, 2.33602651e-02, 2.40549985e-02, 2.47537713e-02, 2.54565524e-02, 2.61633100e-02, 2.68740116e-02, 2.75886243e-02, 2.83076015e-02, 2.90308714e-02, 2.97583667e-02, 3.04900232e-02, 3.12257802e-02, 3.19655799e-02, 3.27093670e-02, 3.34570888e-02, 3.42086945e-02, 3.49641353e-02, 3.57247048e-02, 3.64902245e-02, 3.72605333e-02, 3.80354850e-02, 3.88149468e-02, 3.95987977e-02, 4.03869271e-02, 4.11792336e-02, 4.19756241e-02, 4.27760127e-02, 4.35820318e-02, 4.43934607e-02, 4.52101005e-02, 4.60317719e-02, 4.68583121e-02, 4.76915633e-02, 4.85312199e-02, 4.93770076e-02, 5.02286797e-02, ... 1.04108561e-02, 1.10078897e-02, 1.16113626e-02, 1.22210281e-02, 1.28366642e-02, 1.34580704e-02, 1.40850653e-02, 1.47172697e-02, 1.53545463e-02, 1.59967702e-02, 1.66438270e-02, 1.72956118e-02, 1.79520279e-02, 1.86129860e-02, 1.92784033e-02, 1.99482029e-02, 2.06223129e-02, 2.13005986e-02, 2.19830367e-02, 2.26696015e-02, 2.33602651e-02, 2.40549985e-02, 2.47537713e-02, 2.54565524e-02, 2.61633100e-02, 2.68740116e-02, 2.75886243e-02, 2.83076015e-02, 2.90308714e-02, 2.97583667e-02, 3.04900232e-02, 3.12257802e-02, 3.19655799e-02, 3.27093670e-02, 3.34570888e-02, 3.42086945e-02, 3.49641353e-02, 3.57247048e-02, 3.64902245e-02, 3.72605333e-02, 3.80354850e-02, 3.88149468e-02, 3.95987977e-02, 4.03869271e-02, 4.11792336e-02, 4.19756241e-02, 4.27760127e-02, 4.35820318e-02, 4.43934607e-02, 4.52101005e-02, 4.60317719e-02, 4.68583121e-02, 4.76915633e-02, 4.85312199e-02, 4.93770076e-02, 5.02286797e-02, 5.10860141e-02, 5.19520942e-02, 5.28263385e-02, 5.37082323e-02, 5.45973197e-02, 5.54931955e-02, 5.63954997e-02, 5.73039120e-02, 5.82181471e-02, 5.91379507e-02, 6.00630958e-02, 6.09979184e-02, 6.19418490e-02, 6.28943811e-02, 6.38550637e-02, 6.48234956e-02, 6.57993193e-02, 6.67822168e-02, 6.77719040e-02, 6.87681281e-02, 6.97706633e-02]]) - dT_cont(ac, time)float640.0001652 0.0003156 ... 0.004768
- long_name :
- cont Temperature change
- units :
- K
array([[0.00016516, 0.00031555, 0.00045285, 0.00057853, 0.00069388, 0.00080009, 0.00089818, 0.00098906, 0.00107355, 0.00115238, 0.00122617, 0.0012955 , 0.00136088, 0.00142276, 0.00148153, 0.00153754, 0.00159111, 0.00164252, 0.00169201, 0.00173981, 0.00178611, 0.00183104, 0.00187476, 0.00191741, 0.00195911, 0.00199997, 0.0020401 , 0.00207958, 0.00211849, 0.00215689, 0.00219485, 0.00223242, 0.00226965, 0.00230658, 0.00234325, 0.00237969, 0.00241594, 0.00245201, 0.00248794, 0.00252374, 0.00255943, 0.00259651, 0.00263484, 0.00267427, 0.0027147 , 0.00275601, 0.00279812, 0.00284094, 0.00288439, 0.00292842, 0.00297296, 0.00301796, 0.00306338, 0.00310918, 0.00315532, 0.00320177, 0.00324849, 0.00329548, 0.00334269, 0.00339012, 0.00343774, 0.00348241, 0.00352447, 0.0035642 , 0.00360187, 0.00363771, 0.00367193, 0.00370471, 0.00373621, 0.00376659, 0.00379596, 0.00382444, 0.00385214, 0.00387914, 0.00390552, 0.00393135, 0.0039567 , 0.00398162, 0.00400616, 0.00403036, 0.00405427, 0.0040802 , 0.00410793, 0.00413727, 0.00416803, 0.00420006, 0.00423323, 0.00426741, 0.0043025 , 0.00433838, 0.00437499, 0.00441225, 0.00445008, 0.00448843, 0.00452724, 0.00456646, 0.00460606, 0.004646 , 0.00468624, 0.00472676, ... 0.00080009, 0.00089818, 0.00098906, 0.00107355, 0.00115238, 0.00122617, 0.0012955 , 0.00136088, 0.00142276, 0.00148153, 0.00153754, 0.00159111, 0.00164252, 0.00169201, 0.00173981, 0.00178611, 0.00183104, 0.00187476, 0.00191741, 0.00195911, 0.00199997, 0.0020401 , 0.00207958, 0.00211849, 0.00215689, 0.00219485, 0.00223242, 0.00226965, 0.00230658, 0.00234325, 0.00237969, 0.00241594, 0.00245201, 0.00248794, 0.00252374, 0.00255943, 0.00259651, 0.00263484, 0.00267427, 0.0027147 , 0.00275601, 0.00279812, 0.00284094, 0.00288439, 0.00292842, 0.00297296, 0.00301796, 0.00306338, 0.00310918, 0.00315532, 0.00320177, 0.00324849, 0.00329548, 0.00334269, 0.00339012, 0.00343774, 0.00348241, 0.00352447, 0.0035642 , 0.00360187, 0.00363771, 0.00367193, 0.00370471, 0.00373621, 0.00376659, 0.00379596, 0.00382444, 0.00385214, 0.00387914, 0.00390552, 0.00393135, 0.0039567 , 0.00398162, 0.00400616, 0.00403036, 0.00405427, 0.0040802 , 0.00410793, 0.00413727, 0.00416803, 0.00420006, 0.00423323, 0.00426741, 0.0043025 , 0.00433838, 0.00437499, 0.00441225, 0.00445008, 0.00448843, 0.00452724, 0.00456646, 0.00460606, 0.004646 , 0.00468624, 0.00472676, 0.00476752]]) - dT_H2O(ac, time)float642.6e-05 4.998e-05 ... 0.0009609
- long_name :
- H2O Temperature change
- units :
- K
array([[2.59964805e-05, 4.99817143e-05, 7.21826466e-05, 9.28007482e-05, 1.12014875e-04, 1.29983808e-04, 1.46848500e-04, 1.62734087e-04, 1.77751652e-04, 1.91999813e-04, 2.05566111e-04, 2.18528264e-04, 2.30955262e-04, 2.42908350e-04, 2.54441895e-04, 2.65604160e-04, 2.76437989e-04, 2.86981414e-04, 2.97268196e-04, 3.07328303e-04, 3.17188337e-04, 3.26581690e-04, 3.35561456e-04, 3.44174770e-04, 3.52463475e-04, 3.60464716e-04, 3.68211467e-04, 3.75732999e-04, 3.83055296e-04, 3.90201427e-04, 3.97191865e-04, 4.04044788e-04, 4.10776330e-04, 4.17400812e-04, 4.23930948e-04, 4.30378021e-04, 4.36752048e-04, 4.43061919e-04, 4.49315524e-04, 4.55519868e-04, 4.61681165e-04, 4.68374989e-04, 4.75543116e-04, 4.83133853e-04, 4.91101307e-04, 4.99404729e-04, 5.08007942e-04, 5.16878825e-04, 5.25988857e-04, 5.35312716e-04, 5.44827917e-04, 5.54514497e-04, 5.64354728e-04, 5.74332869e-04, 5.84434940e-04, 5.94648529e-04, 6.04962612e-04, 6.15367399e-04, 6.25854195e-04, 6.36415277e-04, 6.47043787e-04, 6.57464934e-04, 6.67703057e-04, 6.77779761e-04, 6.87714221e-04, 6.97523459e-04, 7.07222585e-04, 7.16825009e-04, 7.26342634e-04, 7.35786023e-04, 7.45164554e-04, 7.54486547e-04, 7.63759387e-04, 7.72989627e-04, 7.82183084e-04, 7.91344916e-04, 8.00479703e-04, 8.09591507e-04, 8.18683931e-04, 8.27760172e-04, ... 3.52463475e-04, 3.60464716e-04, 3.68211467e-04, 3.75732999e-04, 3.83055296e-04, 3.90201427e-04, 3.97191865e-04, 4.04044788e-04, 4.10776330e-04, 4.17400812e-04, 4.23930948e-04, 4.30378021e-04, 4.36752048e-04, 4.43061919e-04, 4.49315524e-04, 4.55519868e-04, 4.61681165e-04, 4.68374989e-04, 4.75543116e-04, 4.83133853e-04, 4.91101307e-04, 4.99404729e-04, 5.08007942e-04, 5.16878825e-04, 5.25988857e-04, 5.35312716e-04, 5.44827917e-04, 5.54514497e-04, 5.64354728e-04, 5.74332869e-04, 5.84434940e-04, 5.94648529e-04, 6.04962612e-04, 6.15367399e-04, 6.25854195e-04, 6.36415277e-04, 6.47043787e-04, 6.57464934e-04, 6.67703057e-04, 6.77779761e-04, 6.87714221e-04, 6.97523459e-04, 7.07222585e-04, 7.16825009e-04, 7.26342634e-04, 7.35786023e-04, 7.45164554e-04, 7.54486547e-04, 7.63759387e-04, 7.72989627e-04, 7.82183084e-04, 7.91344916e-04, 8.00479703e-04, 8.09591507e-04, 8.18683931e-04, 8.27760172e-04, 8.36823065e-04, 8.45383165e-04, 8.53497172e-04, 8.61215424e-04, 8.68582609e-04, 8.75638397e-04, 8.82418008e-04, 8.88952705e-04, 8.95270243e-04, 9.01395262e-04, 9.07349636e-04, 9.13152782e-04, 9.18821937e-04, 9.24372404e-04, 9.29817768e-04, 9.35170087e-04, 9.40440067e-04, 9.45637210e-04, 9.50769952e-04, 9.55845781e-04, 9.60871344e-04]])
- title :
- multi_inv
- created :
- 2026-10-16T10:43:11.388556+00:00
- user :
- runner
- platform :
- Linux-6.17.0-1022-azure-x86_64-with-glibc2.39
- python_version :
- 3.14.8
- oac_version :
- 0.20.0
- oac_git_commit :
- 5c4703ed1b98a15d66af09f40123fd3a9167b4c2
- config_hash :
- 75a8da5a72
- config_json :
- {"aircraft": {"DEFAULT": {"G_250": 1.7, "PMrel": 1.0, "b": 35.0}, "dir": ".", "file": "", "types": ["DEFAULT"]}, "background": {"CH4": {"file": "ch4_bg.nc", "scenario": "SSP2-4.5"}, "CO2": {"file": "co2_bg.nc", "scenario": "SSP2-4.5"}, "N2O": {"file": "n2o_bg.nc", "scenario": "SSP2-4.5"}, "dir": "/home/runner/.local/share/openairclim/0.2.0"}, "inventories": {"base": {"dir": "input", "files": []}, "dir": "../input", "files": ["rnd_inv_2000.nc", "rnd_inv_2020.nc", "rnd_inv_2040.nc", "rnd_inv_2060.nc", "rnd_inv_2080.nc", "rnd_inv_2100.nc"], "rel_to_base": false}, "metrics": {"H": [101], "t_0": [2000], "types": ["AGTP", "AGWP", "AEGWP", "ATR"]}, "output": {"concentrations": false, "dir": "results", "name": "multi_inv", "overwrite": true, "run_metrics": true, "run_oac": true, "run_plots": false}, "parametric": {"CH4": 1.2029, "CO2": 1.0814, "H2O": 0.9341, "O3": 0.9406, "cont": 0.7133, "enabled": false}, "responses": {"CH4": {"response_grid": "2D", "rf": {"attr": "proportional", "method": "Etminan_2016"}, "tau": {"approach": "perturbation", "file": "resp_CH4_pert.nc"}}, "CO2": {"conc": {"method": "Sausen&Schumann"}, "response_grid": "0D", "rf": {"attr": "proportional", "method": "Etminan_2016"}}, "H2O": {"response_grid": "2D", "rf": {"file": "resp_RF_H2O.nc"}}, "O3": {"response_grid": "2D", "rf": {"approach": "perturbation", "file": "resp_RF_O3_pert.nc"}}, "SWV": {"file": "ch4_for_swv_calc.nc"}, "cont": {"formation_method": "Megill_2025", "low_soot_case": "case_mid", "low_soot_method": "logistic_beta", "method": "Megill_2026", "resp": {"file": "resp_cont_lf.nc"}, "response_grid": "cont"}, "dir": "/home/runner/.local/share/openairclim/0.2.0"}, "species": {"inv": ["CO2", "H2O", "distance"], "nox": "NO2", "out": ["CO2", "H2O", "cont"]}, "temperature": {"CH4": {"efficacy": 1.04}, "CO2": {"lambda": 1.06}, "H2O": {"efficacy": 1.0}, "O3": {"efficacy": 1.05}, "PMO": {"efficacy": 1.0}, "SWV": {"efficacy": 1.0}, "cont": {"efficacy": 0.21}, "method": "Boucher&Reddy"}, "time": {"dir": "../repository", "range": [2000, 2101, 1]}}
# Plot Radiative Forcing and Temperature Changes
ac = "TOTAL"
species = ["CO2", "H2O", "cont"]
colors = ["tab:gray", "tab:blue", "tab:cyan"]
fig, ax = plt.subplots(ncols=2, figsize=(10, 5))
ax[0].grid(True)
ax[1].grid(True)
for spec, color in zip(species, colors):
rf = results_ds[f"RF_{spec}"].sel(ac=ac) * 1000
dt = results_ds[f"dT_{spec}"].sel(ac=ac) * 1000
rf.plot(ax=ax[0], color=color, label=spec)
dt.plot(ax=ax[1], color=color, label=spec)
ax[0].set_ylabel("Radiative Forcing [mW/m²]")
ax[1].set_ylabel("Temperature Change [mK]")
ax[0].legend()
ax[1].legend()
<matplotlib.legend.Legend at 0x7f1ae7e66e40>