clean function

Clean (=replace) off-range values in a spectrum