In astronomy, long-slit spectroscopy involves observing a celestial object using a spectrograph in which the entrance aperture is an elongated, narrow slit. Light entering the slit is then refracted using a prism, diffraction grating, or grism. The dispersed light is typically recorded on a charge-coupled device detector.