next up previous 278
Next: CCG_IS2x - Sorts a list of data into increasing order, and applies the corresponding shuffle to an ancillary list
Up: Routine Descriptions
Previous: CCG_FM3x - Combines data lines using a fast median


CCG_I2WCx - Assigns world co-ordinates to an output array from an input list of indices

Description:
This routine assigns world co-ordinates to an output vector from an input two-dimensional array, corresponding to a a vector for each output element. The world co-ordinates are selected using a list of indices in each world-co-ordinate vector, there being one index per output value. A bad value or a value outside the bounds of the array in the list of indices causes a bad value to be assigned to the output array.

Invocation:
CALL CCG_I2WCx( NPIX, NLINES, INDICE, COORDS, RESULT, NBAD, STATUS )

Arguments:

NPIX = INTEGER (Given)
The number of pixels in a line of data.
NLINES = INTEGER (Given)
The number of lines of data.
INDICE( NPIX ) = INTEGER (Given)
The indices in the input array that point to the values to be assigned to the output vector.
COORDS( NPIX, NLINES ) = ? (Given)
The world co-ordinates.
RESULT( NPIX ) = ? (Returned)
The vector containing values copied from the input COORDS array.
NBAD = INTEGER (Returned)
The number of bad values in the output array.
STATUS = INTEGER (Given)
The global status.

Notes:



next up previous 278
Next: CCG_IS2x - Sorts a list of data into increasing order, and applies the corresponding shuffle to an ancillary list
Up: Routine Descriptions
Previous: CCG_FM3x - Combines data lines using a fast median

KAPLIBS -- Internal subroutines used within the KAPPA package.
Starlink User Note 238
D.S. Berry
Malcolm J. Currie
9th March 2009
E-mail:ussc@star.rl.ac.uk

Copyright © 2010 Science and Technology Facilities Council