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

Home » Public Forums » archive » Re: where and NAN numbers
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: where and NAN numbers [message #42158 is a reply to message #42152] Wed, 12 January 2005 06:24 Go to previous messageGo to previous message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
Use finite function to pre-filter for nans.


<euskalmet07@ej-gv.es> wrote in message
news:36519195.0501120402.5de60fc0@posting.google.com...
> Hi dear IDL user,
>
> Maybe my question is too obvious, but I can�t guess the response.
>
> Having the vector:
>
> IDL> u = [!values.f_nan, 1, 2, 3]
>
> why is different the resulting vector in these following two WHERE
functions?
>
> IDL> print, where(u eq 3)
> 0 3
> % Program caused arithmetic error: Floating illegal operand
>
> IDL> print, where(u ge 3)
> 3
> % Program caused arithmetic error: Floating illegal operand
>
>
> Any response would be appreciated.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: DIALOG_PICKFILE Questions in IDL 6.1
Next Topic: Re: 3-d visualization (itools while in a program)

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

Current Time: Sun Oct 12 07:19:23 PDT 2025

Total time taken to generate the page: 0.88558 seconds