Hi, if I get your question correctly, I think you can use the DIMENSION keyword of IDL's min() function and the second positional argument min_subscript. a = indgen(10,20,30) min_values = min(a, min_subscript, DIMENSION=1) in this case, min_values is a [20,30] array with minima across the first dimension and min_subscript is a [20,30] array with indices where to find the minima. Cheers, Achim
|