IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 3, 2010, 5:18:11 PM (16 years ago)
Author:
Paul Price
Message:

Adding functions psFitsReadTableAllColumns and psFitsWriteTableAllColumns to more efficiently read/write a FITS table. Instead of a psMetadata for each row, the table is read as a psMetadata with each column implemented as a vector, array or image.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/fits/psFitsTable.h

    r24512 r28208  
    6262);
    6363
     64/** Read all table columns.
     65 *
     66 * String columns are read into arrays, number columns are read into vectors.
     67 */
     68psMetadata *psFitsReadTableAllColumns(const psFits *fits // FITS file pointer
     69                                      );
     70
     71/** Write all table columns.
     72 *
     73 * Uses the same format as for psFitsReadTableAllColumns.
     74 */
     75bool psFitsWriteTableAllColumns(
     76                                psFits *fits, // FITS file pointer
     77                                psMetadata *header, // Header to write, or NULL
     78                                const psMetadata *table, // Table to write
     79                                const char *extname      // Extension name, or NULL
     80                                );
    6481
    6582/** Reads a whole FITS table.  The current HDU type must be either
Note: See TracChangeset for help on using the changeset viewer.