How does the atmosphere affect electromagnetic radiation?

The magnetic force absorbs energy.