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

Home » Public Forums » archive » Not 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
Not where [message #18780] Mon, 07 February 2000 00:00 Go to previous message
bowman is currently offline  bowman
Messages: 121
Registered: September 1991
Senior Member
I often find myself using WHERE to divide an array into two parts. I do
one operation on the first part and a different operation on the second
part.

It would be nice to have an auxiliary array containing all the indices
that are *not* returned by WHERE in i. For example, it would be nice to
do

a = FLTARR(...)
i = WHERE((a...), count, NOT_WHERE = j, NOT_COUNT = not_count)
IF (count GT 0L) THEN a[i] = ...
IF (not_count GT 0L) THEN a[j] = ...

Lacking the above changes to WHERE, can anyone suggest a fast and easy way
to get j=NOT(i) ?

Thanks, Ken

--
Dr. Kenneth P. Bowman, Professor 409-862-4060
Department of Meteorology 409-862-4466 fax
Texas A&M University bowmanATcsrp.tamu.edu
College Station, TX 77843-3150 Replace AT with @
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: iterating POLY_2D
Next Topic: REQ: alternative plot procedure?

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

Current Time: Wed Oct 08 19:09:40 PDT 2025

Total time taken to generate the page: 0.00732 seconds