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

Home » Public Forums » archive » max, mean, min of array
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
max, mean, min of array [message #28690] Sun, 06 January 2002 06:25 Go to next message
dinhnq is currently offline  dinhnq
Messages: 14
Registered: December 2001
Junior Member
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,

Huong Dinh
Re: max, mean, min of array [message #28971 is a reply to message #28690] Sat, 26 January 2002 14:33 Go to previous message
Wonko[1] is currently offline  Wonko[1]
Messages: 1
Registered: January 2002
Junior Member
craigmnet@cow.physics.wisc.edu (Craig Markwardt) wrote:

> Alex, I think *both* solutions should be possible. Consider the
> following scenario: instead of a 400x400x12 array, how about a
> 2x2x1000000 array? Using your technique we would end up doing
> 1000000 iterations, but with mine it would only be 4.

Yeah, I thought of that, but I had thought about the Send-button
first.

> Thus, the code should contain both solutions, and pick whichever one
> takes fewer iterations.

Right.

While you are at it: Why not allow any generic function to be
cmapplied? This would work like MAX() and MIN() as it does now, but
with CALL_FUNCTION(). So we would have MEDIAN(), STDEV() and so on.

Alex
--
Alex Schuster Wonko@planet-interkom.de PGP Key available
alex@pet.mpin-koeln.mpg.de
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Convert a byte array to a structure?
Next Topic: Subject : locks, semaphores, and such

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

Current Time: Sun Oct 12 14:20:11 PDT 2025

Total time taken to generate the page: 0.32150 seconds