[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Top 10 IDL Requests




"Liam E. Gumley" <Liam.Gumley@ssec.wisc.edu> writes:
> 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
...
> It requires another 'where' call if you want the where and where-not,
> but I'm guessing this functionality isn't needed that often.

No, Mr. Plonski, myself, and several others on this news group were
asking for the WHERE and its complement in the same function call.  It
does come up a fair amount for me, and it can be a big computation
expense to do WHERE twice if the arrays are large.

Craig

-- 
--------------------------------------------------------------------------
Craig B. Markwardt, Ph.D.         EMAIL:    craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
--------------------------------------------------------------------------