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

Home » Public Forums » archive » Re: rebin and !values.f_nan
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: rebin and !values.f_nan [message #54879 is a reply to message #54878] Sun, 15 July 2007 21:17 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
kuyper writes:

> I've been at home this weekend, without access to IDL, so I hadn't
> gotten around to testing it. However, what Nick diescribed was not the
> creation of data where none exists, but the destruction of usable data
> by rebin():
>
>> If I use Rebin and there is a NaN value, new array becomes also NaN.
>
> I understood that to mean that the entire re-binned array was set to
> NaN, not just isolated portions of it.

His example showed an entire vector, one element of which was
a NAN, reduced to a single value. In this case, the result--
sensibly I think, since it WAS involved in the calculation--
was a NAN. In the example, the mean was probably a better
choice for a single number (and you can set a NAN flag for
that), but for some reason the requester rejected that as
an option. (He didn't explain why.)

My only point is that if you are going to assign a
value where one didn't exist before, you will have to
take responsibility for doing so. IDL can hardly be
expected to help you out in this ethically challenging
situation. I think it is right that any expression that
involves a NAN will result in a NAN. What else could
it be. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: rebin and !values.f_nan
Next Topic: for loops for total newbies

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

Current Time: Fri Oct 10 12:20:48 PDT 2025

Total time taken to generate the page: 1.52036 seconds