Examples of FitsPlusTableWriter


Examples of uk.ac.starlink.votable.FitsPlusTableWriter

     *
     * @param os the output stream
     * @throws IOException on error
     */
    public void saveAsFitsTable(OutputStream os) throws IOException {
        new FitsPlusTableWriter().writeStarTable(getStarTable(), os);
    }
View Full Code Here

Examples of uk.ac.starlink.votable.FitsPlusTableWriter

            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");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.