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

Home » Public Forums » archive » Maximum value array resampling
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Maximum value array resampling [message #45027] Fri, 05 August 2005 10:55
davis anderton is currently offline  davis anderton
Messages: 4
Registered: May 2001
Junior Member
I'm trying to figure out an IDL-efficient way to resample a series of
images. I know how to do this is a ruinously laborious fashion using
loops but I know there's any easier way.

Consider the following 4x4 array:

x = [$
[0,3,4,5],$
[1,2,7,0],$
[3,2,9,0],$
[7,0,5,6]]

I want to resample this to y, a 2x2 array. Each element would contain
the maximum value of the corresponding 4 pixels. y would then look like

[$
[3,7],$
[7,9]]

So element [0,0] in y is max(x[0:1,0:1]) etc. As I understand it,
rebin/congrid won't do this. Each image is about 5000x2000 and there
are several hundred to process.

Thanks!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: 2 dimensional array from 3 x 1dimensional arrays
Next Topic: Re: idl command line on windows

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

Current Time: Wed Oct 08 19:17:56 PDT 2025

Total time taken to generate the page: 0.00548 seconds