- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑
Description:
This routine copies values from one array to another, applying a linear scaling
in the process. The input and output arrays can be of different data types.
Invocation
CALL KPG1_SCALX( SCALE, ZERO, BAD, EL, ITYPE, IP1, OTYPE, IP2, BADOUT, NBAD,
STATUS )
Arguments
SCALE = DOUBLE PRECISION (Given)
The scale factor.
ZERO
= DOUBLE PRECISION (Given)
The zero offset.
BAD = LOGICAL (Given)
If true
there may be bad pixels present in the input array. If false it is safe not to check for bad
values.
EL = INTEGER (Given)
The size of the input array.
ITYPE = CHARACTER
(
) (Given)
The HDS data type of the input array. All primitive HDS data types are
supported.
IP1 = INTEGER (Given)
Pointer to the input array.
OTYPE = CHARACTER
(
)
(Given)
The HDS data type of the output array. Must be an integer type (i.e. one of _INTEGER,
_INT64, _WORD, _UWORD, _BYTE or _UBYTE ).
IP2 = INTEGER (Given)
Pointer to the output
array.
BADOUT = LOGICAL (Returned)
True if there are any bad pixels in the output array.
NBAD = INTEGER (Returned)
The number of good input pixels that could not be accomodated
within the dynamic range of the output data type, and were consequently set bad in the
output array.
STATUS = INTEGER (Given and Returned)
Global status value
Notes:
- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑