Two benches sit below. The first stacks perfectly absorbing layers above a planet and prints
the temperature of every level, beside the value the analytic formula demands. The second keeps
one layer, lets you set how absorbing it is, and then shows you what that convenient grey
assumption is costing. Every constant here is the one in
the analysis file, and the defaults reproduce
the article's headline numbers exactly.
Model 1. Stack the layers
The rules are short enough to hold in your head. Sunlight passes through every layer untouched
and is absorbed at the ground. Each layer absorbs everything in the infrared and therefore emits
everything, radiating σT4 upward and the same amount downward. Space above the
top layer sends nothing back. Balance the energy at every level and you get a chain of linear
equations that the code below solves twice, once by stepping down the chain and once by the
closed form, so you can watch the two agree.
Model 2. Let the layer be imperfect, then count the cost
One layer, absorbing a fraction ε of the infrared rather than all of it. The layer's
own balance loses the ε entirely, so a thin veil and an opaque slab sit at the same
temperature and differ only in how much of the ground they can see. What is left is one
formula:
Underneath the plot sits the comparison the article is really about. The two-band model splits
the infrared at the edges of the atmospheric window, gives the window an optical depth you can
set and the rest of the spectrum whatever depth is needed to reach the same surface temperature,
and computes the band fractions by summing the exact blackbody series. On the present day the
two models agree exactly. Then you multiply the absorber and they stop agreeing.
Set Model 1 to N = 1 and read 303.50 K, then to N = 0 and read 255.21 K. Those two numbers
bracket the planet and neither is the planet. That is the whole problem in ten seconds.
In Model 2, put the multiplier back to 1.0 and confirm that both models read 288.00 K and that
the effective absorptivity A equals ε* to six decimals. Splitting the spectrum changed
nothing at all about the present day, which is exactly why the grey assumption survives in
textbooks. Then move the multiplier to 2.0 and watch the two numbers separate by six degrees.
Last, set the scaling to “absorbing band only” and push the multiplier to the top.
The two-band curve goes flat. Nothing you do to that band matters any more, because it is
already opaque and radiating from its own top. Grey cannot represent that, and never will,
because a single optical depth can always be made larger.