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

Home » Public Forums » archive » where() and IEEE NaN
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
where() and IEEE NaN [message #17820] Fri, 05 November 1999 00:00 Go to next message
T Bowers is currently offline  T Bowers
Messages: 56
Registered: May 1998
Member
IDL> a = [1,2,!Values.F_NaN,4,!Values.F_NaN]
IDL> print, a
1.00000 2.00000 NaN 4.00000 NaN
IDL> print, where(a EQ !Values.F_NaN)
0 1 2 3 4

Hmmmmmm.... is this a known feature? The where() help says
nothin' about NaN's.
IDL v5.2a

Thanks
Todd
Re: where() and IEEE NaN [message #18033 is a reply to message #17820] Fri, 26 November 1999 00:00 Go to previous message
kobayash is currently offline  kobayash
Messages: 5
Registered: July 1999
Junior Member
On Sat, 06 Nov 1999 13:15:44 -0500, Vincenzo Andretta
<andretta@hector.gsfc.nasa.gov> wrote:

>
>
> Try:
>
> WHERE(FINITE(array,/NaN) eq 1)
>

I usually just use WHERE(FINITE(array,/NaN))

Is it a better practice to put in the 'eq 1' part?


Ken Kobayashi
kobayash@sxt2.mtk.nao.ac.jp
http://www.din.or.jp/~kobaken/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: window graphics resizing after setting to ps device
Next Topic: Re: too many TLB resize events

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

Current Time: Sun Oct 12 07:42:05 PDT 2025

Total time taken to generate the page: 0.63782 seconds