hubble-spectroscopy-spectroscope-aug2023
When light from a celestial object enters the telescope, it passes through a tiny slit in a metal plate to isolate it from other light. The light then bounces off a special grating – a metal surface of tiny patterns - that splits the light into its constituent wavelengths. The split wavelengths are focused to hit a detector, which records them as a spectrum.
Credits: NASA Goddard/Shireen Dooling