* Declare variables.
INCLUDE 'SAE_PAR'
INCLUDE 'TRN_PAR' [1]
CHARACTER PREC * ( TRN__SZPRC ), COMM * 80
CHARACTER * ( DAT__SZLOC ) ELOC, LOCTR
* Get a locator ELOC to an existing HDS structure.
<a call to DAT_ASSOC or DAT_FIND, for instance>
* Specify the arithmetic precision and make a comment.
PREC = '_REAL:' [2]
COMM = '2-d Cartesian (x,y) --> 2-d Polar (r,theta) [3]
* Create the transformation.
CALL TRN_NEW( NVIN, NVOUT, FOR, INV, PREC, COMM, [4][5]
: ELOC, 'MYTRAN', LOCTR, STATUS )
Programming notes:
_REAL:', which is recommended for general use.
This indicates that single precision (real) arithmetic should normally
be used but that the precision may be increased if double precision
data are being processed.
This is discussed further in Section
.
-->' (or `<--') character sequence may be used in
comment strings to indicate the direction of the forward mapping.
If the transformation is subsequently inverted
(Section
), then the `-->' and
`<--' symbols will be interchanged so that the comment remains valid.
Comments may be of any length.
TRANSFORM Coordinate Transformation Facility