[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Top 10 IDL Requests
Michael Plonski wrote:
> 1) Complement of Where - so the same call returns where, and a named
> variable returns where-not
FUNCTION WHERENOT, TEST, COUNT
return, where(test eq 0, count)
END
b = where(a lt 5, count)
print, b, count
0 1 2 3 4
5
b = wherenot(a lt 5, count)
print, b, count
5 6 7 8 9
5
It requires another 'where' call if you want the where and where-not,
but I'm guessing this functionality isn't needed that often.
Cheers,
Liam.
http://cimss.ssec.wisc.edu/~gumley