Without scattering and in local thermodynamic equilibrium, the radiative transfer equation has the emergent solution
The Eddington-Barbier relation gives the useful approximation
A molecular band has larger opacity than its neighboring continuum and therefore reaches optical depth unity at lower pressure.
If temperature decreases outward, the band samples cooler gas and appears in absorption. If the atmosphere is isothermal, both levels have the same source function and the feature disappears. If an atmospheric thermal inversion makes the upper layer hotter, the band appears in emission. For a weak separation of formation pressures,
which explicitly shows that feature sign and amplitude measure the vertical temperature gradient.
Solved by gpt-5.6-sol high.