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

Home » Public Forums » archive » Re: max, mean, min of array
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: max, mean, min of array [message #28687 is a reply to message #28686] Sun, 06 January 2002 11:50 Go to previous messageGo to previous message
Wayne Landsman is currently offline  Wayne Landsman
Messages: 117
Registered: January 1997
Senior Member
Dinh Huong wrote:

> Dear Lists,
>
> I have an array of 400,400,10 contains 10 month T� of 400x400 pixel
> area. I am trying to calculate min, max, mean T�for each pixel and
> output is 400x400 image. How to solve this by IDL?
> Any help will be appreciate,

In IDL V5.5, if you have a 400 by 400 by 10 array, you can find the
maximum over the 3rd dimension using the DIMENSION keyword.

IDL> pixmax = max(array, dimen=3) ;Return a 400 x 400
array

In earlier versions of IDL you have to loop over each pixel, and (as
David mentioned) Craig Markwardt's CMAPPLY will make sure that this
looping is done as efficiently as possible.

--Wayne

P.S. While I am grateful to RSI for adding dimension-specific
capabilities in V5.5 to MIN, MAX, FFT, and SMOOTH, I would still very
much like to see the same capability added to MEDIAN. (The customer
is never satisfied....)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Urgent object question
Next Topic: Urgent object question

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

Current Time: Wed Oct 08 13:10:53 PDT 2025

Total time taken to generate the page: 0.00402 seconds