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

Home » Public Forums » archive » Re: array operations
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: array operations [message #55807] Wed, 12 September 2007 08:11 Go to previous message
Conor is currently offline  Conor
Messages: 138
Registered: February 2007
Senior Member
The other way to calculate the mean is by using rebin. When rebin
shrinks an array, it takes a mean of values. So rather than using:

the general way of doing it is;

mean_image = rebin(myarray,ncols,nrows)

or in your case:

mean_image = rebin(myarray,10,10)

rebin shrinks the array down to new dimensions of size 10x10. It
averages along the third dimension when making the new array.


On Sep 12, 6:59 am, Steve <f...@k.e> wrote:
> Since this sounds something like some of the processing I do, have you
> considered a different "average" - the median, idl's median function
> does have a dimension parameter, so:-
>
> medpixel=median(myarray,dimension=3,/even)
>
> Steve
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: array operations
Next Topic: ion problem

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

Current Time: Wed Oct 08 15:59:17 PDT 2025

Total time taken to generate the page: 0.00401 seconds