max, mean, min of array [message #28690] |
Sun, 06 January 2002 06:25  |
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  |
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
|
|
|