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

Home » Public Forums » archive » 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
rebin and !values.f_nan [message #54887] Sun, 15 July 2007 08:07
Nick[1] is currently offline  Nick[1]
Messages: 10
Registered: May 2007
Junior Member
I have regular arrayed data (1440*720). I'd like to change this data
to 360*180 array.
So I use 'Rebin' function.
But these data have NaN value.
If I use Rebin and there is a NaN value, new array becomes also NaN.

For example, if there is only one NaN in the old array, the new-array
becomes NaN. But I want to make a new array except NaN data. This
situation makes residual data wasteful.

A = [1.5,2.5,3.6,4,7,8.8,9.0,!values.f_nan]
print, rebin(A, 1)
;result is 'NAN'
;That I expected value is mean(A, /nan)

Is there any know-how to change array except NaN?
[Message index]
 
Read Message
Previous Topic: Extrude keyword
Next Topic: Re: rebin and !values.f_nan

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

Current Time: Wed Oct 08 19:39:11 PDT 2025

Total time taken to generate the page: 0.00451 seconds