CCG_ME3x

Combines data lines using a weighted mean

Description:

This routine accepts an array consisting a series of (vectorised) lines of data. The data values in the lines are then combined to form a weighted mean. The weights used are one-per-line and are the reciprocal of values given in the array VARS. The output means are returned in the array RESULT.

Invocation

CALL CCG_ME3x( NPIX, NLINES, STACK, VARS, MINPIX, RESULT, NCON, NBAD, STATUS )

Arguments

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.
VARS( NLINES ) = ? (Given)
The variance to to used for each line of data.
MINPIX = INTEGER (Given)
The minimum number of pixels required to contribute to an output pixel.
RESULT( NPIX ) = ? (Returned)
The output line of data.
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: