Oxygen atoms give off deep reds at altitudes of 100-150 miles from the ground and green whitish colors when they're closer. Nitrogen gives off blue and red colors when it is 80-100 miles from the ground. There are other gases in the atmosphere that give off different colors such as neon, helium or hydrogen, but are only present is small amounts so are more difficult to detect.
Knowing the colors and their respective atoms, you can look at an aurora and see where there must be a lot of oxygen atoms or nitrogen and where different elements are mixed. |
Courtesy of http://www.exploratorium.edu/learning_studio/auroras/ |