minind
Returns the index of the first occurrence of a minimum value.
Prototype
function minind ( arg [*] : numeric ) return_val [1] : integer
Arguments
argA one-dimensional numeric array.
Description
This function scans an array for the minimum value and returns the index of the first occurrence of it. Missing values are ignored. Remember that in NCL, indexing starts at 0, not 1.
See Also
Examples
Example 1
x = (/3.,2.,5.,1.,5.,2.,5.,1.,3.,2./) i = minind(x) ; Should be 3.