KPG1_MXMNx

Returns the maximum and minimum values of an array

Description:

This routine returns the maximum and minimum values of an input array, where it found the maximum and minimum, and the number of good and bad pixels in the array.

Invocation

CALL KPG1_MXMNx( BAD, EL, ARRAY, NINVAL, MAXMUM, MINMUM, MAXPOS, MINPOS, STATUS )

Arguments

BAD = LOGICAL (Given)
If true there may be bad pixels present in the array. If false it is safe not to check for bad values.
EL = INTEGER (Given)
The dimension of the input array.
ARRAY( EL ) = ? (Given)
Input array of data.
NINVAL = INTEGER (Returned)
Number of bad pixels in the array.
MAXMUM = ? (Returned)
Maximum value found in the array.
MINMUM = ? (Returned)
Minimum value found in the array.
MAXPOS = INTEGER (Returned)
Index of the pixel where the maximum value is (first) found.
MINPOS = INTEGER (Returned)
Index of the pixel where the minimum value is (first) found.
STATUS = INTEGER (Given)
Global status value

Notes: