- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑
Description:
This subroutine converts
a two-dimensional array into an integer cell array without scaling it. However, the cell
array is computed by modulo arithmetic between the lowest and highest colour indices,
or the complement of this should a negative scaling be required. The image is normally
inverted for output on an image display, though this can be overridden.
Invocation
CALL
KPG1_FLASx( BAD, DIM1, DIM2, INARR, LOWPEN, HIPEN, INVERT, : POSTIV, OUTARR,
STATUS )
Arguments
BAD = LOGICAL (Given)
If true bad pixels will be processed. This
should not be set to false unless the input array contains no bad pixels.
DIM1 = INTEGER
(Given)
The first dimension of the two-dimensional array.
DIM2 = INTEGER (Given)
The
second dimension of the two-dimensional array.
INARR( DIM1, DIM2 ) = ? (Given)
The
array of data to be flashed.
LOWPEN = INTEGER (Given)
The lowest colour index to
be used in case smaller values have been reserved for annotation.
HIPEN = INTEGER
(Given)
The highest colour index to be used. Normally this is the number of greyscale
intensities available on the chosen device.
INVERT = LOGICAL (Given)
True if the image
is to be inverted for display.
POSTIV = LOGICAL (Given)
True if the display of the
image is to be positive.
OUTARR( DIM1, DIM2 ) = INTEGER (Returned)
The cell array.
STATUS = INTEGER (Given)
Value of the status on entering this subroutine.
Notes:
-
There is a routine for five numeric data types: replace "
x"
in the routine name by B, D, I, R, or W as
appropriate. The array supplied to the routine must have the data type specified.
-
The array is normally inverted so that the image will appear the correct way round when displayed as
the GKS routine to display the image inverts it.
- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑