KPG1_ASPRP

Propagates the WCS component from one NDF to another with the same number of axes, allowing for a linear mapping of the pixel co-ordinates

Description:

This routine copies the WCS FrameSet from INDF1, re-mapping the GRID Frame in the process so that pixel co-ordinates in the output NDF are related to pixel co-ordinates in the input NDF by the supplied linear transformation. The mapping from pixel co-ordinates in INDF1 (" PIX1" ) to the corresponding pixel co-ordinates in INDF2 (" PIX2" ) is:

PIX2 = MATRIX . PIX1 + OFFSET

For instance, for NDIM = 2:

X2 = MATRIX( 1, 1 ).X1 + MATRIX( 2, 1 ).Y1 + OFFSET( 1 ) Y2 = MATRIX( 1, 2 ).X1 + MATRIX( 2, 2 ).Y1 + OFFSET( 2 )

Invocation

CALL KPG1_ASPRP( NDIM, INDF1, INDF2, MATRIX, OFFSET, STATUS )

Arguments

NDIM = INTEGER (Given)
The number of dimensions. This should be the value returned by NDF_BOUND for INDF2.
INDF1 = INTEGER (Given)
An identifier for the source NDF. If this does not have NDIM pixel axes, a NDF section with NDIM axes will be obtained from the supplied NDF.
INDF2 = INTEGER (Given)
An identifier for the destination NDF. This must have NDIM pixel axes.
MATRIX( NDIM, NDIM ) = DOUBLE PRECISION (Given)
The matrix connecting PIX1 and PIX2.
OFFSET( NDIM ) = DOUBLE PRECISION (Given)
The offset vector for PIX2.
STATUS = INTEGER (Given and Returned)
The global status.