clean_spct function

Clean a spectrum