A diffraction grating splits mixed light into its separate distinct colors. It works much like a highly precise glass prism. Older gratings were made by a mechanical machine dragging a sharp diamond across glass.
This machine carved thousands of tiny parallel grooves per inch. Sometimes the machine gears had a slight wobble or a periodic stutter. This wobble created a repeating physical error in the microscopic groove spacing.
This repeating error acts exactly like a second grating printed on top of the first one. It bends a tiny bit of light the wrong way. This creates weak copycat lines right next to a very bright real spectral line.
These optical illusions are called Rowland ghosts. They cause major headaches for analytical chemists trying to find hidden trace elements. A ghost line can perfectly mimic the signal of a completely different element.
This makes a pure sample look contaminated. Modern chemistry labs mostly avoid this problem today by using holographic gratings. These newer gratings are printed flawlessly with lasers instead of mechanical scraping tools.
