# 7. Elementary greenhouse models#

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

## 1. A single layer atmosphere#

We will make our first attempt at quantifying the greenhouse effect in the simplest possible greenhouse model: a single layer of atmosphere that is able to absorb and emit longwave radiation.

### Assumptions#

Atmosphere is a single layer of air at temperature \(T_a\)

Atmosphere is

**completely transparent to shortwave**solar radiation.The

**surface**absorbs shortwave radiation \((1-\alpha) Q\)Atmosphere is

**completely opaque to infrared**radiationBoth surface and atmosphere emit radiation as

**blackbodies**(\(\sigma T_s^4, \sigma T_a^4\))Atmosphere radiates

**equally up and down**(\(\sigma T_a^4\))There are no other heat transfer mechanisms

We can now use the concept of energy balance to ask what the temperature need to be in order to balance the energy budgets at the surface and the atmosphere, i.e. the **radiative equilibrium temperatures**.

### Energy balance at the surface#

The presence of the atmosphere above means there is an additional source term: downwelling infrared radiation from the atmosphere.

We call this the **back radiation**.

### Energy balance for the atmosphere#

which means that

So we have just determined that, in order to have a purely **radiative equilibrium**, we must have \(T_s > T_a\).

*The surface must be warmer than the atmosphere.*

### Solve for the radiative equilibrium surface temperature#

Now plug this into the surface equation to find

and use the definition of the emission temperature \(T_e\) to write

*In fact, in this model, \(T_e\) is identical to the atmospheric temperature \(T_a\), since all the OLR originates from this layer.*

Solve for the surface temperature:

Putting in observed numbers, \(T_e = 255\) K gives a surface temperature of

This model is one small step closer to reality: surface is warmer than atmosphere, emissions to space generated in the atmosphere, atmosphere heated from below and helping to keep surface warm.

### Why does this model overpredict the surface temperature#

Our model now overpredicts the surface temperature by about 15ºC (303 K versus the observed 288 K).

Ideas about why?

Basically we just need to read our **list of assumptions** above and realize that none of them are very good approximations:

Atmosphere absorbs some solar radiation.

Atmosphere is NOT a perfect absorber of longwave radiation

Absorption and emission varies strongly with wavelength

*(atmosphere does not behave like a blackbody)*.Emissions are not determined by a single temperature \(T_a\) but by the detailed

*vertical profile*of air temperture.Energy is redistributed in the vertical by a variety of dynamical transport mechanisms (e.g. convection and boundary layer turbulence).

## 2. Introducing the two-layer grey gas model#

Let’s generalize the above model just a little bit to build a slighly more realistic model of longwave radiative transfer.

We will address two shortcomings of our single-layer model:

No vertical structure

100% longwave opacity

Relaxing these two assumptions gives us what turns out to be a very useful prototype model for **understanding how the greenhouse effect works**.

### Assumptions#

The atmosphere is

**transparent to shortwave radiation**(still)Divide the atmosphere up into

**two layers of equal mass**(the dividing line is thus at 500 hPa pressure level)Each layer

**absorbs only a fraction \(\epsilon\)**of whatever longwave radiation is incident upon it.We will call the fraction \(\epsilon\) the

**absorptivity**of the layer.Assume \(\epsilon\) is the same in each layer

This is called the **grey gas** model, where **grey** here means the emission and absorption have **no spectral dependence** (same at every wavelength).

We can think of this model informally as a “leaky greenhouse”.

Note that the assumption that \(\epsilon\) is the same in each layer is appropriate if the absorption is actually carried out by a gas that is **well-mixed** in the atmosphere.

Out of our two most important absorbers:

CO\(_2\) is well mixed

H\(_2\)O is not (mostly confined to lower troposphere due to strong temperature dependence of the saturation vapor pressure).

But we will ignore this aspect of reality for now.

### Kirchoff’s Law#

In order to build our model, we need to introduce one additional piece of physics known as **Kirchoff’s Law**:

So **if a layer of atmosphere at temperature \(T\) absorbs a fraction \(\epsilon\)** of incident longwave radiation, it must **emit**

both up and down.

### A sketch of the radiative fluxes in the 2-layer atmosphere#

Surface temperature is \(T_s\)

Atm. temperatures are \(T_0, T_1\) where \(T_0\) is closest to the surface.

absorptivity of atm layers is \(\epsilon\)

Surface emission is \(\sigma T_s^4\)

Atm emission is \(\epsilon \sigma T_0^4, \epsilon \sigma T_1^4\) (up and down)

Absorptivity = emissivity for atmospheric layers

a fraction \((1-\epsilon)\) of the longwave beam is

**transmitted**through each layer

## 3. Tracing the upwelling beam of longwave radiation#

Let’s think about the upwelling beam of longwave radiation, which we denote \(U\).

### Surface to layer 0#

We start at the surface. The upward flux **from the surface to layer 0** is

(just the emission from the suface).

### Layer 0 to layer 1#

Now **following this beam upward**, we first recognize that a fraction \(\epsilon\) of this beam is **absorbed** in layer 0.

The upward flux from layer 0 to layer 1 consists of the sum of two parts:

The

**transmitted part**of whatever is incident from below (i.e. the part that is**not absorbed**)**New upward emissions**from layer 0

We can write this upward flux from layer 0 to layer 1 as:

### Beyond layer 1#

Continuing to follow the same beam, we follow the same logic! A fraction \(\epsilon\) of \(U_1\) is absorbed in layer 1, and therefore the transmitted part is \((1-\epsilon) U_1\).

Including new emissions from layer 1, the upwelling flux above layer 1 is

### Outgoing Longwave Radiation#

Since there is **no more atmosphere above layer 1**, this upwelling beam is our OLR for this model:

which, plugging in the above expression for \(U_1\), works out to

Here the three terms represent **contributions to the total OLR** that **originate from each of the three levels**

### Limits of large and small absorptivity/emissivity#

Think about the following two questions:

What happens to this expression if \(\epsilon=1\)?

*What does this represent physically?*What about \(\epsilon=0\)?

By allowing the atmosphere to partially absorb emissions from other levels, we now see that the Outgoing Longwave Radiation to space **includes emissions from every level** - and therefore **affected by temperature at every level**!

## 4. Tuning the grey gas model to observations#

In building our new model we have introduced exactly **one parameter**, the absorptivity \(\epsilon\). We need to choose a value for \(\epsilon\).

We will tune our model so that it **reproduces the observed global mean OLR** given **observed global mean temperatures**.

### Global mean air temperature observations#

To get appropriate temperatures for \(T_s, T_0, T_1\), let’s revisit the global, annual mean lapse rate plot from NCEP Reanalysis data we first encountered in the Radiation notes.

```
# This code is used just to create the skew-T plot of global, annual mean air temperature
%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
import xarray as xr
from metpy.plots import SkewT
ncep_url = "http://www.esrl.noaa.gov/psd/thredds/dodsC/Datasets/ncep.reanalysis.derived/"
ncep_air = xr.open_dataset( ncep_url + "pressure/air.mon.1981-2010.ltm.nc", use_cftime=True)
# Take global, annual average and convert to Kelvin
coslat = np.cos(np.deg2rad(ncep_air.lat))
weight = coslat / coslat.mean(dim='lat')
Tglobal = (ncep_air.air * weight).mean(dim=('lat','lon','time'))
fig = plt.figure(figsize=(9, 9))
skew = SkewT(fig, rotation=30)
skew.plot(Tglobal.level, Tglobal, color='black', linestyle='-', linewidth=2, label='Observations')
skew.ax.set_ylim(1050, 10)
skew.ax.set_xlim(-75, 45)
# Add the relevant special lines
skew.plot_dry_adiabats(linewidth=0.5)
skew.plot_moist_adiabats(linewidth=0.5)
#skew.plot_mixing_lines()
skew.ax.legend()
skew.ax.set_title('Global, annual mean sounding from NCEP Reanalysis', fontsize = 16);
```

```
/Users/br546577/miniconda3/envs/climlab-courseware/lib/python3.10/site-packages/xarray/coding/times.py:167: SerializationWarning: Ambiguous reference date string: 1-1-1 00:00:0.0. The first value is assumed to be the year hence will be padded with zeros to remove the ambiguity (the padded reference date string is: 0001-1-1 00:00:0.0). To remove this message, remove the ambiguity by padding your reference date strings with zeros.
warnings.warn(warning_msg, SerializationWarning)
```

### Target temperatures for our model tuning#

First, we set

From the lapse rate plot, an average temperature for the layer between 1000 and 500 hPa is

Defining an average temperature for the layer between 500 and 0 hPa is more ambiguous because of the lapse rate reversal at the tropopause. We will choose

From the graph, this is approximately the observed global mean temperature at 275 hPa or about 10 km.

### OLR#

From the observed global energy budget we set

### Solving for \(\epsilon\)#

We wrote down the expression for OLR as a function of temperatures and absorptivity in our model above.

All we need to do is plug the observed values into the above expression for OLR, and solve for \(\epsilon\).

It is a **quadratic equation** for the unknown \(\epsilon\). We could work out the exact solution using the quadratic formula.

But let’s do it **graphically**, using Python!

### Exercise: graphical solution to find the best fit value of \(\epsilon\)#

The OLR formula for the leaky greenhouse that we derived above is

Do the following:

Write a Python function that implements this formula

The function should accept

**four input parameters**:The three temperatures \(T_s, T_0, T_1\)

The emissivity \(\epsilon\)

Using this function, make a

**graph of OLR vs. \(\epsilon\)**for the observed temperature values \(T_s = 288, T_0 = 275, T_1 = 230\)For the graph, \(\epsilon\) should range between 0 and 1.

From your graph, find the approximate value of \(\epsilon\) that gives \(OLR = 238.5\)

```
# Some partial code to get you started
def OLR(Ts, T0, T1, epsilon):
return ... # fill in this line, implementing the formula for OLR above
eps_array = ... # make an array of values ranging from 0 to 1
# uncomment this line to make the plot, after you have created the OLR function
#plt.plot(eps_array, OLR(288, 275, 230, eps_array))
# add axis labels and units, e.g. using plt.xlabel() and plt.ylabel()
#plt.grid() # uncomment this line to add grid lines to your figure
```

Note if you solve the quadratic equation algebraically you will get two solutions:

\(\epsilon \approx 0.586\)

\(\epsilon \approx 3.93\)

(for details, see the advanced notes here)

**Why is the second solution not physically meaningful?**

Hopefully your graph shows that \(\epsilon = 0.586\) gives the correct value of OLR.

This is the absorptivity that guarantees that **our model reproduces the observed OLR given the observed temperatures**.

## 5. Level of emission#

### Contributions from each level to the outgoing radiation#

Now that we have tuned up our model, we can see exactly how strongly each level contributes to the OLR.

The three components of the OLR are

which of course add up to the total OLR we wrote down above.

### Exercise: calculate contributions to OLR#

**Write some simple Python code to calculate each term in the OLR using the observed temperatures and the tuned value \(\epsilon = 0.586\). Fill out the list below using your calculated numbers.**

**Contributions to the OLR originating from each level, in W/m2:**

Surface:

Level 0:

Level 1:

```
# now sum up the numbers to verify you get something very close to 238.5
```

Notice that the largest single contribution is coming from the top layer.

*This is in spite of the fact that the emissions from this layer are weak, because it is so cold.*

### Changing the level of emission by adding absorbers#

Adding some **extra greenhouse absorbers** will mean that a **greater fraction** of incident longwave radiation is **absorbed in each layer**.

Thus **\(\epsilon\) must increase** as we add greenhouse gases.

Suppose we have \(\epsilon\) initially, and the absorptivity increases to \(\epsilon_2 = \epsilon + \Delta \epsilon\).

Suppose further that this increase happens **abruptly** so that there is no time for the temperatures to respond to this change. **We hold the temperatures fixed** in the column and ask how the radiative fluxes change.

**Question: Do you expect the OLR to increase or decrease?**

### Calculating the change in level of emission#

Let’s use our two-layer leaky greenhouse model to investigate the answer.

The components of the OLR before the perturbation are

and after the perturbation we have

Let’s subtract off the original components to get the contributions to the **change in OLR** from each layer:

Now expand this out, but to make things easier to deal with, neglect term in \(\Delta \epsilon^2\) (very small - we will be considering changes of less than 10% in \(\epsilon\)):

Now look at the **sign** of each term. Recall that \(0 < \epsilon < 1\). **Which terms in the OLR go up and which go down?**

**THIS IS VERY IMPORTANT, SO STOP AND THINK ABOUT IT.**

The contribution from the **surface** must **decrease**, while the contribution from the **top layer** must **increase**.

**When we add absorbers, the average level of emission goes up!**

## 6. Radiative forcing in the 2-layer grey gas model#

### Definition of Radiative Forcing#

We now define a very important quantity:

**“Radiative forcing” is the change in total radiative flux at TOA after adding absorbers**

In this model, **only the longwave flux can change**, so we calculate the radiative forcing as

(with the minus sign so that \(R\) is **positive when the climate system is gaining extra energy**).

### Connection between radiative forcing and level of emission#

We just worked out that whenever we **add some extra absorbers**, the **emissions to space** (on average) will originate from **higher levels** in the atmosphere.

What does this mean for OLR? Will it increase or decrease?

To get the answer, we just have to sum up the three contributions we wrote above:

Is this a positive or negative number? The key point is this:

**It depends on the temperatures, i.e. on the lapse rate.**

### Greenhouse effect for an isothermal atmosphere#

Stop and think about this question:

If the **surface and atmosphere are all at the same temperature**, does the OLR go up or down when \(\epsilon\) increases (i.e. we add more absorbers)?

Understanding this question is key to understanding how the greenhouse effect works.

#### Let’s solve the isothermal case#

We will just set \(T_s = T_0 = T_1\) in the above expression for the radiative forcing.

What do you get?

#### The answer is \(R=0\)#

For an isothermal atmosphere, there is **no change** in OLR when we add extra greenhouse absorbers. Hence, no radiative forcing and no greenhouse effect.

Why?

The level of emission still must go up. But since the temperature at the upper level is the **same** as everywhere else, the emissions are exactly the same.

### The radiative forcing (change in OLR) depends on the lapse rate!#

For a more realistic example of radiative forcing due to an increase in greenhouse absorbers, we use our observed temperatures and the tuned value for \(\epsilon\).

We’ll express the answer in W m\(^{-2}\) for a 2% increase in \(\epsilon\):

```
epsilon = 0.586041150248834
delta_epsilon = 0.02 * epsilon
delta_epsilon
```

```
0.011720823004976679
```

Calculate the three components of the radiative forcing:

```
sigma = 5.67E-8
Ts = 288.
T0 = 275.
T1 = 230.
```

```
# Component originating from the surface
Rs = -delta_epsilon * (-2*(1-epsilon)*sigma * Ts**4)
Rs
```

```
3.78528239476332
```

```
# Component originating from level 0
R0 = -delta_epsilon * (1-2*epsilon) * sigma * T0**4
R0
```

```
0.6540457761108388
```

```
# Component originating from level 1
R1 = -delta_epsilon * sigma * T1**4
R1
```

```
-1.8597411929137297
```

So just add them up to get the total radiative forcing:

```
R = Rs + R0 + R1
R
```

```
2.579586977960429
```

So in our example, **the OLR decreases by 2.6 W m\(^{-2}\)**, or equivalently, the **radiative forcing is +2.6 W m\(^{-2}\).**

What we have just calculated is this:

**Given the observed lapse rates, a small increase in absorbers will cause a small decrease in OLR.**

The **greenhouse effect** thus gets **stronger**, and energy will begin to accumulate in the system – which will eventually **cause temperatures to increase** as the system adjusts to a new equilibrium.

## 7. Summary#

### Key physical lessons#

Putting a

**layer of longwave absorbers**above the surface keeps the**surface substantially warmer**, because of the**backradiation**from the atmosphere (greenhouse effect).The

**grey gas**model assumes that each layer absorbs and emits a fraction \(\epsilon\) of its blackbody value, independent of wavelength.

With

**incomplete absorption**(\(\epsilon < 1\)), there are contributions to the OLR from every level and the surface (there is no single**level of emission**)Adding more absorbers means that

**contributions to the OLR**from**upper levels**go**up**, while contributions from the surface go**down**.This upward shift in the weighting of different levels is what we mean when we say the

**level of emission goes up**.

The

**radiative forcing**caused by an increase in absorbers**depends on the lapse rate**.For an

**isothermal atmosphere**the radiative forcing is zero and there is**no greenhouse effect**The radiative forcing is positive for our atmosphere

**because tropospheric temperatures tend to decrease with height**.

## 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.