- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑
Description:
This
routine modifies the supplied index array by removing indices of all bad data values and shuffling
indices for good data values down to fill the gaps.
Invocation
CALL KPG1_MVBDx( ELA, ARRAY,
ELI, INDX, NGOOD, STATUS )
Arguments
ELA = INTEGER (Given)
The size of the data array.
ARRAY( ELA ) = ? (Given)
The array containing the data values.
ELI = INTEGER
(Given)
The size of the index array.
INDX( ELI ) = INTEGER (Given and Returned)
Each
element of this array is an index into the ARRAY array. On exit, the contents of INDX are
re-arranged so that indices that refer to bad data values are removed and indices that refer to
good data values are shuffled down to fill the gaps. Any indices which are outside the
bounds of the data array are treated as if they referred to bad data values (i.e. they are
removed).
NGOOD = INTEGER (Returned)
The number of indices within INDX that refer to
good data values. On exit, the first NGOOD elements of INDX will contain the indices
of the good data values within ARRAY. Any remaining values of INDX will retain their
original values.
STATUS = INTEGER (Given and Returned)
The global status.
Notes:
-
There is a routine for each numeric data type: replace "
x"
in the routine name by D, R, I, W, UW, B or
UB as appropriate.
- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑