- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑
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
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:
-
This routine can be used to smooth either DATA or VARIANCE arrays. If a DATA array is smoothed
with a given kernel, the corresponding VARIANCE array should be smoothed with a kernel
containing the squares of the values in the original kernel.
-
There are routines for processing double precision and real data. Replace " x" in the routine name by
D or R as appropriate. The data types of the IN, KERNEL and OUT arguments must match the routine
used.
- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑