Use a convective layer T(z)=Ts−Γz capped at an isothermal minimum Tt at height zt. Let the initial optical depth be τ(z)=τse−z/Hτ and τt=τse−zt/Hτ. Within the lapse-rate layer, dBλ/dτ=B′ΓHτ/τ; above it the derivative vanishes. The supplied Schwarzschild equation therefore gives
For illustration, Γ=6.5Kkm−1 and Hτ=7km give −4.34K; these are illustrative, not supplied data. The inequalities put the effective emitting level τ∼1 inside the decreasing-temperature layer, well above an opaque surface and below the thin isothermal cap. Increasing opacity raises that emitting level by Hτln1.1, so it is colder. In a spectral window or above atemperature inversion the approximation and possibly the sign change. Opacity proportional to mixing ratio is also an assumption, not exact for every absorption mechanism.