comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » IDL Question - Opposite of WHERE?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IDL Question - Opposite of WHERE? [message #35468 is a reply to message #35320] Wed, 11 June 2003 15:51 Go to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
zygnus wrote:
>
> is there a command that does the opposite of the WHERE command?
> Instead of returning the indeces of elements that satisfy a condition,
> it returns the ones that dont satisfy it
>
> any idea how i can do that?

Instead of where(x eq 4), just use where(x ne 4). There's a
corresponding way to re-write any condition, to become it's reverse. And
of course, there's always the brute-force method of reversing your
condition with the NOT operator, but I find that a less elegant
solution.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Request for help using IDL in ENVI
Next Topic: Re: ION_IMAGE 8bit/24bit color

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 00:34:11 PDT 2025

Total time taken to generate the page: 1.20340 seconds