next up previous 229
Next: Example 6. Mapping 3-dimensional coordinates into 2 dimensions.
Up: Additional Features
Previous: Additional Features


Transforming General Coordinate Data

As well as providing routines for applying compiled mappings to 1- and 2-dimensional data (Sections [*] & [*]), the TRANSFORM facility also has a set of routines for applying more general mappings. These are appropriate, for instance, when the number of input or output data coordinates is greater than 2 (or when these numbers are unequal) or when the number of coordinates is not known in advance. In such cases, all the input and output coordinates must each reside in single data arrays.

These general routines have names of the form TRN_TRNx, where x is either I, R or D according to whether the data are specified by integer, real or double precision values respectively. Thus, to transform a general set of data points specified by an array of real coordinates, the routine TRN_TRNR would be used, thus:

CALL TRN_TRNR( BAD, ND1, NCIN, NDAT, DATA, ID, NR1, NCOUT, RESULT, STATUS )

where:



Subsections

next up previous 229
Next: Example 6. Mapping 3-dimensional coordinates into 2 dimensions.
Up: Additional Features
Previous: Additional Features

TRANSFORM Coordinate Transformation Facility
Starlink User Note 61
R.F. Warren-Smith
12th January 2006
E-mail:ussc@star.rl.ac.uk

Copyright © 2000 Council for the Central Laboratory of the Research Councils