A spectrograph is used to:

A: see radio waves
B: analyze infrared and ultraviolet rays
C: measure distance
D: photograph the light spectrum