A majority of solar (mainly SW) heating occurs at (or somewhat under, as in the ocean) the surface, but a significant amount does occur in the atmosphere ??? some UV heating in the stratosphere, of course, and a larger amount in the troposphere, where SW radiation (but not visible ??? it???s IR but not LW (not terrestrial) is absorbed by water vapor, and some by clouds, and other gases.