Here is a photo of Comet Lovejoy taken from orbit.
https://spaceflight.nasa.gov/gallery/images/station/crew-30/html/iss030e015472.html
The atmosphere has 3 bands. The lowest is deep blue and so I imagine that is Rayleigh scattering, the same as what makes the sky blue.
I am stumped by the red and green/yellow bands. They are so discrete it seems like some rainbow like refraction but they are in the wrong order.
Why does the Earth's atmosphere have these bands?