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 #54885 is a reply to message #54884] Sun, 15 July 2007 14:20 Go to previous messageGo to previous message
Nick[1] is currently offline  Nick[1]
Messages: 10
Registered: May 2007
Junior Member
Thank you for your reply.
I could find where is 'NaN' vaule, but I had to omit these 'NaN' value
in order to change array. It's hard point for me. If I change NaN
values to zero, values which are changed by Rebin will be lower than
original values (True values).

A = [1.5,2.5,3.6,4,7,8.8,9.0,!values.f_nan]
print, rebin(A, 1)
;True value is 5.2
;But if I changed NaN to zero, the result is 4.55

The example case is so simple that I can fix it easily, but my data
have 1440*720 array.
So I couldn't fix thise one by one. Is there any methods?
Thanks, Nick.
[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: Sun Oct 12 09:48:57 PDT 2025

Total time taken to generate the page: 2.88349 seconds