KPG1_KER1x

Smooths an n-dimensional array using a specified one-dimensional kernel

Description:

The routine smooths the array IN using a specified one-dimensional kernel and returns the result in the array OUT. The one-dimensional kernel can be used to smooth either a single axis or mutiple axes. If multiple axes are smoothed, the total smoothing kernel is equivalent to the product of the kernels used to smooth each individual axis.

Any output pixel that is contributed to by a bad pixel, or a pixel that is over the edge of the input data array, is set bad in the output.

Invocation

CALL KPG1_KER1x( NDIM, DIMS, IN, NAX, AXES, SIZE, CENTRE, KERNEL, WORK, OUT, STATUS )

Arguments

NDIM = INTEGER (Given)
The number of pixel axes in the IN and OUT arrays.
DIMS( NDIM ) = INTEGER (Given)
The length, in pixels, of each dimension of the IN and OUT arrays.
IN( ∗ ) = ? (Given)
The input array, accessed as a one-dimensional vector.
NAX = INTEGER (Given)
The number of axes along which smoothing should be performed.
AXES( NAX ) = INTEGER (Given)
The indices of the pixel axes along which smoothing should be performed. The first axis is Axis 1.
SIZE = INTEGER (Given)
The number of values in the kernel.
CENTRE = INTEGER (Given)
The index of the element within KERNEL that corresponds to the centre of the kernel.
KERNEL( SIZE ) = ? (Given)
The kernel array. The values in this array are used as supplied
  • they are not normalised to a total sum of unity.

WORK( SIZE ) = ? (Given and Returned)
A work array.
OUT( ∗ ) = ? (Returned)
The output array, accessed as a one-dimensional vector.
STATUS = INTEGER (Given and Returned)
The global status.

Notes: