- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑
Description:
This routine determines values within an axis array for a series of non-integer pixel
co-ordinates. It assumes that the array is monotonic and approximately linear, since it uses linear
interpolation to derive the axis values. This routine may be used for arbitrary one-dimensional arrays
in addition to axes, provided this criterion is met.
Invocation
CALL KPG1_AXVLx( LBND, UBND,
AXIS, EL, PIXCO, DATCO, STATUS )
Arguments
LBND = INTEGER (Given)
The lower bound of
the axis array.
UBND = INTEGER (Given)
The upper bound of the axis array.
AXIS( LBND:UBND
) = ? (Given)
The axis array.
EL = INTEGER (Given)
The number of pixel co-ordinates whose
values in the axis array are to be found.
PIXCO( EL ) = ? (Given)
The pixel co-ordinates of the
values in the axis array.
DATCO( EL ) = ? (Returned)
The axis-array values. A value
is set to the bad value when its input co-ordinate lies outside the range of co-ordinates
in the axis.
STATUS = INTEGER (Given and Returned)
The global status.
Notes:
-
There is a routine for the data types real or double precision: replace "
x"
in the routine name by R or
D respectively, as appropriate. The axis array and indices, and the returned values should have this
data type as well.
-
A pixel co-ordinate that lies within the lower-bound or upper-bound element of the axis array
but not between elements, and hence cannot have interpolation (i.e. PIXCO is less than
LBND
-
0.5 or greater than UBND
0.5) return with the centre data co-ordinate of the lower-bound or upper-bound pixel respectively.
-
An error report is made and bad status returned should any input index lie outside the range of the
bounds of the axis. Processing will continue through the list.
- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑