The following routines write or read data values in the current ASCII or binary table extension. If a write operation extends beyond the current size of the table, then the number of rows in the table will automatically be increased and the NAXIS2 keyword value will be updated. Attempts to read beyond the end of the table will result in an error.
Automatic data type conversion is performed for numerical data types (only) if the data type of the column (defined by the TFORMn keyword) differs from the data type of the calling routine. ASCII tables support the following datatype values: TSTRING, TBYTE, TSHORT, TUSHORT, TINT, TUINT, TLONG, TULONG, TFLOAT, or TDOUBLE. Binary tables also support TLOGICAL (internally mapped to the `char' datatype), TCOMPLEX, and TDBLCOMPLEX.
Numerical data values are automatically scaled by the TSCALn and TZEROn keyword values (if they exist).
In the case of binary tables with vector elements, the 'felem' parameter defines the starting pixel within the cell (a cell is defined as the intersection of a row and a column and may contain a single value or a vector of values). The felem parameter is ignored when dealing with ASCII tables. Similarly, in the case of binary tables the 'nelements' parameter specifies the total number of vector values to be read or written (continuing on subsequent rows if required) and not the number of table cells.
int fits_write_col / ffpcl (fitsfile *fptr, int datatype, int colnum, long firstrow, long firstelem, long nelements, DTYPE *array, > int *status)
int fits_write_colnul / ffpcn (fitsfile *fptr, int datatype, int colnum, long firstrow, long firstelem, long nelements, DTYPE *array, DTYPE *nulval, > int *status)
int fits_write_col_null / ffpclu (fitsfile *fptr, int colnum, long firstrow, long firstelem, long nelements, > int *status)
int fits_read_col / ffgcv (fitsfile *fptr, int datatype, int colnum, long firstrow, long firstelem, long nelements, DTYPE *nulval, DTYPE *array, int *anynul, int *status)