Next: CCG_CS3x - Combines data lines using a sigma-clipped standard deviation
Up: Routine Descriptions
Previous: CCG_COMB3x - Combines a stack of array lines into one line, using a variety of methods
CCG_CS1x
- Combines data lines using a sigma-clipped standard deviation
- Description:
- This routine accepts an array consisting a series of (vectorised)
lines of data. The weighted mean and standard deviation of each
input column in STACK is then used to estimate the range of
values which represent the required sigma clipping. Values
outside of this range are then rejected and the resulting output
stasndard deviations are returned in the array RESULT. The
variances are propagated through the combination process and
returned in the RESVAR array.
- Invocation:
- CALL CCG_CS1x( NSIGMA, NPIX, NLINES, STACK, VARS, MINPIX, NMAT,
COVEC, RESULT, RESVAR, WRK1, WRK2, POINT, USED,
NCON, NBAD, STATUS )
- Arguments:
-
-
NSIGMA = REAL (Given)
-
The number of sigma at which to reject data 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.
-
VARS( NPIX, NLINES ) = ? (Given)
-
The data variances.
-
MINPIX = INTEGER (Given)
-
The minimum number of pixels required to contribute to an
output pixel.
-
NMAT = INTEGER (Given)
-
Size of the first dimension of COVEC.
-
COVEC( NMAT, NLINES ) = DOUBLE PRECISION (Given)
-
The packed variance-covariance matrix of the order statistics
from a normal distribution of sizes up to NLINES, produced by
CCD1_ORVAR.
-
RESULT( NPIX ) = ? (Returned)
-
The output line of data, i.e. the clipped standard deviations.
-
RESVAR( NPIX ) = ? (Returned)
-
The output variances of the clipped standard deviations.
-
WRK1( NLINES ) = ? (Returned)
-
Workspace for calculations.
-
WRK2( NLINES ) = ? (Returned)
-
Workspace for calculations.
-
POINT( NLINES ) = INTEGER (Returned)
-
Workspace to hold pointers to the original positions of the
data before extraction and conversion in to the WRK1 array.
-
USED( NLINES ) = LOGICAL (Returned)
-
Workspace used to indicate which values have been used in
estimating a resultant value.
-
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:
- There is a routine for real and double-precision: replace "x"
in the routine name by D or R as appropriate. The STACK, VARS,
RESULT, RESVAR, WRK1, and WRK2 arguments supplied to the routine
must have the data type specified.
Next: CCG_CS3x - Combines data lines using a sigma-clipped standard deviation
Up: Routine Descriptions
Previous: CCG_COMB3x - Combines a stack of array lines into one line, using a variety of methods
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