How Photons Interact With The Atmosphere