CCG_MN3x

Combines data lines using the minimum value

Description:

This routine accepts an array consisting a series of (vectorised) lines of data. The data values in the lines are then collapsed to the minimum value in each line. The output minima are returned in the array RESULT. The vectorised pixel indices corresponding to the minima are also returned in POSIND.

Invocation

CALL CCG_MN3x( BAD, NPIX, NLINES, STACK, RESULT, POSIND, WRK1, NCON, NBAD, 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.
NPIX = INTEGER (Given)
The number of pixels in a line of data.
NLINES = INTEGER (Given)
The number of lines of data in the stack.
STACK( NPIX, NLINES ) = ? (Given)
The array of lines which are to be combined into a single line.
RESULT( NPIX ) = <TYPE > (Returned)
The output line of data.
POSIND( NPIX ) = INTEGER (Returned)
The pixel indices of the minima in each output pixel.
WRK1( NLINES ) = ? (Returned)
Workspace for calculations.
NCON( NLINES ) = DOUBLE PRECISION (Returned)
The actual number of contributing pixels from each input line to the output line.
NBAD = INTEGER (Returned)
The number of bad values in the output array created while forming the statistics. It excludes those bad values whose corresponding values along the collapse axis are all bad.
STATUS = INTEGER (Given and Returned)
The global status.

Notes: