KPG1_CMPKx

Compresses an n-dimensional array by picking value at equally spaced intervals

Description:

This routine compresses an n-dimensional array by integer factors along each dimension by selecting the array values at equal intervals along each dimension. The intervals may be different in each dimension. The starting point may be defined. Bad values will just be copied like any other array value.

Invocation

CALL KPG1_CMPKx( NDIM, DIMS, INARR, COMPRS, OFFSET, OUTARR, STATUS )

Arguments

NDIM = INTEGER (Given)
The dimensionality of the n-dimensional array.
DIMS( NDIM ) = INTEGER (Given)
The dimensions of the input n-dimensional array.
INARR( ) = ? (Given)
The input n-dimensional data array.
COMPRS( NDIM ) = REAL (Given)
The factors along each dimension by which the input array is compressed to form the output array.
OFFSET( NDIM ) = REAL (Given)
The pixel indices of the first input-array element that is to be put into the output array. Subsequent selections are COMPRS pixels along, so these can be regarded as offsets of the selections. The Ith offset must lie in the range 1 to COMPRS( I ).
OUTARR( ) = ? (Write)
The compressed n-dimensional array. Its dimension I must be given by ( DIMS( I ) - OFFSET( I ) ) / COMPRS( I ) + 1.
STATUS = INTEGER (Given and Returned).
Global status value

Notes:

Bugs:

{note_bugs_here}