KPG1_SCLKx

Copies array values into a INTEGER8 array, scaling them in the process

Description:

This routine copies values from one array to another, applying a linear scaling in the process. The output array is of type INTEGER8 but the input array can be of a different type.

Invocation

CALL KPG1_SCLKx( 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 ) = INTEGER8 (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: