next up previous FITS Documents
Next: Example 2 Up: Example Index Tables Previous: Example Index Tables

Example 1

The table is indexed by the TIME column value (1-D index)

XTENSION= 'BINTABLE'           / binary table extension
BITPIX  =                    8 / 8-bit bytes
NAXIS   =                    2 / 2-dimensional binary table
NAXIS1  =                    8 / width of table in bytes
NAXIS2  =                   40 / number of rows in table
PCOUNT  =                    0 / size of special data area
GCOUNT  =                    1 / one data group (required keyword)
TFIELDS =                    2 / number of fields in each row
TTYPE1  = 'Ind_Pointer'        / label for field   1
TFORM1  = '1J      '           / data format of field: 4-byte INTEGER
TTYPE2  = 'Ind_Length'         / label for field   2
TFORM2  = '1J      '           / data format of field: 4-byte INTEGER
EXTNAME = 'Time_Index'         / this is a time-ordered index of a FITS table
INDTABLE= `myfile.fits:BINTABLE:EVENTS:1' / name of the indexed table
IAXIS   =                    1 / dimensionality of the index
ITYPE1  = 'TIME    '           / first index column name
ISTRT1  =               10000. / beginning value of first index bin
IDELT1  =                1000. / width of the index bin
IAXIS1  =                  40  / number of bins in this axis of the index
END

The table contains 40 rows and 2 columns:

    IND_POINTER   IND_LENGTH
    -----------   ----------
         1          70            
        71          80
       151           0
       151           0
       151           0
       151          20
       171          37
         .           .