Program: COORDS Purpose: Converts user supplied coordinates into physical coordinates. Category: COORDINATES File: coords.c Author: K.G. Begeman Keywords: INSET= Set and subset(s). Maximum number of subsets is 2048. POS= Give position (any coordinates) [programme quits] This keyword is repeated until default is used. To generate positions in different sky system/epoch: ** SKYSYS= Give new sky coordinate system: [old system] ** EPOCH= Give epoch of new sky system: [old epoch] Only asked if an equatorial/ecliptical system is wanted. The epoch is given in years e.g. EPOCH=1983.5 ** FORMAT= Format spatial positions (deg -> hms/dms)? [Y] FORMAT Description: The output of physical coordinates can be extended with the output of coordinates in a different epoch or sky system. The sky system is specified with SKYSYS= and an integer number. The following sky systems are implemented: SKYSYS CTYPEm CTYPEn Meaning =================================================== 1 RA DEC Equatorial (EPOCH 1950.0) 2 GLON GLAT Galactic 3 ELON ELAT Ecliptic (EPOCH 1950.0) 4 SLON SLAT Super galactic 5 RA DEC Equatorial (EPOCH 2000.0) An epoch transformation is initiated with EPOCH= followed by an epoch in years. If, for example, the input set has an equatorial system and you want position 0,0 also in ecliptical coordinates with epoch 1983.5, use: POS=0 0 SKYSYS=3 EPOCH=1983.5 Example: COORDS COORDS INSET=NGC4214 FREQ 29:34 Set NGC4214 has 3 axes RA-NCP from -127 to 128 DEC-NCP from -127 to 128 FREQ-OHEL from 1 to 63 COORDS POS=0 0 RA-NCP DEC-NCP FREQ-OHEL (DEGREE ) (DEGREE ) (KM/S ) 183.125 ( 0.00) 36.6000 ( 0.00) 279.153 ( 29.00) 183.125 ( 0.00) 36.6000 ( 0.00) 287.414 ( 30.00) 183.125 ( 0.00) 36.6000 ( 0.00) 295.675 ( 31.00) 183.125 ( 0.00) 36.6000 ( 0.00) 303.936 ( 32.00) 183.125 ( 0.00) 36.6000 ( 0.00) 312.198 ( 33.00) 183.125 ( 0.00) 36.6000 ( 0.00) 320.461 ( 34.00) COORDS POS= COORDS +++ FINISHED +++ Updates: Sep 19, 1991: KGB, document created. May 14, 1992: VOG, Convert degrees to hms/dms Feb 24, 1993: VOG, Conversion to new sky system/epoch Jul 12, 1994: VOG, FORMAT= included