Emission and Absorption Properties of Atoms in a Trapping Potential