The study of the interaction between matter and electromagnetic radiation, used to analyze the composition of stars and planets.