Imaging spectrometers are used specifically for the purpose of measuring the spectral content of light and electromagnetic light.
The imaging spectrometer works by imaging a radiation source onto what is called a "slit" by means of a source imager.