KPG1_CMAVx

Compresses an n-dimensional array by averaging in ‘rectangular boxes

Description:

This routine compresses an n-dimensional array by integer factors along each dimension by averaging the array values in a rectangular box.

Invocation

CALL KPG1_CMAVx( NDIM, DIMS, INARR, COMPRS, NLIM, OUTARR, SUM, NUM, STATUS )

Arguments

NDIM = INTEGER (Given)
The dimensionality of the n-dimensional array. It must be greater than one. To handle a one-dimensional array, give it a second dummy dimension of 1.
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.
NLIM = INTEGER (Given)
The minimum number of good input elements in a compression box that permits the corresponding output array element to be good. If fewer than NLIM pixels participated in the sum, the output pixel will be bad.
OUTARR( ) = ? (Write)
The compressed n-dimensional array. Its dimension I must be given by DIMS( I )/COMPRS( I ).
SUM( ) = ? (Returned)
Workspace used for efficiency in computing the summations. This should have size at least equal to DIMS( 1 ).
NUM( ) = INTEGER (Returned)
Workspace used to count the number of good elements in the input box. This should have size at least equal to DIMS( 1 ).
STATUS = INTEGER (Given and Returned).
Global status value

Notes:

Bugs:

{note_bugs_here}