A closer look at Joseph von Fraunhofer
Fraunhofer systematically mapped dark lines across the solar spectrum.
As an optical instrument maker, he could use sharp lines as reproducible wavelength landmarks. Their physical explanation came later through laboratory spectroscopy.
A broad rainbow offers few exact reference marks. Narrow lines make it possible to compare one optical glass, instrument, or solar observation with another. For related work in astronomy, see Gustav Kirchhoff.
Want to learn more about Joseph von Fraunhofer? Joseph von Fraunhofer on Wikipedia.

