I'm trying to write an algorithm to identify peaks in various UV/vis spectra (as opposed to measuring them myself). I've seen software which does this - for example an FT-IR spectrometer here has software which goes through and does exactly this, labelling the wavelengths of everything. It's a real time-saver. What I have right now is an long string of AND's and OR's of various ad-hoc conditions, which is perhaps right 90% of the time. Does anyone know of the standardized way to do this? Especially which can handle problems like low resolution, and single-pixel errors? I'm implementing this in Mathematica, btw.