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 #85632 is a reply to message #85614] Thu, 22 August 2013 12:26 Go to previous message
Paul Levine is currently offline  Paul Levine
Messages: 29
Registered: February 2008
Junior Member
On 2013-08-21 21:11:45 +0000, Fabien said:

> Hi Paul,
>
> I also had the same problem:
> https://groups.google.com/forum/#!topic/comp.lang.idl-pvwave /XmPXtQE6VZ0
>
> It is not necessary to use a for loop to avoid the warnings, you just
> need to write your own MEAN() where you check for cases with
> TOTAL(FINITE(data), dimension) eq 0 but you have to decide if it worth
> it or not...

Thanks, that thread is an interesting read. I was thinking I would
probably just use Wayne Landsman's suggestion of ignoring the math
errors. But your suggestion of writing a new MEAN() got me looking,
and I found the AVG() function in the astronomy library, which looks
like it does just that, and was in fact heavily modified by Wayne
Landsman himself.
[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: Sat Oct 11 15:00:31 PDT 2025

Total time taken to generate the page: 0.23944 seconds