The challenge with the radiative forcing of a species is that it is an instantaneous measure of the energy imbalance that it creates. This imbalance evolves with time as the abundance of the species reduces. This makes comparing emissions of different species difficult.
Common imports and definitions are here:
Code
import numpy as npimport matplotlib.pyplot as pltfrom labellines import labelLine, labelLinesfrom mpl_toolkits.axes_grid1.inset_locator import inset_axesfrom matplotlib import transformsfrom scipy.integrate import quadFIGURE_WIDTH =4.5FIGURE_HEIGHT =3# Adjust global params here to enforce consistent figuresplt.rcParams['figure.figsize'] = (FIGURE_WIDTH, FIGURE_HEIGHT) # Fixed default size for all figuresplt.rcParams['figure.constrained_layout.use'] =True# Auto-adjust spacingplt.rcParams['figure.dpi'] =150## Constants:R_earth =6400e3#mS_earth =4*np.pi*R_earth**2year_to_s =365*24*3600Wyear_m2earth_to_J = year_to_s*S_earth
Python helper code
I’ve cleaned up the helper code here for the rest of the sections. You can see the code here in case you want to re-create or play around with it:
Code
class Forcer:"""Base class for any climate forcer (gas, aerosol, contrail, etc.)"""def__init__(self, name):self.name = nameself.latex_name =self._to_latex(name)def _to_latex(self, name):"""Convert simple chemical names to LaTeX-friendly strings for plotting."""# e.g., CH4 -> CH$_4$, CO2 -> CO$_2$import re# add LaTeX subscript for digits latex_name = re.sub(r"(\d+)", r"$_\1$", name)return latex_namedef radiative_forcing(self, t, pulse):"""Compute radiative forcing over time. Override in subclass."""raiseNotImplementedErrordef IRF(self, t):"""Impulse Response Function. Override in subclass if needed."""raiseNotImplementedErrordef AGWP(self, H, pulse_kg=1.0):"""Absolute Global Warming Potential over horizon H (years). Default is for a 1 kg pulse.""" integrand =lambda t: self.radiative_forcing(t, pulse_kg) result, _ = quad(integrand, 0, H)return resultclass Gas(Forcer):"""Generic gas forcer with flexible IRF (single- or multi-exponential).""" M_air_kg_mol =28.97e-3 m_atm_kg =5.135e18def__init__(self, name, M_gas_kg_mol, RE_ppb, tau=None, feedbacks=None, IRF_params=None):super().__init__(name)self.M_gas_kg_mol = M_gas_kg_molself.RE_ppb = RE_ppbif feedbacks:self.RE_ppb *= (1+sum(feedbacks))self.tau = tauself.IRF_params = IRF_paramsdef mass_to_mixing_ratio(self, m_kg):"""Convert from mass of gas emission in kg to mixing ratio in standard atmosphere in ppb""" delta_X = (m_kg /self.m_atm_kg) * (self.M_air_kg_mol /self.M_gas_kg_mol)return delta_X *1e9def IRF(self, t):ifself.IRF_params: # multi-exponential IRF a =self.IRF_params['a'] tau_array =self.IRF_params['tau'] long_term =self.IRF_params.get('long_term', 0)return long_term +sum(ai * np.exp(-t/ti) for ai, ti inzip(a, tau_array))elifself.tau: # simple exponential IRFreturn np.exp(-t/self.tau)else:raiseValueError("No IRF defined for this gas")def radiative_forcing(self, t, pulse_kg): pulse_ppb =self.mass_to_mixing_ratio(pulse_kg)return pulse_ppb *self.IRF(t) *self.RE_ppbclass Contrail(Forcer):"""Short-lived forcer from aviation contrails"""def__init__(self, name, RE_per_unit, lifetime_days):super().__init__(name)self.RE_per_unit = RE_per_unitself.tau_days = lifetime_daysdef IRF(self, t):# decay in years; tau_days / 365 converts lifetime to years tau_years =self.tau_days /365return np.exp(-t / tau_years)def radiative_forcing(self, t, units):returnself.RE_per_unit * units *self.IRF(t)CH4 = Gas("CH4", M_gas_kg_mol=16.04e-3, RE_ppb=3.63e-4, tau=12.4, feedbacks=[0.5, 0.15])CO2_IRF_params = {'a': [0.224037, 0.282381, 0.276303],'tau': [394.409, 36.5393, 4.30365],'long_term': 0.217278}CO2 = Gas("CO2", M_gas_kg_mol=44.01e-3, RE_ppb=1.37e-5, IRF_params=CO2_IRF_params)
The AGWP is the total energy per unit area that 1 kg of a pulse emission of the gas (under present day conditions) has effectively “trapped” in the atmosphere over the chosen period \(H\):
The units of AGWP are often seen as [Wm \(^{-2}\cdot\) years] or [Jm \(^{-2}\)], but sometimes, (e.g., in IPCC) AGWP is shown as a the energy forcing per kg of emissions pulse as [Wm\(^{-2} \cdot\)years/kg]
\[\begin{gather*}
\color{magenta}{\mathrm{AGWP}}(H) =
\color{black}\int_{\color{brown}{0}}^{\color{brown}{H}}
\color{blue}{\Delta F}(t)
\cdot
\color{brown}{dt}
\\\\
{\small{\text{
\color{magenta}{The Absolute Global Warming Potential}
\color{black}is the}}}
\\
{\small{\text{
\color{brown}{time-integrated}
\color{blue}{radiative forcing}
\color{black}due to a pulse emission of}}}
\\
{\small{\text{
1 kg of gas the over a \color{brown}{time horizon}.
}}}
\end{gather*}\]
For example, let’s consider the integrated energy impact from 1 kg emission of \(\ce{CH4}\) over a period of 20 years:
Code
H =20# years time horizonyears = np.linspace(0, 200, 500) # 0 to 100 yearspulse_kg =1.0RF_CH4 = CH4.radiative_forcing(years, pulse_kg)fig, ax = plt.subplots()ax.plot(years, RF_CH4*1000, label=CH4.latex_name)ax.fill_between(years, 0, RF_CH4*1000, where=(years <= H), alpha=0.3, label=fr"Integrated forcing over {H} years")ax.set_xlim(-10,100)ax.set_xlabel("Time (years)")ax.set_ylabel("Radiative forcing\n"+r"$\Delta F$"+r"(W/m$^{2}$)")ax.legend(fontsize=7)ax.grid(True, color="gray", alpha=0.4, ls ="--", lw =0.5)
Figure 3.1: The shaded area under the RF vs time graph shows the total energy per unit area (i.e., in J/m\(^2\)) that the pulse of \(\ce{CH4}\) has introduced into the earth energy system.
We can now compare the “trapped” energy in the Earth system due to a unit emission of different gases. For example, let’s look at \(\ce{CH4}\) and \(\ce{CO2}\):
Figure 3.2: The AGWP can be used to compare the energy forcing due to different species. Note here the \(\ce{CH4}\) RF has been scaled by \(0.1\) to allow \(\ce{CO2}\) to be visible. A common derived metric used in climate conversations is the GWP defined as the ratio of the time-integrated RF relative to a pulse emission of an equal mass of \(\ce{CO2}\).
3.1 Global Warming Potential (GWP)
This lets us define an equivalency metric, the Global Warming Potential, by referencing the absoulte warming potential against a reference gas – \(\ce{CO2}\):
It is worth noting here that while the IPCC (2013) uses the GWP, it stresses that there is no scientfic argument for selecting 100 years as the default time horizon (pg. 711). Houghton, Jenkins, and Ephraums (1990) in the first IPCC report suggested 20, 50, and 100 year time horizons but stressed that they “should not be considered has having any special significance”.
The choice of the time horizon has a strong effect on the GWP values and therefore has implications on policy and strategy. The time horizon choice is ultimately a value judgement since it effectively emphasizes the weight assigned at different times.
Code
H_arr = np.linspace(0,500,100)AGWP_CO2_arr = np.zeros_like(H_arr)AGWP_CH4_arr = np.zeros_like(H_arr)for i, H inenumerate(H_arr): AGWP_CH4_arr[i] = CH4.AGWP(H) AGWP_CO2_arr[i] = CO2.AGWP(H)fig, ax = plt.subplots()ax.plot(H_arr, AGWP_CH4_arr*0.1, lw =1.0, label=r"AGWP$_{\mathrm{CH}_4}\times 0.1$")ax.plot(H_arr, AGWP_CO2_arr, lw =1.0, label=r"AGWP$_{\mathrm{CO}_2}$")labelLines(ax.get_lines(), xvals = [150, 200])ax2 = ax.twinx()ax2.plot(H_arr[1:], AGWP_CH4_arr[1:]/AGWP_CO2_arr[1:], color ='gray', label ="GWP$_{CH_4}$")labelLines(ax2.get_lines())ax2.set_ylabel("GWP")ax.axvline(x=50, ls ="--", lw =1.0, color ="lightgray")xlims = ax.get_xlim()ax.axvspan(50, xlims[1], color="lightgray", alpha=0.2)ax.set_xlim(xlims)ax.set_ylabel("AGWP [Wm$^{-2}\\cdotp$yr kg$^{-1}$]")ax.set_xlabel("Time horizon (years)");#Note the ";" here to supress the output. Quarto otherwise thinks that this is another output of the cell and starts being too clever with the sub captions etc.
Figure 3.3: The AGWP and GWP are strongly affected by the time horizon used. For short lived forcers, the evolution of the GWP value ends up primarily reflecting the RF evolution of \(\ce{CO2}\)! Here for example, after about 50 years the GWP reduction of \(\ce{CH4}\) is almost entirely determined by the growth of the AGWP of \(\ce{CO2}\), since almost all the \(\ce{CH4}\) has been removed from the atmosphere and its AGWP does not vary anymore. (This graph idea comes directly from Fig 8.29 of the IPCC report (2013))
This now begs the question, what is the impact of the energy added to the Earth system by some component (e.g., \(\ce{CH4}\) or \(\ce{CO2}\) as above) on the global temperature of the Earth?
If the Earth were to be treated as a simple solid ball of iron, then \(\color{orange}\Delta T
\color{black}= \Large \frac{\color{blue}\Delta E}{\color{green}C }\), where \(\color{green}C \mathrm{[J/m\)^2\(/K]}\) is the pertinent heat capacity of this iron-ball-Earth, and \(\color{blue}\Delta E \mathrm{ [J/m\)^2\(]}\) is the total energy added to the ball.