A spectrometer is an optical instrument used to measure properties of light over a specific portion of the electromagnetic spectrum. In astronomy, spectrometers.