splitting waves

Hi there guys,

I have been working with IGOR for some time now, but i have mostly used the menus and dialog boxes, and finally i have arrived to the point I will probably need some command line expressions, or even programming.

I have some data which i would like to split into different parts. These are 1D but mostly 2D waves. I was thinking of using the *duplicate* function and selecting an appropriate *range*(/R). But the way that *range* is interpreted in IGOR is through the position of the element in the wave, rather than the value of the element itself.

My question is, is there a function that allows me to tell Igor to go through a 2D wave, evaluate the values of each element in one of the dimensions and then create a new wave containing only a selected part that falls within specific comparative criteria (>, <, >=, <= or =).

Cheers,

R.