next up previous 278
Next: CCG_UM3x - Combines data lines using an unweighted mean
Up: Routine Descriptions
Previous: CCG_TRM3x - To form the trimmed mean of the given set of ordered data, returning flags showing which values are


CCG_UM1x - Combines data lines using an unweighted mean

Description:
This routine accepts an array consisting of a series of (vectorised) lines of data. The data values in the lines are then combined to form an unweighted mean. The output means are returned in the array RESULT. The output variances are estimated from the VARS values and are returned in RESVAR.

Invocation:
CALL CCG_UM1x( NPIX, NLINES, STACK, VARS, MINPIX, RESULT, RESVAR, 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( NPIX, NLINES ) = ? (Given)
The data variances.
MINPIX = INTEGER (Given)
The minimum number of pixels required to contribute to an output pixel or variance.
RESULT( NPIX ) = ? (Returned)
The output line of data.
RESVAR( NPIX ) = ? (Returned)
The output variances.
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:



next up previous 278
Next: CCG_UM3x - Combines data lines using an unweighted mean
Up: Routine Descriptions
Previous: CCG_TRM3x - To form the trimmed mean of the given set of ordered data, returning flags showing which values are

KAPLIBS -- Internal subroutines used within the KAPPA package.
Starlink User Note 238
D.S. Berry
Malcolm J. Currie
9th March 2009
E-mail:ussc@star.rl.ac.uk

Copyright © 2010 Science and Technology Facilities Council