Class CompressedTableHDU

All Implemented Interfaces:
FitsElement

public class CompressedTableHDU extends BinaryTableHDU
  • Constructor Details

  • Method Details

    • fromBinaryTableHDU

      public static CompressedTableHDU fromBinaryTableHDU(BinaryTableHDU binaryTableHDU, int tileRows, 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.
    • manufactureData

      public static CompressedTableData manufactureData(Header hdr) throws FitsException
      Throws:
      FitsException
    • asBinaryTableHDU

      public BinaryTableHDU asBinaryTableHDU() throws FitsException
      Throws:
      FitsException
    • compress

      public CompressedTableHDU compress() throws FitsException
      Throws:
      FitsException
    • getData

      public CompressedTableData getData()
      Overrides:
      getData in class BasicHDU<BinaryTable>
      Returns:
      the associated Data object