tableName = tableName + TABLE_SUFFIX;
}
// Use the StarJava classes to write the FITS table and then copy the HDUs into the FITS image file
ByteArrayOutputStream os = new ByteArrayOutputStream();
new FitsPlusTableWriter().writeStarTable(table.getStarTable(), os);
ByteArrayInputStream is = new ByteArrayInputStream(os.toByteArray());
Fits tableFits = new Fits(is);
BasicHDU votMetaHdu = tableFits.getHDU(0);
votMetaHdu.getHeader().addValue("EXTNAME", votMetaName, "Table metadata in VOTable format");