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

Home » Public Forums » archive » avoiding "floating illegal operand" errors with /nan keyword in mean
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: avoiding "floating illegal operand" errors with /nan keyword in mean [message #85605 is a reply to message #85600] Wed, 21 August 2013 05:58 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Tuesday, August 20, 2013 10:17:41 PM UTC-4, Paul Levine wrote:
> On 2013-08-21 00:26:02 +0000, wlandsman said:
>
>
>> Does setting !except=0 work for you? --Wayne
>
> Thank you for the suggestion. It does work insofar as the error
> message does not appear, though when I check_math I get 128, so isn't
> that more or less the equivalent of simply ignoring the errors?
>

Yes, setting !EXCEPT suppresses the annoying messages

Why don't you want to ignore the errors (really just warnings)? It doesn't hurt the computer to compute floating illegal operands. You did say you were interested in efficiency and I'm fairly certain that ignoring the warning messages would be the fastest method. Just be sure to reset !EXCEPT afterwards so that you catch errors/warnings in the rest of your code. If you want to be extra careful then make sure the CHECK_MATH output is 128 (floating illegal operand) and no other math error occurred durning the mean() calculation.

I know this doesn't answer the question you posted, which is an interesting problem in its own right. But sometimes the best way to untie a knot is to cut it with a knife. --Wayne
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Call object cleanup method when IDL exits
Next Topic: IDL Grib Routines

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

Current Time: Thu Oct 09 20:10:01 PDT 2025

Total time taken to generate the page: 0.96060 seconds