Class CompressedTableHDU

    • Method Detail

      • fromBinaryTableHDU

        public static CompressedTableHDU fromBinaryTableHDU​(BinaryTableHDU binaryTableHDU,
                                                            int tileRows,
                                                            java.lang.String... columnCompressionAlgorithms)
                                                     throws FitsException
        Prepare a compressed binary table HDU for the specified binary table. When the tile row size is specified with -1, the value will be set ti the number of rows in the table. The table will be compressed in "rows" that are defined by the tile size. Next step would be to set the compression options into the HDU and then compress it.
        Parameters:
        binaryTableHDU - the binary table to compress
        tileRows - the number of rows that should be compressed per tile.
        columnCompressionAlgorithms - the compression algorithms to use for the columns (optional default compression will be used if a column has no compression specified)
        Returns:
        the prepared compressed binary table HDU.
        Throws:
        FitsException - if the binary table could not be used to create a compressed binary table.
      • isHeader

        public static boolean isHeader​(Header hdr)
        Check that this HDU has a valid header for this type.
        Parameters:
        hdr - header to check
        Returns:
        true if this HDU has a valid header.