ZapZeros?

Dear All,

is there a way to ZapZeros the same way as for ZapNaNs - simple and quick?
I am doing batch processing of several curves and as a result of that (and of the original data) I get several zeros in the final waves out of which I have to do some statistics of - and the zeros are messing with everything! I understand I could design a loop to select for non-zero values, and create new waves from that selection- but is there a quicker way?

If you know, please drop me a line here!!

Many thanks,

R
One way to do this is to turn the zeros into NaNs and then zap them. Use a conditional statement e.g.

wave0 = (wave0 == 0) ? NaN : wave0
wavetransform zapnans wave0


Check out the help section on conditional operators for more info.
This is Perfect!! Many Thanks SJR51!!

BTW, many thanks again for the help a week ago, your For Loop example was precious - it really helped me getting started with some programming with Igor!

Cheers,

R.