Next: Error Handling
Up: Routine Descriptions
Previous: TRN_TR2x-Transform 2-dimensional data
TRN_TRNx-Transform general data
- Description:
- Apply a general compiled mapping (with an arbitrary number of
input/output variables) to a set of data points.
- Invocation:
- CALL TRN_TRNx( BAD, ND1, NCIN, NDAT, DATA, ID, NR1, NCOUT,
RESULT, STATUS )
- Arguments:
-
- BAD = L
-
Whether the input coordinates may be bad.
- ND1 = I
-
First dimension of the DATA array (as declared in the
calling routine).
- NCIN = I
-
Number of coordinates for each input data point.
- NDAT = I
-
Number of data points to transform.
- DATA = ?(ND1,NCIN)
-
Array of coordinates for the input data points; they need not fill
the entire array.
- ID = I
-
Identifier for the compiled {
}
mapping to be applied.
- NR1 = I
-
First dimension of the RESULT array (as declared in the
calling routine).
- NCOUT = I
-
Number of coordinates for each output data point.
- RESULT = ?(NR1,NCOUT)
-
Array to receive the (transformed) coordinates of the output
data points.
- STATUS = I
-
Inherited error status.
- Notes:
- There is a routine for each standard numerical data type x.
Replace x by I (integer), R (real)
or D (double precision).
- ND1 and NR1 must both be at least equal to the
number of data points NDAT.
- DATA(I,J) should contain the value of the J'th
coordinate for the I'th input data point.
Coordinate values are returned in the RESULT array in the
same order.
- The values of NCIN and NCOUT must match the
numbers of input and output variables for the compiled
mapping being applied.
Next: Error Handling
Up: Routine Descriptions
Previous: TRN_TR2x-Transform 2-dimensional data
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