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 #35464 is a reply to message #35320] Wed, 11 June 2003 17:25 Go to previous messageGo to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
"James Kuyper" <kuyper@saicmodis.com> wrote in message
news:3EE7B26D.AD5E4A35@saicmodis.com...
> 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.

Not to mention the fact that NOT does *not* work as expected with WHERE. See

http://www.dfanning.com/code_tips/bitwiselogical.html

--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
[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 09:40:59 PDT 2025

Total time taken to generate the page: 1.44040 seconds