Package nom.tam.image.compression.hdu
Class CompressedTableHDU
java.lang.Object
nom.tam.fits.BasicHDU<BinaryTable>
nom.tam.fits.TableHDU<BinaryTable>
nom.tam.fits.BinaryTableHDU
nom.tam.image.compression.hdu.CompressedTableHDU
- All Implemented Interfaces:
FitsElement
-
Field Summary
Fields inherited from class nom.tam.fits.BasicHDU
BITPIX_BYTE, BITPIX_DOUBLE, BITPIX_FLOAT, BITPIX_INT, BITPIX_LONG, BITPIX_SHORT, isPrimary, myData, myHeader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompress()
static CompressedTableHDU
fromBinaryTableHDU
(BinaryTableHDU binaryTableHDU, int tileRows, String... columnCompressionAlgorithms) Prepare a compressed binary table HDU for the specified binary table.getData()
static boolean
Check that this HDU has a valid header for this type.static CompressedTableData
manufactureData
(Header hdr) Methods inherited from class nom.tam.fits.BinaryTableHDU
addColumn, binaryTableColumnKeyStems, columnKeyStems, encapsulate, info, isData, isHeader, manufactureHeader, setComplexColumn, write
Methods inherited from class nom.tam.fits.TableHDU
addRow, deleteColumnsIndexOne, deleteColumnsIndexOne, deleteColumnsIndexZero, deleteColumnsIndexZero, deleteRows, deleteRows, findColumn, getColumn, getColumn, getColumnFormat, getColumnMeta, getColumnName, getColumns, getElement, getNCols, getNRows, getRow, setColumn, setColumn, setColumnMeta, setColumnMeta, setColumnMeta, setColumnMeta, setColumnMeta, setColumnMeta, setColumnMeta, setColumnName, setCurrentColumn, setCurrentColumn, setElement, setRow
Methods inherited from class nom.tam.fits.BasicHDU
addValue, addValue, addValue, addValue, addValue, addValue, addValue, addValue, card, getAuthor, getAxes, getBitPix, getBlankValue, getBScale, getBUnit, getBZero, getCreationDate, getDummyHDU, getEpoch, getEquinox, getFileOffset, getGroupCount, getHeader, getInstrument, getKernel, getMaximumValue, getMinimumValue, getObject, getObservationDate, getObserver, getOrigin, getParameterCount, getReference, getSize, getTelescope, getTrimmedString, getTrimmedString, read, reset, rewrite, rewriteable, saveReplaceCard
-
Constructor Details
-
CompressedTableHDU
-
-
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 compresstileRows
- 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
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
- Throws:
FitsException
-
asBinaryTableHDU
- Throws:
FitsException
-
compress
- Throws:
FitsException
-
getData
- Overrides:
getData
in classBasicHDU<BinaryTable>
- Returns:
- the associated Data object
-