KPG1_ISCLx

Scales image between limits

Description:

The input two-dimensional array is scaled between lower and upper limits such that the lower limit and all values below it are set to a minimum value, the upper limit and all values above are set to a maximum value, and all valid values in between are assigned values using linear interpolation between the limits. The image may or may not be inverted. The sign of the scaling can be reversed. The scaled data are written to an integer output array.

Invocation

CALL KPG1_ISCLx( BAD, DIM1, DIM2, INARR, INVERT, LOWER, UPPER, : LOWLIM, UPPLIM, BADVAL, OUTARR, STATUS )

Arguments

BAD = LOGICAL (Given)
If true there will be no checking for bad pixels.
DIM1 = INTEGER (Given)
The first dimension of the two-dimensional arrays.
DIM2 = INTEGER (Given)
The second dimension of the two-dimensional arrays.
INARR( DIM1, DIM2 ) = ? (Given)
The original, unscaled image data.
LOWER = ? (Given)
The data value that specifies the lower image-scaling limit. This may be smaller than %UPPER to provide a negative scale factor.
UPPER = ? (Given)
The data value that specifies the upper image-scaling limit.
INVERT = LOGICAL (Given)
True if the image is to be inverted for display.
LOWLIM = INTEGER (Given)
The lowest value to appear in the scaled array for good input data.
UPPLIM = INTEGER (Given)
The highest value to appear in the scaled array for good input data.
BADVAL = INTEGER (Given)
The value to be assigned to bad pixels in the scaled array.
OUTARR( DIM1, DIM2 ) = INTEGER (Returned)
The scaled version of the image.
STATUS = INTEGER (Given)
Value of the status on entering this subroutine.

Notes: