Next Previous Up Contents
Next: FITS-plus
Up: Supplied Output Handlers
Previous: Supplied Output Handlers

3.5.1 FITS

The FITS handler, FitsTableWriter, will output a two-HDU FITS file; the first (primary) HDU has no interesting content, and the second one (the first extension) is of type BINTABLE.

To write the FITS header for the table extension, certain things need to be known which may not be available from the StarTable object being written; in particular the number of rows and the size of any variable-sized arrays (including variable-length strings) in the table. This may necessitate two passes through the data to do the write.

StarTableOutput will write in FITS format if a format string "fits" is used, or the format string is null and the destination string ends in ".fits".


Next Previous Up Contents
Next: FITS-plus
Up: Supplied Output Handlers
Previous: Supplied Output Handlers

STIL - Starlink Tables Infrastructure Library
Starlink User Note 252
STIL web page: http://www.starlink.ac.uk/stil/
Author email: m.b.taylor@bristol.ac.uk
Starlink: http://www.starlink.ac.uk/