Package nom.tam.fits

Examples of nom.tam.fits.TableHDU


        if (!(basicHDU instanceof TableHDU)) {
            throw new IllegalArgumentException(
                    "Wrong file format: First FITS extension is not a table.");
        }

        TableHDU hdu = (TableHDU) basicHDU;
        return new NavigatorFITSTable(filename, fits, hdu);
    }
View Full Code Here


        Fits tableFits = new Fits(is);

        BasicHDU votMetaHdu = tableFits.getHDU(0);
        votMetaHdu.getHeader().addValue("EXTNAME", votMetaName, "Table metadata in VOTable format");

        TableHDU hdu = (TableHDU) tableFits.getHDU(1);
        hdu.getHeader().addValue("EXTNAME", tableName, "Contains saved query results");
        is.close();
        os.close();

        // add the new table (delete existing one, if found)
        deleteTable(fits, tableName);
View Full Code Here

     *
     * @param fits object to use for FITS I/O
     * @param hduIndex the index of the table HDU
     */
    public static void deleteTable(Fits fits, int hduIndex) throws FitsException, IOException {
        TableHDU hdu = getTableHDU(fits, hduIndex);
        String name = hdu.getHeader().getStringValue("EXTNAME");
        deleteTable(fits, name);
    }
View Full Code Here

TOP

Related Classes of nom.tam.fits.TableHDU

Copyright © 2018 www.massapicom. 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.