Re: MAX function in IDL8.0 [message #72775] |
Fri, 08 October 2010 06:35 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Anne Martel writes:
> The max_subscripts are
> IDL> print,ind
> 6 1 2 9 4 11
>
> but what i would prefer is the subscripts in the 2nd dimension
> IDL> print,ind/6
> 1 0 0 1 0 1
>
> In this example it is trivial to convert to what I want but if, for
> example I want to generate a time to peak map from a dynamic sequence of
> images , or return the most likely class from a stack of probability
> maps, then I still have to write a procedure to do this.
> Can anyone think of some example where the way max_subscript is
> implemented is superior or should I just campaign for a modification in
> some future release?
I think I understand your point, but if I were writing
this program, I would have a hard time convincing myself
to implement the subscripts any way but the way they
have done it currently. In the current method, the
subscripts are at least unambiguous.
I guess I would need a lot more convincing and better
understanding of how you want to use these values.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|