- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑
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:
-
There is a routine for each numeric data type: replace "
x"
in the routine name by D, R, I, W, UW, B or
UB as appropriate. The ARRAY, MAXMUM, and MINMUM arguments supplied to the routine must
have the data type specified.
- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑