- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑
Description:
This
routine converts the pixel indices of an NDF pixel into the WCS co-ordinate values of the pixel’
s
centre. If a WCS FrameSet is not available, then the pixel indices are converted into the axis
co-ordinate system. If an axis co-ordinate system is not defined for the NDF, then the pixel co-ordinate
system will be used instead.
Invocation
CALL KPG1_PX2AX( NDIM, PX, INDF, AX, STATUS )
Arguments
NDIM = INTEGER (Given)
Number of NDF dimensions.
PX( NDIM ) = INTEGER
(Given)
Indices of the NDF’
s pixel.
INDF = INTEGER (Given)
NDF identifier.
AX(
) =
DOUBLE PRECISION (Returned)
WCS or axis co-ordinate values for the pixel’
s centre. There
should be enough elements in this array for all the current frame WCS axes (which need not be the
same as NDIM).
STATUS = INTEGER (Given and Returned)
The global status.
Notes:
This
routine is simplified by handling only a single pixel. It will not be efficient enough to handle arrays of
pixels.
- ←Prev
- KAPLIBS – Internal subroutines used within the KAPPA package.
- Next→
- TOC ↑