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( TYPE, BAD, EL, IPNTR, NINVAL, MAXMUM, MINMUM, MAXPOS, MINPOS, STATUS )

Arguments

TYPE = CHARACTER ( ) (Given)
The HDS data type of the array.
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.
IPNTR = INTEGER (Given)
A pointer to the data array.
NINVAL = INTEGER (Returned)
Number of bad pixels in the array.
MAXMUM = DOUBLE PRECISION (Returned)
Maximum value found in the array.
MINMUM = DOUBLE PRECISION (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: