KPG1_D2W2x

Converts linear data co-ordinates to world co-ordinates

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:

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.