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".