Provided by: libfuntools-dev_1.4.7-2_amd64 bug

NAME

       FunColumnLookup - lookup a Funtools column

SYNOPSIS

         #include <funtools.h>

         int FunColumnLookup(Fun fun, char *s, int which,
                             char **name, int *type, int *mode,
                             int *offset, int *n, int *width)

DESCRIPTION

       The FunColumnLookup() routine returns information about a named (or indexed) column.  The
       first argument is the Fun handle associated with this set of columns. The second argument
       is the name of the column to look up.  If the name argument is NULL, the argument that
       follows is the zero-based index into the column array of the column for which information
       should be returned.  The next argument is a pointer to a char *, which will contain the
       name of the column. The arguments that follow are the addresses of int values into which
       the following information will be returned:

       •   type: data type of column:

           •   A: ASCII characters

           •   B: unsigned 8-bit char

           •   I: signed 16-bit int

           •   U: unsigned 16-bit int (not standard FITS)

           •   J: signed 32-bit int

           •   V: unsigned 32-bit int (not standard FITS)

           •   E: 32-bit float

           •   D: 64-bit float

       •   mode: bit flag status of column, including:

           •   COL_ACTIVE      1 is column activated?

           •   COL_IBUF        2 is column in the raw input data?

           •   COL_PTR         4 is column a pointer to an array?

           •   COL_READ      010 is read mode selected?

           •   COL_WRITE     020 is write mode selected?

           •   COL_REPLACEME 040 is this column being replaced by user data?

       •   offset: byte offset in struct

       •   n: number of elements (i.e. size of vector) in this column

       •   width: size in bytes of this column

       If the named column exists, the routine returns a positive integer, otherwise zero is
       returned. (The positive integer is the index+1 into the column array where this column was
       located.)

       If NULL is passed as the return address of one (or more) of these values, no data is
       passed back for that information.  For example:

         if( !FunColumnLookup(fun, "phas", 0, NULL NULL, NULL, NULL, &npha, NULL) )
           gerror(stderr, "can't find phas column\n");

       only returns information about the size of the phas vector.

SEE ALSO

       See funtools(7) for a list of Funtools help pages