- ←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
output array is of type BYTE but the input array can be of a different type.
Invocation
CALL
KPG1_SCLBx( SCALE, ZERO, BAD, EL, IN, OUT, 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.
IN( EL ) = ?
(Given)
The input array.
OUT( EL ) = BYTE (Returned)
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:
-
There is a routine for the all numeric data types: replace "
x"
in the routine name by B, D, I, R, UB,
UW, or W as appropriate. The IN argument supplied must have the data type specified.
- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑