Scanning and restoration of spectral data in the presence of noise