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

Home » Public Forums » archive » Resample (neighborhood averaging) a 3D array with missing data
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: Resample (neighborhood averaging) a 3D array with missing data [message #86765 is a reply to message #86764] Mon, 02 December 2013 02:35 Go to previous messageGo to previous message
zhangj.sdu is currently offline  zhangj.sdu
Messages: 6
Registered: December 2013
Junior Member
On Monday, December 2, 2013 12:55:09 PM UTC+8, Matthew Argall wrote:
> You could try using SMOOTH(array, WIDTH=4, /NAN), then replace NANs in the original array by the result of the smooth. Then use REBIN.

Thanks, Matthew. It doesn't work when the NaNs are on the edge of 4x4 pixels.

When averaging over each 4x4 pixels sub-image, the NaNs within them should be ignored, like MEAN(sub-image, /NaN)

Clark
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL 8.3???
Next Topic: Color Data with Colorbar OOB Colors

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

Current Time: Sat Oct 11 01:25:49 PDT 2025

Total time taken to generate the page: 0.08148 seconds