1-D radiative transfer