KPG1_ASNDF

Creates a FrameSet containing NDF-special Frames with given bounds

Description:

This function creates a FrameSet containing the NDF-special Frames, GRID, PIXEL, FRACTION and AXIS, appropriate to an NDF with the supplied dimensionality and pixel index bounds. Optionally, AXIS information can be propagated from a supplied NDF.

Invocation

CALL KPG1_ASNDF( INDF, NDIM, DIM, LBND, UBND, IWCS, STATUS )

Arguments

INDF = INTEGER (Given)
An NDF from which to propagate AXIS information. May be NDF__NOID, in which case the AXIS Frame in the returned FrameSet will describe the default AXIS coordinate system (i.e. pixel co-ordinates).
NDIM = INTEGER (Given)
The number of pixel axes in the modified FrameSet.
DIM( NDIM ) = INTEGER (Given)
The indices within INDF corresponding to each of the required NDIM axes.
LBND( NDIM ) = INTEGER (Given)
The lower pixel index bounds in the modified FrameSet.
UBND( NDIM ) = INTEGER (Given)
The upper pixel index bounds in the modified FrameSet.
IWCS = INTEGER (Returned)
Pointer to a new FrameSet holding GRID, FRACTION, PIXEL and AXIS Frames describing the supplied NDF bounds, plus AXIS information from the supplied NDF.
STATUS = INTEGER (Given and Returned)
The global status.