KPG1_KGODx

Sorts through a dataset and throw away bad values

Description:

This routine copies good data and its variance from input arrays to to output arrays, leaving behind bad values.

Invocation

CALL KPG1_KGODx( VAR, NPTS, INARR, INVAR, NGOOD, OUTARR, OUTVAR, STATUS )

Arguments

VAR = LOGICAL (Given)
If .TRUE., copy the variance array as well, else only copy the data array.
NPTS = INTEGER (Given)
The number of points in the input array.
INARR( NPTS ) = ? (Given)
Input data array.
INVAR( NPTS ) = ? (Given)
Input variance array.
NGOOD = INTEGER (Returned)
Number of good points in the input data.
INARR( NPTS ) = ? (Returned)
Output data array.
INVAR( NPTS ) = ? (Returned)
Output variance array.
STATUS = INTEGER (Given & Returned)
Global status value.

Notes: