1. A computer-implemented method of generating reference spectra, comprising: polishing a first substrate in a polishing apparatus having a rotatable platen; measuring a sequence of spectra from the substrate during polishing with an in-situ monitoring system; associating each spectrum in the sequence of spectra with an index value equal to a number of platen rotations at which the each spectrum was measured; and storing the sequence of spectra as reference spectra.