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

Home » Public Forums » archive » Re: 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
Re: Relational Operators on Windows [message #71559] Sun, 27 June 2010 06:56 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Jun 26, 2:18 am, Paulo Penteado <pp.pente...@gmail.com> wrote:

>> IDL> a = [3.2, !VALUES.F_NAN, 2]
>> IDL> a = a [ where(a lt 3) ]
>> % Program caused arithmetic error: Floating illegal operand
>> IDL> print, a
>>       2.00000
>
> That is just a floating point exception. It does not keep the where()
> from working, does not interrupt the program, and can be suppressed
> changing !except.

That is all true, but I think one wants to avoid spurious floating
point exception messages (and not suppress them) when possible,
because sometimes a FP exception can indicate a real problem. Since
no FP exception for the above code occurs on Mac or Linux, I thought I
could get away without using FINITE(), but I will now add it to my
code. --Wayne
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Multi-Array comparison
Next Topic: Re: Add GSHHS coastline on georeferenced image layers retrieved from MODIS HDF file?

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

Current Time: Wed Oct 08 19:09:43 PDT 2025

Total time taken to generate the page: 0.00591 seconds