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 #28682] Mon, 07 January 2002 02:52 Go to previous message
dinhnq is currently offline  dinhnq
Messages: 14
Registered: December 2001
Junior Member
Thank you all for your suggestions. Now it works.


Dinh Huong



Wayne Landsman <landsman@mpb.gsfc.nasa.gov> wrote in message news:<3C38AA76.69754BEC@mpb.gsfc.nasa.gov>...
> 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 11:00:07 PDT 2025

Total time taken to generate the page: 0.00200 seconds