Package nom.tam.fits

Examples of nom.tam.fits.Header


        for (int row = 0; row < numRows; row++) {
            BasicHDU hdu = _fitsImage.getHDU(row);
            if (_isHidden(hdu)) {
                continue;
            }
            Header header = hdu.getHeader();
            _tableData[count][HDU_INDEX] = row;
            _tableData[count][TYPE_INDEX] = _getHDUType(hdu);
            _tableData[count][EXTNAME_INDEX] = header.getStringValue("EXTNAME");
            _tableData[count][NAXIS_INDEX] = header.getIntValue("NAXIS");
            _tableData[count][NAXIS1_INDEX] = header.getIntValue("NAXIS1");
            _tableData[count][NAXIS2_INDEX] = header.getIntValue("NAXIS2");
            _tableData[count][NAXIS3_INDEX] = header.getIntValue("NAXIS3");
            _tableData[count][CRPIX1_INDEX] = header.getDoubleValue("CRPIX1");
            _tableData[count][CRPIX2_INDEX] = header.getDoubleValue("CRPIX2");
            count++;
        }

        final int rowCount = count;
        _table.setModel(new AbstractTableModel() {
View Full Code Here


     *
     * @param ar a 2D array of a primitive numeric type (doubles not supported yet)
     */
    public FITSImage(final Object ar) throws IOException, FitsException {
        ImageData data = new ImageData(ar);
        Header header = new Header(data);
        ImageHDU hdu = new ImageHDU(header, data);
        _fits = new Fits();
        _fits.addHDU(hdu);

        // Default to the primary HDU
View Full Code Here

TOP

Related Classes of nom.tam.fits.Header

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.