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

Home » Public Forums » archive » Re: Mean and NaNs
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: Mean and NaNs [message #83117] Wed, 06 February 2013 11:06 Go to previous message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
Hi Craig,

On 02/06/2013 06:38 PM, Craig Markwardt wrote:
> What do you expect to happen when*all* of the values are NAN?

I expect a NaN.

So the result of mean() is consistent to me, but the "Floating illegal
operand" is annoying.

For example, I have a 3D array of geopotential heights at a certain
pressure level, some of the pixels are always NaNs because of
topography. I compute means on the third dimension which is time. When I
Plot the results, I can go along automatically with NaNs in my data
image. I just find it awkward and inefficient to have to write a case
for these pixels, just to remove the "Floating illegal operand" warning...

But it seems quite useless to argue in this direction, my precious posts
on the inconsistency in value_locate() results with NaNs also found not
much interest

Anyway, thanks for your answer!

Fab
[Message index]
 
Read Message
Read Message
Previous Topic: Re: controling a warped image: How to do it?
Next Topic: Re: Can't find the end of a text file

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

Current Time: Thu Oct 09 06:50:53 PDT 2025

Total time taken to generate the page: 1.04117 seconds