Climate Change: Simple, Serious, Solvable › Models
Earthlight Seen from Space: Greenhouse Gases and the Infrared Spectrum
The Earth and its air glow in the infrared. Greenhouse gases take bites out of that glow before it reaches space. Change the gases in a column of air and watch the spectrum a satellite would see.
Loading the spectra…
Earthlight leaving the top of the atmosphere
- Earthlight leaving the top of the atmosphere
- The spectrum you kept
- The surface's own glow
- Black surfaces at 220, 240, 260 and 280 K
Move over the graph, or select it and use the arrow keys, to read values.
The red surface curve shows how much infrared radiation a black surface at the surface's temperature would emit at each wavelength. The dark curve shows what reaches the top of the atmosphere after gases have absorbed and emitted radiation. Where the atmosphere is nearly transparent, the two curves almost meet. Within an absorption band, radiation usually comes from higher, colder air, so the dark curve lies closer to a colder blackbody curve.
This is a snapshot. Imagine a satellite passing overhead and observing one local atmospheric column at one moment. The spectrum is that instantaneous view, and the totals under the graph are for the same column. Neither result is a global average. Nothing adjusts after you change an input: there is no feedback, temperature response, circulation, or new equilibrium. Each result is simply another prescribed snapshot.
How it works
The warm surface emits a smooth spectrum of infrared radiation. Yet a satellite looking down from space sees deep valleys, broad shoulders, and even a strange little bump in the middle of the carbon-dioxide band. What happened to the radiation on its way up?
The short answer is that the atmosphere is not simply a lid that blocks heat. It is a stack of layers, each of which absorbs and emits infrared radiation at particular wavelengths. The spectrum reaching space is the accumulated result of radiation passing through, being absorbed, and being emitted again all along the path.
Emission by the surface
Everything with a temperature above absolute zero emits radiation. For objects at temperatures found on Earth, most of that emission is infrared. A warmer surface emits more infrared energy than a colder surface, and the amount emitted varies smoothly with wavelength according to the Planck law.
The red surface curve shows that smooth spectrum for the surface's temperature. The model treats the surface as a perfect infrared emitter, or blackbody. This makes the red curve a useful starting point: it shows what the satellite would see if there were no absorbing atmosphere in the way.
But there is an atmosphere in the way, and the dark top-of-atmosphere curve is not smooth at all.
What the atmosphere does
Greenhouse gases interact selectively with infrared radiation. Carbon dioxide absorbs strongly near 15 µm, methane near 7.7 µm, and water vapor across broad parts of the spectrum. Between about 8 and 13 µm, the atmosphere is relatively transparent. Radiation from the surface and lower atmosphere can escape more directly through this atmospheric window.
Absorption is only half the story. The same molecules that absorb infrared radiation also emit it at the same wavelengths. A carbon-dioxide absorption band is therefore also a carbon-dioxide emission band. Whether a layer adds more radiation than it removes along a particular path depends on the radiation arriving at that layer, how opaque the layer is at that wavelength, and the layer's temperature.
That last point is crucial. Warm air emits more infrared radiation than cold air. Because temperature generally decreases with height through the troposphere, replacing radiation from the warm surface with radiation from colder air above usually reduces the infrared brightness seen from space.
From the surface to a satellite
This is the whole setting: a warm surface below, space above, and a deep atmosphere between them.
Some surface radiation passes through the air. Some is absorbed. The atmosphere also emits infrared radiation of its own, both upward and downward.
The vertical pathway through the air
Imagine dividing the atmosphere into many thin layers. At a wavelength a layer can absorb, it removes some of the radiation arriving from below and some arriving from above. At the same time, the layer emits new infrared radiation both upward and downward.
Some radiation passes into the next layer. Some is absorbed again and replaced by emission from that layer. Repeating this process from the surface to space produces the spectrum at the top.
Each wavelength follows a different pathway because atmospheric opacity changes enormously across the infrared spectrum.
What the satellite sees
The plotted top-of-atmosphere spectrum is the view of a satellite looking straight down. This viewing direction is called nadir. The satellite measures spectral radiance: infrared brightness at one wavelength traveling within one narrow range of directions.
The transparent wavelengths look bright because the satellite receives radiation from the warm surface and lower atmosphere. Strong absorption bands look dimmer because the radiation escaping there generally comes from higher, colder air. The spectrum is therefore more than a molecular fingerprint. It also contains information about temperature with height.
This does not mean that each wavelength photographs one exact atmospheric level. The view is a weighted mixture of emission along the entire path. Changing the abundance of a gas changes those weights and changes which parts of the column the satellite can effectively see.
There is no single, sharply defined “emission height.” Radiation at one wavelength generally comes from a range of layers. Still, the temperature reference curves provide a powerful clue about which part of the atmosphere contributes most strongly.
OLR integrates across wavelength and direction
A nadir spectrum describes one viewing direction, wavelength by wavelength. Outgoing longwave radiation (OLR) asks a broader question: how much thermal energy leaves the top of this atmospheric column altogether?
The model combines radiation across all thermal infrared wavelengths and across the entire upward-facing hemisphere. Slanted rays travel through more air than vertical rays, so their absorption and emission are different.
OLR is not merely the plotted nadir spectrum multiplied by a convenient constant. It is a flux reported in watts per square meter.
How to read the plot
Start by comparing the red surface curve with the dark top-of-atmosphere curve. Where they nearly meet, the atmosphere is relatively transparent. Where the dark curve falls far below the red curve, greenhouse gases have replaced much of the warm surface signal with emission from colder air.
The thin blackbody curves translate brightness into temperature. If the top-of-atmosphere spectrum lies near the 240 K curve in part of an absorption band, its brightness there resembles emission from air near 240 K (−33 °C; below zero Fahrenheit). That is a temperature clue, not an exact altitude measurement.
The middle of the 15 µm carbon-dioxide band contains an important exception to the simple “higher is colder” picture. Temperature increases with height in the stratosphere because ozone absorbs ultraviolet Sunlight. Carbon dioxide there can emit more strongly than the colder air below, producing the central bump in the band.
Keeping a spectrum preserves an earlier result as a dashed curve. Change one control and compare the curves. Notice not only whether an absorption band becomes deeper, but whether its wings become wider. The center of a strong band may already be nearly opaque, yet adding more gas can still reduce radiation escaping along the edges of the band and change OLR.
“Clear-sky” means exactly that: this calculation contains no clouds. It also omits Sunlight, weather, evaporation, convection, heat storage, and horizontal transport of energy by winds and ocean currents.
What this model represents
Think of the result as a satellite snapshot of one local atmospheric column at one moment. The selected temperature and composition profiles are prescribed inputs. When you move a slider, you create another snapshot and can see the immediate radiative consequence of that change.
Nothing else adjusts. Changing carbon dioxide does not automatically change atmospheric temperature, humidity, clouds, circulation, or the lapse rate. The model calculates radiative transfer through the conditions you specify; it does not predict what happens next.
That narrow scope is deliberate. It lets us isolate the physics that shapes the infrared spectrum: emission by the warm surface, selective absorption and emission by gases, the vertical temperature structure of the atmosphere, and the many pathways by which infrared energy finally escapes to space.
About this model
Everything glows. The Earth's surface and its air glow in the infrared, at wavelengths too long for our eyes. The book calls that glow Earthlight. A satellite looking straight down can spread the Earthlight out by wavelength, the way a prism spreads Sunlight into colors. The result is a spectrum: how bright the Earthlight is at each wavelength.
If the air did nothing, the spectrum would be the smooth red curve on the graph, the glow of the surface itself. It isn't. Greenhouse gases absorb the surface's Earthlight at some wavelengths and give off their own in its place. Carbon dioxide takes a wide bite near 15 µm, methane a small one near 7.7 µm, ozone one near 9.6 µm, and water vapor takes bites across much of the rest. Between about 8 and 13 µm the air absorbs little, and the surface's glow gets out. That gap is the atmospheric window.
The bites are deep because the air high up is cold, and cold air glows less than the warm surface below it. At the wavelengths a gas absorbs, space sees the cold air in place of the surface. Less Earthlight escapes, and that is the greenhouse effect.
This page shows one column of air at one moment. When you add a gas, the spectrum changes, but the air doesn't warm in response, and neither does the surface. The page shows the push on the climate. It doesn't show the climate's answer.
How to use this page
The page has two more tabs.
- The spectrum is the model. Choose a column of air, then set the carbon dioxide, the methane and the water vapor with the sliders, or type a number. The graph shows the Earthlight leaving the top of the atmosphere as a dark line, the surface's own glow in red, and the glow of black surfaces at four temperatures in gray. Move over the graph to read one wavelength. With the graph selected, the left and right arrow keys do the same. To see what a change does, keep a spectrum, then change the air: the kept spectrum stays on the graph as a dashed line. The far-out choices show air with almost none of a gas, or a great deal of it.
- How it works explains in words and three drawings why the spectrum has the shape it does.
Under the graph, a few lines say in words what it shows, and give the totals over all wavelengths. The address in your browser changes as you move the controls, so you can bookmark a view or send it to someone. Nothing is sent anywhere as you work. The spectra were calculated ahead of time, and your browser fills in between them.
This page is part of the website for Climate Change: Simple, Serious, Solvable, an open textbook by Scott Denning. It goes with Chapter 3, "How Climate Works".
The equations
You don't need any of this to use the page. But it's worth knowing what your browser does and what it doesn't.
It doesn't work out how air absorbs and gives off Earthlight. That takes a research model, which follows the Earthlight up through 240 levels of air, one narrow slice of wavelength at a time. It was done ahead of time for 45 mixes of gases in each column of air: three amounts of carbon dioxide, times three of methane, times five of water vapor. The answers come with the page.
Your browser answers one question: how bright is the Earthlight at this wavelength, for a mix that falls between the ones that were calculated? It answers 2,000 times, once for each wavelength on the graph, and joins the answers into a line. The equations for that are short, and you can follow them with a calculator.
You choose three things:
- the column of air, midlatitude summer or tropical
- the amount of each gas, C
- the wavelength you read on the graph, λ (the Greek letter lambda), in micrometers (µm)
Three numbers never change:
| Letter | What it is | Its value |
|---|---|---|
| c1 | the first constant in the equation for a black surface's glow, in W µm⁴ per m² per steradian | 1.191 × 10⁸ |
| c2 | the second constant, in µm K | 14,388 |
| C0 | today's amount of a gas: carbon dioxide in parts per million (ppm), methane in parts per billion (ppb) | 420 ppm, 1,900 ppb |
Two more things come from a calculator. The letter e is the number 2.718…, and ln is the natural logarithm, the key marked ln.
1. How brightly does a black surface glow?
A black surface absorbs all the light that reaches it. How brightly it glows at each wavelength depends only on its temperature, T, in kelvins. Chapter 2 calls that pattern the Planck distribution. This is its equation, in two parts. First, a number with no units:
Then the brightness, B:
B is in watts per square meter, per steradian, per micrometer of wavelength (W/m² per steradian per µm). A steradian measures how much of the sky a beam covers. The whole sky overhead is 2π steradians, about 6.3. At 10 µm, a black surface at 294.2 K glows at 9.02.
The red curve on the graph is this equation at the surface's temperature. The four gray curves are the same equation at 220, 240, 260 and 280 K.
2. How cold is the air a satellite sees?
Turn the last equation around. If you know how bright the Earthlight is at one wavelength, you can find the temperature of the black surface that would glow just that brightly:
Scientists call this the brightness temperature. The line under the graph gives it for the wavelength you're reading. In the window it's close to the surface's temperature, because the surface is what the satellite sees. In the middle of carbon dioxide's bite it's far colder, because there the Earthlight comes from air high up.
It's a clue, not a height. The Earthlight at one wavelength comes from a thick stretch of air, not from one level, and the graph has been smoothed.
3. How many doublings from today?
Each doubling of carbon dioxide dims the Earthlight by about the same amount. So the model doesn't count a gas in parts per million. It counts doublings from today's amount:
Today's 420 ppm of carbon dioxide is x = 0. Twice as much, 840 ppm, is 1. Half as much, 210 ppm, is −1. Methane works the same way from 1,900 ppb. Water vapor isn't counted in doublings: its slider already runs from 0.5 to 1.5 times the column's usual amount, and that number is its x.
4. Between which two calculated amounts?
The research model was run at these amounts.
- Carbon dioxide: 105, 420 and 1,680 ppm, which are x = −2, 0 and 2
- Methane: 475, 1,900 and 6,000 ppb, which are x = −2, 0 and 1.66
- Water vapor: 0.5, 0.75, 1, 1.25 and 1.5 times the usual amount
Find the two calculated amounts on either side of yours. Call them x0 and x1. The gap between them is
and you are this fraction of the way across it:
At x0, t is 0. At x1 it's 1.
5. How steep is the curve at each calculated amount?
Take one number from the tables, such as the brightness at one wavelength. It has a value at each calculated amount. Call the values y. Join each value to the next with a straight line. A line's slope is the change in y divided by the gap.
The model draws a smooth curve through the values in place of the straight lines. First it needs the curve's slope, d, at each calculated amount. At an amount in the middle, two lines meet. Call the slope of the line that arrives a and the slope of the line that leaves b. Then
This is a kind of average that leans toward the gentler of the two lines. If one line rises and the other falls, the value is a peak or a dip, and d is 0: the curve is level there.
At an end, only one line touches. Call its slope a, and the slope of the next line in b. Then
Two rules keep an end in check. If d would tilt the opposite way from a, it's set to 0. If a and b tilt opposite ways, d can be no more than 3a.
6. What's the value in between?
Now take the two calculated amounts on either side of yours. Their values are y0 and y1, and the curve's slopes there are d0 and d1. Three short equations give the answer. The share of the way from y0 to y1:
How much the curve bends:
And the value itself:
The first two terms carry you smoothly from y0 to y1. The last one bends the path so that it leaves with slope d0 and arrives with slope d1.
The curve passes through every calculated value. Between two of them it never goes above the higher one or below the lower one, so it can't invent a wiggle that the research model didn't find. Fritsch and Carlson worked out curves of this kind in 1980, and Fritsch and Butland gave the rule for the slopes in the middle in 1984.
7. What about three gases at once?
Do steps 4 to 6 along one gas at a time. The tables hold a value for each of the 45 mixes. Start with water vapor. For each of the 9 pairs of carbon dioxide and methane amounts, one curve turns 5 values into 1. Then methane: 3 curves turn those 9 values into 3. Then carbon dioxide: 1 curve turns the 3 into the answer.
That's 13 curves for one number, and 26,000 for a spectrum of 2,000 wavelengths. An ordinary computer does it in about a thousandth of a second, which is why the graph keeps up with the slider.
Where the equations stop
The curve is only good between calculated amounts. Past the last one there's nothing to hold it down, so the model never goes there, and the sliders stop where the tables do. The far-out choices aren't filled in at all. Each one is a single spectrum from the research model, shown as it was calculated.
A worked example
Start with today's air in the midlatitude summer column, where the surface is at 294.2 K. Read the graph at 15.00 µm, in the middle of carbon dioxide's bite. Then double the carbon dioxide.
- The surface's glow (step 1). u = 14,388 ÷ (15.00 × 294.2) = 3.260. Then B = 1.191 × 10⁸ ÷ (15.005 × (e3.260 − 1)) = 6.26. The line under the graph says the surface itself gives off 6.26.
- The air a satellite sees (step 2). The same line says the Earthlight leaving the top of the atmosphere is 2.65. So T = 14,388 ÷ (15.00 × ln(1 + 1.191 × 10⁸ ÷ (15.005 × 2.65))) = 14,388 ÷ (15.00 × ln 60.2) = 14,388 ÷ (15.00 × 4.10) = 234 K. The surface is 60 K warmer than that.
- Doublings (step 3). Choose "Twice today's CO₂ (840 ppm)". x = ln(840 ÷ 420) ÷ ln 2 = 1.
- Where that falls (step 4). 1 is between 0 (420 ppm) and 2 (1,680 ppm). So h = 2 − 0 = 2 and t = (1 − 0) ÷ 2 = 0.5.
- Slopes (step 5). Follow one number: the total Earthlight leaving the top of the atmosphere. At 105, 420 and 1,680 ppm it's 279.356, 273.972 and 268.747 W/m². The two lines slope at (273.972 − 279.356) ÷ 2 = −2.69 and (268.747 − 273.972) ÷ 2 = −2.61 W/m² per doubling. At 420 ppm, in the middle, d0 = 2 × (−2.69) × (−2.61) ÷ (−2.69 − 2.61) = −2.65. At 1,680 ppm, an end, d1 = (3 × (−2.61) − (−2.69)) ÷ 2 = −2.57.
- The value (step 6). s = 0.52 × (3 − 2 × 0.5) = 0.5. q = (1 − 0.5) × (−2.65) − 0.5 × (−2.57) = −0.04. And y = 273.972 + 0.5 × (268.747 − 273.972) + 2 × 0.5 × (1 − 0.5) × (−0.04) = 271.34 W/m².
The lines under the graph show it as 271.3 W/m². A straight line between the two calculated values would have given 271.36, so here the curve bends very little. Doubling carbon dioxide has cut the Earthlight leaving this column by 2.6 W/m².
A few details
- The totals aren't added up from the graph. The research model calculated them separately, over every direction and over wavelengths from 2 to 200 µm. The page fills in between them the same way as the spectrum. The graph shows only the Earthlight going straight up, from 4 to 30 µm.
- The surface's total. A black surface at 294.2 K gives off 424.8 W/m² over all wavelengths. The page says 424.5, because it stops at 200 µm.
- The top is higher than the ground. The total leaving is counted per square meter at the top of the model's air, about 81 km up. A sphere that high has about 2.6% more area than the Earth's surface. The surface's numbers are per square meter of ground.
- The graph is smoothed. The real spectrum is a forest of thousands of narrow lines. The graph blurs them. At 15 µm, each point on it is an average over about a third of a micrometer.
- Uneven gaps. The two slope equations in step 5 are for calculated amounts that are evenly spaced, as carbon dioxide's and water vapor's are. Methane's aren't. For those the code weighs the two lines by the gaps beside them.
- What stays fixed. The sky is clear. The surface is black and stays at its temperature. Carbon dioxide and methane are mixed evenly from the ground up. The water vapor slider multiplies the humidity at every height. Ozone, nitrous oxide and the temperature of the air don't change.
- Differences. When the page compares two totals, it subtracts before it rounds. So 274.0 and 271.3 are shown as 2.6 apart, not 2.7.
See the equations at work
- Each doubling counts the same. With today's air showing, choose "Keep this spectrum to compare", then "Twice today's CO₂ (840 ppm)". The lines under the graph say 271.3 W/m² leaves the top of the atmosphere, 2.6 less than the 274.0 you kept. Now type 1680 in the carbon dioxide box. That's 268.7, or 5.2 less than you kept. The second doubling took away 2.6, the same as the first. That's why step 3 counts in doublings.
- Read the temperature of the air. Choose "Back to today's air", then read the graph at three wavelengths. At 11.00 µm, in the window, the Earthlight is as bright as a black surface at 292 K. That's nearly the surface's own 294 K. At 14.50 µm it's 226 K: cold air, high up. At 15.00 µm, in the very middle of the bite, it's 234 K. That small peak comes from the stratosphere, where the air gets warmer with height. This is step 2.
- Deeper, then wider. Under the far-out air, choose carbon dioxide at 1 ppm, then 10, then 100. Then turn the far-out air off and type 1000 in the carbon dioxide box. The bite near 15 µm gets deeper at first. Once its middle is as deep as it can go, it gets wider. This is Figure 3.9 in the book. The first three spectra come straight from the research model, and the last is filled in by steps 3 to 7.
Then try the water vapor. It's the strongest greenhouse gas in this column. At 1.5 times the usual amount, 265.5 W/m² leaves the top of the atmosphere and the sky sends 375.5 down to the surface. At 0.5 times, those numbers are 285.7 and 315.5.
Where the spectra come from
The spectra and the totals were calculated with ARTS, the Atmospheric Radiative Transfer Simulator, version 2.6.16. ARTS is a research model that its developers share freely.
Buehler, S. A., Larsson, R., Lemke, O., Pfreundschuh, S., Brath, M., Adams, I., Fox, S., Roemer, F. E., Czarnecki, P., and Eriksson, P. (2025). The atmospheric radiative transfer simulator ARTS, version 2.6 — Deep python integration. Journal of Quantitative Spectroscopy and Radiative Transfer 341, 109443. doi:10.1016/j.jqsrt.2025.109443
This is how it was set up.
- The air. Two standard columns that come with ARTS, the FASCOD midlatitude-summer and tropical profiles, on 240 levels from the surface to about 81 km. The surface is black, at 294.2 K in the midlatitude summer column and 299.7 K in the tropical one. There are no clouds.
- The gases. ARTS added up the absorption lines of each gas from the catalogs that come with version 2.6.16. It also counted the absorption by water vapor between its lines (the MT_CKD 4.0 continuum) and the absorption that happens when nitrogen and oxygen molecules collide. It left out line mixing, a fine point of how crowded lines share their absorption.
- The mixes. 45 in each column: carbon dioxide at 105, 420 and 1,680 ppm, methane at 475, 1,900 and 6,000 ppb, and water vapor at 0.5, 0.75, 1, 1.25 and 1.5 times the column's usual humidity.
- The spectra. The brightness looking straight down from the top, smoothed and read at 2,000 wavelengths from 4 to 30 µm.
- The totals. Added up over 24 directions and over wavelengths from 2 to 200 µm.
The smooth curve in steps 5 and 6 comes from these two papers.
Fritsch, F. N., and Carlson, R. E. (1980). Monotone Piecewise Cubic Interpolation. SIAM Journal on Numerical Analysis 17(2), 238–246. doi:10.1137/0717021
Fritsch, F. N., and Butland, J. (1984). A Method for Constructing Local Monotone Piecewise Cubic Interpolants. SIAM Journal on Scientific and Statistical Computing 5(2), 300–304. doi:10.1137/0905021
How it was checked
- The filling in, against the research model. ARTS was run for 16 more mixes that aren't in the tables. The filled-in spectra matched them closely. The typical difference was less than 0.1% of the spectrum's peak, and the largest at any wavelength was 0.65%. For 32 more mixes, the filled-in totals were within 0.08 W/m² at the top of the atmosphere and 0.09 W/m² at the surface.
- This page's code, against a second program. The same filling in was written separately in Python, with the SciPy library. For 186 mixes, the two give the same spectra and totals to four decimal places. Each time the page changes, a test also works through the example above and the numbers in the list of things to try, and compares each with what the code gives.
- The model, against a measurement. Chapter 3 lays a spectrum from ARTS for the midlatitude summer column over one that NASA's AIRS instrument measured from orbit (Figure 3.8). They agree within a degree or two across the window and the water vapor and ozone bands.
The far-out spectra have had less checking. The two with the most gas, 10,000 ppm of carbon dioxide and 100,000 ppb of methane, passed a test of whether the model's wavelengths were fine enough. The others didn't get that test. That's one reason the page gives no totals for them.
The code
The code is small enough to read. Two files do all the work, and they use no outside software.
model.js is the science: the equations above, in a short file you can read from top to bottom.
app.js is the page: the controls, the graph and the lines under it.
To keep a copy, save model.js or app.js. The calculated spectra are in tables.bin, and tables.json says what's in it.
All of the model's code is on GitHub, at github.com/airscottdenning/climate-models. You're free to use it, change it and teach with it. If you use the spectra, please cite ARTS as above.
Credits
By Scott Denning, for Climate Change: Simple, Serious, Solvable. The spectra were calculated with ARTS, and the people who build ARTS made that possible by sharing it.
Scott Denning directed the project and reviewed its science, its results and this page. OpenAI Codex helped write and review the code that ran ARTS, design the tests and write up the methods. Claude, from Anthropic, rebuilt the page for the book. ARTS did the calculations of how air absorbs and gives off Earthlight. No AI made up a spectrum or a total.