- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑
Description:
The
co-efficients of the linear transformation from world co-ordinates to data co-ordinates are
supplied in arguments SCALE and OFFSET. The inverse of this transformation is used
to transform each supplied position from data to world co-ordinates.
Invocation
CALL
KPG1_D2W2x( SCALE, OFFSET, NPOINT, XP, YP, STATUS )
Arguments
SCALE( 2 ) = ?
(Given)
The scale factors in the linear relationships between axis co-ordinates and pixel
co-ordinates.
OFFSET( 2 ) = ? (Given)
The offsets in the linear relationships between axis
co-ordinates and pixel co-ordinates.
NPOINT = INTEGER (Given)
The number of points
specified.
XP( NPOINT ) = ? (Given and Returned)
On input the x data co-ordinate of each
point. On return the x world co-ordinate of each point.
YP( NPOINT ) = ? (Given and
Returned)
On input the y data co-ordinate of each point. On return the y world co-ordinate of
each point.
STATUS = INTEGER (Given and Returned)
The global status.
Notes:
-
There is a routine for each of the real and double-precision data types: replace "
x"
in the routine name
by D or R as appropriate. The SCALE, OFFSET, XP and YP arrays must have the data type
specified.
-
The supplied values of SCALE and OFFSET are such that:
DATA = SCALE( I )
PIXEL
OFFSET( I )
where PIXEL is a pixel co-ordinate for the I’
th dimension, and DATA is the corresponding axis
co-ordinate.
- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑