# 9. Modeling non-scattering radiative transfer#

This notebook is part of The Climate Laboratory by Brian E. J. Rose, University at Albany.

## 1. The two-stream Schwarschild equations#

Here we are going to introduce the governing equations of radiative transfer to put what we’ve been doing on a more solid theoretical footing.

Our derivations here will also serve as a coherent documentation for how some of the radiation solvers are implemented in `climlab`

.

### Optical thickness#

The **optical thickness** of a layer of absorbers is \(\Delta \tau_\nu\). It is the emissivity and absorptivity of a layer of atmosphere.

Passing to the limit of very thin layers, we define \(\tau_\nu\) through

where **\(\kappa_\nu\) is an absorption cross-section** per unit mass at frequency \(\nu\). It has units m\(^2\) kg\(^{-1}\). \(\kappa\) is a measure of the area taken out of the incident beam by absorbers in a unit mass of atmosphere.

In general **\(\tau_\nu\) depends on the frequency of the radiation**, as indicated here by the subscript \(\nu\).

### Using optical depth as vertical coordinate#

Since pressure decreases with altitude, \(\tau_\nu\) increases with altitude.

The equations of radiative transfer can be simplified by using \(\tau_\nu\) as vertical coordinate instead of pressure.

### Absorption cross-section#

The specific absorption cross section \(\kappa\) depends on the number of molecules of each greenhouse gas encountered by the beam and the absorption properties characteristic to each kind of greenhouse gas molecule. Letting \(q_k\) be the mass-specific concentration of greenhouse gas \(k\), we may write in general

For a well-mixed greenhouse gas, \(q_k\) is a constant; for a non-well-mixed gas like water vapor we need to account for the vertical distribution of the gas through \(q_k(p)\).

The dependence of \(\kappa_k\) on temperature and pressure arises from certain aspects of the physics of molecular absorption.

### Two-stream Schwarzschild equations#

For climate modeling we almost always seperate the total flux into two beams: **upward** and **downward**.

This involves taking integrals of the full angular dependence of the flux. We’ll skip the details here.

Let \(U_\nu\) be the upward beam, and \(D_\nu\) be the downward beam. The governing equations for these beams are the *Schwarzschild equations*:

where \(E\) is the **blackbody emission** (both up and down), which in general depends on both **frequency** and **temperature**. We have written temperature as a function of the vertical coordinate (optical depth).

The emissions are governed by the **Planck function**:

with these fundamental physical constants:

\(h = 6.626 \times 10^{-34} ~\text{J s} \) is Planck’s constant

\(c = 3.00 \times 10^8 ~\text{m s}^{-1} \) is the speed of light

\(k = 1.38 \times 10^{-23} ~\text{J K}^{-1} \) is the Boltzmann Thermodynamic Constant

The two-stream equations basically say the beam is **attenuated by absorption** (first term) and **augmented by emission** (second term) in each thin layer of gas.

These equations are valid for beam that are **not affected by scattering**. We may come back to that later.

## 2. The Grey Gas Model#

The absorption properties \(\kappa_i\) of most atmospheric gases varies enormously with the frequency of the radiation. Hence the optical thickness \(\tau_\nu\) also has an intricate dependence on wavenumber or frequency.

Our job as climate modelers is to calculate and understand the net atmospheric absorption and transmission of radiation. To do this thoroughly and accurately, the fluxes must be solved for individually on a very dense grid of wavenumbers, and then the results integrated over all wavenumbers.

Actual radiative transfer codes (as used in GCMs) apply a lot of tricks and shortcuts to simplify this brute-force approach, but lead to sets of equations that are difficult to understand.

However, there is a lot we can understand about the basics of radiative transfer and the greenhouse effect by ignoring the spectral dependence of the flux.

Specifically, we make the approximation

so that the optical depth \(\tau\) is now **independent of frequency**.

This is known as the **grey gas approximation**.

## Grey gas versions of the Schwarzschild equations#

### Integrating the Planck function#

If we assume \(\tau_\nu\) is independent of frequency, we can then integrate the two-stream equations over all frequencies.

The integral of the Planck function gives our familiar Stefan-Boltzmann blackbody radiation law

with

```
# climlab has these constants available, and actually calculates sigma from the above formula
import numpy as np
import climlab
sigma = ((2*np.pi**5 * climlab.constants.kBoltzmann**4) /
(15 * climlab.constants.c_light**2 * climlab.constants.hPlanck**3) )
print( sigma)
sigma == climlab.constants.sigma
```

```
5.6703726225913323e-08
```

```
True
```

### The grey gas equations#

This gives the governing equations for the grey gas model:

These equations now say that the beam is diminished by absorption in a thin layer (first term) and augmented by blackbody emission, where both processes are assumed to be independent of frequency.

### How do the fluxes change across a finite layer of absorbers?#

The above equations are **linear, first order ODEs**, and they are uncoupled from each other (because we neglected scattering).

**Consider a layer of atmosphere** from optical level \(\tau_{0}\) to \(\tau_{1}\). The optical thickness of the layer is \(\Delta \tau = \tau_{1} - \tau_{0}\).

The incident upwelling beam from below is denoted \(U_{0}\); the upwelling beam that leaves the top of our layer is denoted \(U_{1}\). We want to calculate \(U_{1}\), which we can get by integrating the equation for \(dU/d\tau\) over our layer.

The result is

where \(\tau\) is now a dummy variable of integration, and we’ve written the blackbody emissions as \(E = \sigma T^4\).

The change in the downwelling beam is similar:

## 3. Discretizing the Grey-gas equations on a finite grid#

One particularly important reason to think about these changes over finite layers is that we will typically solve the radiative transfer equations in a numerical model where the temperature is represented on a discrete grid (often using pressure coordinates).

If we assume that **temperature is uniform everywhere in our layer** then the blackbody emission \(E\) is also a constant across the layer, which we will denote \(E_{0}\).

It can come out the integral and the expressions simplify to

### Transmissitivity#

The first term is the **transmission** of radition from the bottom to the top of the layer (or vice-versa). We can define the **transmissivity** of the layer (denoted \(t_{0}\)) as the fraction of the incident beam that is passed on to the next layer:

### Emissivity#

The second term is the net change in the beam due to **emissions** in the layer.

We can the define the **emissivity** \(\epsilon_0\) of the layer analogously

### The discrete two-stream equations on a finite pressure grid#

Putting this all together gives us two simple equations that govern changes in the upwelling and downwelling beams across a discrete layer of optical depth \(\Delta \tau\):

Our model will typically be discretized in pressure coordinates. Suppose the thickness of the layer is \(\Delta p\), then the optical depth is

(the minus sign accounts for the opposite sign conventions of the two coordinates).

Thus the emissivity of the layer is

In the grey gas approximation we ignore all spectral dependence of the flux, so \(\kappa\) is a constant (we could let it vary in the vertical to represent non-well-mixed greenhouse gases like water vapor), and the blackbody emissions are simply

## 4. Matrix equations for the grey gas model#

`climlab`

implements the discretized two-stream equations as written above.

We will now write out the equations on a discretized pressure grid with \(N\) layers.

Let the **upwelling flux** be a column vector

If there are \(N\) levels then \(\bf{U}\) has \(N+1\) elements (i.e. the fluxes are defined at the boundaries between levels). We will number the layers starting from 0 following `numpy`

index conventions.

\(U_0\) is the upwelling flux from surface to layer 0.

\(U_1\) is the upwelling flux layer 0 to layer 1, etc.

\(U_N\) is the upwelling flux from layer N-1 (the top level) to space.

Same for the **downwelling flux**

So \(D_N\) is the flux down from space and \(D_0\) is the back-radiation to the surface.

The **temperature** and **blackbody emissions** are defined for each \(N\) pressure level, and are related by

### Emissivity and Transmissivity vectors#

Let the vector of absorptivity / emissivity be

where each element is determined by the thickness of the layer and the absorption cross-section for this particular spectral band:

And the transmissivity of individual layers is

It is convenient to define a vector of transmissivities \({\bf{t}}\) with \(N+1\) elements:

### The downwelling beam#

For the downwelling beam, we define a column vector of emissions with \(N+1\) elements:

where we define the last element \(E_N\) as the **incident flux at the TOA**.

For a longwave model, we would usually set \(E_N = 0\). For a shortwave model, this would be the incident solar radiation.

We want a matrix \({\bf{T_{down}}}\) that, when multiplied by \(E_N\), gives the downwelling beam at each of the \(N+1\) layer interfaces:

### The upwelling beam#

Define a vector of emissions for the upwelling beam thus:

We need to add the reflected part of the downwelling beam at the surface to any emissions from the surface:

Now we want a matrix \({\bf{T_{up}}}\) such that the upwelling beam is

### The transmissivity matrices#

and

These formulas have been implemented in `climlab.radiation.transmissivity.Transmissivity()`

using vectorized `numpy`

array operations.

```
# example with N=2 layers and constant absorptivity
# we construct an array of absorptivities
eps = np.array([0.58, 0.58])
# and pass these as argument to the Transmissivity class
trans = climlab.radiation.transmissivity.Transmissivity(eps)
print( 'Matrix Tup is ')
print( trans.Tup)
print( 'Matrix Tdown is ')
print( trans.Tdown)
```

```
Matrix Tup is
[[1. 0.42 0.1764]
[0. 1. 0.42 ]
[0. 0. 1. ]]
Matrix Tdown is
[[1. 0. 0. ]
[0.42 1. 0. ]
[0.1764 0.42 1. ]]
```

## 5. Band-averaged radiation models in `climlab`

#

The Grey Gas model is a useful first step in understanding how radiation shapes the global energy balance. But we quickly run up against its limitations when trying to understand what really determines climate sensitivity.

What’s the next step in the model hierarchy?

Suppose we break up the spectrum into a discrete number \(M\) of **spectral bands**. The idea is that we find parts of the spectrum in which the absorption characteristics of the important gases are relatively uniform. We then write the **band-averaged absorption cross section** for gas \(k\) and band \(j\) as

where we integrate over whatever part of the spectrum we have chosen to define band \(j\).

In our band models we will typically ignore any dependence of \(\kappa\) on temperature. The total absorption cross section for our band is thus (summing over all absorbing gases):

Notice that once we make this defintion, all of the formulas we wrote down above for the grey gas model can be written nearly identically for the fluxes in each band.

The optical depth in band \(j\) is

from which we can define emissivity and transmissivity for band \(j\) just as above.

The only difference from the Grey Gas formulas is that the **blackbody emission** in band \(j\) (denoted \(E_j\)) is now only a fraction of \(\sigma T^4\).

We will denote this fraction as \(b_j\).

The fraction \(b_j\) is temperature-dependent, and can be solved by integrating the Planck function:

To simplify our band models, we might choose to fix \(b_j\) in advance and just assume

which is sensible if the temperatures don’t vary too much.

Regardless of how we calculate \(b_j\), they must add up to one over all the bands in our model:

Once we’ve figured out this division of the total flux into multiple bands, and we know the absorption cross-sections of each band, we can calculate the upwelling and downwelling fluxes independently for each band, **using the same formulas (same code!) as we use in the grey gas model**.

To get the total flux, we just need to sum the beams over all bands:

## References#

For many more details about radiative transfer and a more careful derivation of the two-stream equations, see

Pierrehumbert, R. T. (2010). Principles of Planetary Climate. Cambridge University Press.

## Credits#

This notebook is part of The Climate Laboratory, an open-source textbook developed and maintained by Brian E. J. Rose, University at Albany.

It is licensed for free and open consumption under the Creative Commons Attribution 4.0 International (CC BY 4.0) license.

Development of these notes and the climlab software is partially supported by the National Science Foundation under award AGS-1455071 to Brian Rose. Any opinions, findings, conclusions or recommendations expressed here are mine and do not necessarily reflect the views of the National Science Foundation.