[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

Waldhäuser Str. 64, D-72076 Tübingen, Germany
[Uni logo]


FXBCOLNUM() Source code in fxbcolnum.pro

FXBCOLNUM()

Name
       FXBCOLNUM()
Purpose
       Returns a binary table column number.
Explanation
       Given a column specified either by number or name, this routine will
       return the appropriate column number.
Calling Sequence
       Result = FXBCOLNUM( UNIT, COL )
Input Parameters
       UNIT    = Logical unit number corresponding to the file containing the
                 binary table.
       COL     = Column in the binary table, given either as a character
                 string containing a column label (TTYPE), or as a numerical
                 column index starting from column one.
Optional Input Parameters
       None.
Output Parameters
       The result of the function is the number of the column specified, or
       zero if no column is found (when passed by name).
Optional Output
       None.
Keyword Parameters
       ERRMSG    = If defined and passed, then any error messages will be
                   returned to the user in this parameter rather than
                   depending on the MESSAGE routine in IDL.  If no errors are
                   encountered, then a null string is returned.  In order to
                   use this feature, ERRMSG must be defined first, e.g.
                       ERRMSG = ''
                       Result = FXBCOLNUM( ERRMSG=ERRMSG, ... )
                       IF ERRMSG NE '' THEN ...
Procedures Used
       None.
Common Blocks
       Uses common block FXBINTABLE--see "fxbintable.pro" for more
       information.
Restrictions
       The binary table file must have been opened with FXBOPEN.
       If COL is passed as a number, rather than as a name, then it must be
       consistent with the number of columns in the table.
Side Effects
       None.
Category
       Data Handling, I/O, FITS, Generic.
History
       None.
Author
       William Thompson, GSFC, 2 July 1993.
Revision History
       Version 1, William Thompson, GSFC, 2 July 1993.
       Version 2, William Thompson, GSFC, 29 October 1993.
               Added error message for not finding column by name.
       Version 3, William Thompson, GSFC, 21 June 1994
               Added ERRMSG keyword.
       Version 4, William Thompson, GSFC, 23 June 1994
               Modified so that ERRMSG is not touched if not defined.
Version
       Version 4, 23 June 1994
       Converted to IDL V5.0   W. Landsman   September 1997

Last modified by pro2html on 2001 April 26 at 03:12 UTC

[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]

Jörn Wilms (wilms@astro.uni-tuebingen.de)
Updated automatically