The study of spectroscopy and spectra is used in astronomy to help scientists study the whole spectrum of electromagnetic radiation, including visible light, which radiates from stars and other hot celestial objects. Spectroscopy can be used to find properties of distant stars and galaxies. It can find out their chemical composition, temperature, density, mass, distance, luminosity, and relative motion using doppler effect measurements.