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 #42159 is a reply to message #42158] Wed, 12 January 2005 04:08 Go to previous message
maarten is currently offline  maarten
Messages: 30
Registered: April 2002
Member
What version are you using, because in 6.1.1. the results are:
IDL> u = [!values.f_nan, 1, 2, 3]
IDL> print, where(u eq 3)
3
IDL> print, where(u ge 3)
3


euskalmet07@ej-gv.es wrote:
> 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: Mon Oct 20 14:03:14 PDT 2025

Total time taken to generate the page: 2.00324 seconds