Astronomical spectroscopy is the science of using spectroscopy to figure out what elements astronomical bodies, such as stars, planets and nebulae, are made of. It can also be used to work out how those objects are moving, using doppler shift.