An instrument that uses a diffraction grating to disperse light into a spectrum. Gratings may be placed at the focus of a telescope (a focal-plane spectrometer) or in front of a telescope (an objective spectrometer). Grating spectrometers are used for spectroscopy at wavelengths from X-rays to the far infrared.