Function: GRTOPH Purpose: Transformation from grid coordinates to physical coordinates in a subset. Category: PHYSICAL COORDINATES File: cotrans.c Author: K.G. Begeman Use: INTEGER GRTOPH ( SET , Input character SUBSET , Input integer COORD1 , Input double precision array COORD2 ) Output double precision array GRTOPH Returns: 0 transformation successful 1 unknown projection 2 unknown mode 3 CROTA2 = 90.0 for mode 1 and 2 4 CDELT1 and/or CDELT2 equal to zero 5 input sky system unknown 6 output sky system unknown 7 input and output sky system unknown 8 skypro error 9 unknown velocity system 10 rest frequency less than or equal to zero 11 crval equal to zero 12 cdelt equal to zero 13 no matching axis pair found 14 incompatible sky systems 15 cannot do epoch transformations SET Name of data set. SUBSET Subset coordinate word. COORD1 Array containing grid coordinates in substructure defined by SUBSET. The number of coordinates must be equal to the dimension of SUBSET. COORD2 Array containing the corresponding physical coordinates of the coordinates specified in COORD1. The units of the physical coordinates is converted to the units as defined by CUNIT and DUNIT in the set header. Related Docs: cotrans.dc2 Updates: Sep 13, 1995: KGB, Document Created.