Subroutine: GETAXNAME Purpose: Get the axis name for an axis and clean up the name if appropriate and wanted. Category: COORDINATES File: getaxname.c Author: M.G.R. Vogelaar Use: Fortran/Sheltran: CALL GETAXNAME( setname , Input CHARACTER*(*) axnum , Input INTEGER chop , Input INTEGER axname , Output CHARACTER*(*) ) C: getaxname( setname, Input fchar axnum, Input fint chop, Input fint axname, Output fchar ) setname: Name of set from which to extract axis name axnum: Axis number as returned by gdsinp chop: If <> 0 allow to remove characters after dash in name. Parameter type axis names are returned without chopping. axname: The processed axis name. Description: Axis names are stored in FITS item CTYPEn where n is the number of the axis. Usually these names contain a dash followed by projection information which is removed before displaying the name. However since the use of parameter type axes, the information after the dash is important to distinguish for example the two axes PAR-SLICE and PAR-OFFSET in one set. This routine removes the dash and information that follows for axes that are not of parameter type. You allow this behaviour by entering a value for 'chop' unequal to 0. Updates: Sep 25, 1999: VOG, Document created.