Stripping of Cosmic Spike Spectral Artifacts Using a New Upper-Bound Spectrum Algorithm

A new upper-bound spectrum (UBS) method for removal of cosmic spike artifacts from spectra or images collected using a charge-coupled device (CCD) detector is proposed. This algorithm, which is shown to outperform previous methods, relies on an upper-bound spectrum, derived from scaled copies of consecutively collected spectra, which serves as a threshold for the detection of suspected cosmic spikes. Detected spikes are removed by replacement with the corresponding points in other spectra. Thus, unlike other commonly used methods, the UBS algorithm requires no smoothing or noise filtering and more reliably removes cosmic spikes of all magnitudes while introducing far less (if any) spectral distortion. The UBS method is tested using both synthetic and experimental (gypsum and gypsum/hematite mixture) spectra containing variable background (fluorescence), noise, and cosmic spike interference. The UBS method may in rare instances mistakenly identify spectral noise or photo-induced changes in band intensity (or shape) as cosmic spikes. However, as demonstrated through the use of both synthetic and experimental examples, such misidentifications produce little or no spectral distortion or artifacts in the resulting cosmic-spike-free output spectra.