1. A method for discriminating product units by selected electromagnetic spectral ranges, comprising passing an image of a thin portion of a product unit through a slit; passing the image of the thin portion of the product unit from the slit through a prism to spread the spectrum of the image perpendicularly to the major dimension of the image; digitizing the magnitudes of the spread image by a CCD camera in pixels.