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

Home » Public Forums » archive » Re: NULL value in IDL ?
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: NULL value in IDL ? [message #42317] Wed, 02 February 2005 07:03 Go to previous message
K. Bowman is currently offline  K. Bowman
Messages: 330
Registered: May 2000
Senior Member
In article <ctq3og$76u$2@news.u-strasbg.fr>,
Jerome Colin <jcolin@ulp.u-strasbg.fr> wrote:

> search=WHERE(data le 0.) & data(search)=!values.f_NaN
>
> And if I use :
>
> search=WHERE(newdata eq !values.f_nan)
>
> it returns -1.
>
> What kind of operator can be used to identify NaN cells in my array ?

You need to use

i = WHERE(~FINITE(newdata), count)
IF (count GT 0) THEN newdata[i] = 0

Cheers, Ken Bowman
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: VoIP User Group
Next Topic: How to keep image ratio in Shade_surf

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

Current Time: Sun Oct 12 17:35:58 PDT 2025

Total time taken to generate the page: 1.36022 seconds