Pre-processing of Spectra