By using a spectroscope an astronomer can