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

Home » Public Forums » archive » Relational Operators on Windows
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Relational Operators on Windows [message #71565] Fri, 25 June 2010 17:47
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
Sometimes as shortcut for explicitly testing for NaN values, I use the
fact that NaN is never less than, equal to, or more than a numeric
value. So if I need to get the values less than 3 in the following
array

a = [3.2, !VALUES.F_NAN, 2]

I simply say

a = a [ where(a lt 3) ]

and the NaN values are excluded along with the values larger than
3. This works fine on Linux and Mac OSX. But someone pointed me
to the IDL help on relational operators which says,

"On the Windows platform, using relational operators with the values
infinity or NaN (Not a Number) causes an "illegal operand" error."

Unfortunately, neither of us has access to a Windows machine. Does
one really get an "illegal operand" value on Windows with the above
code (so that I need to use the FINITE() function)? Thanks, --Wayne
[Message index]
 
Read Message
Previous Topic: WINDOW: Routine is not defined for current graphics device.
Next Topic: Multi-Array comparison

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

Current Time: Thu Oct 09 06:03:09 PDT 2025

Total time taken to generate the page: 0.00474 seconds