Uses of Class
nom.tam.fits.FitsException
Packages that use FitsException
Package
Description
-
Uses of FitsException in nom.tam.fits
Subclasses of FitsException in nom.tam.fitsModifier and TypeClassDescriptionclass
class
This exception is thrown if an error is found reading the padding following a valid FITS HDU.class
This exception is thrown when an EOF is detected in the middle of an HDU.Methods in nom.tam.fits that throw FitsExceptionModifier and TypeMethodDescriptionint
int
This version of addColumn allows the user to override the default length associated with each column type.int
int
int
int
Add a column to the table without any associated header information.int
Add a column to the table without any associated header information.int
BinaryTable.addFlattenedColumn
(Object o, int[] dims) Add a column where the data is already flattened.(package private) int
BinaryTable.addFlattenedColumn
(Object o, int[] dims, boolean allocated) This function is needed since we had made addFlattenedColumn public so in principle a user might have called it directly.void
Add an HDU to the Fits object.int
int
int
Add a row at the end of the table.int
Add a row to the end of the table.private Object
BinaryTable.arrayToColumn
(BinaryTable.ColumnDesc added, Object o) Convert the external representation to the BinaryTable representation.private void
Check if the given key is the next one available in the header.private void
Header.cardCheck
(IFitsHeader key) Check if the given key is the next one available in the header.(package private) void
Header.checkBeginning()
Ensure that the header begins with a valid set of keywords.private Object
BinaryTable.columnToArray
(BinaryTable.ColumnDesc colDesc, Object o, int rows) Convert data from binary table representation to external Java representation.static void
BinaryTable.createColumnDataFor
(BinaryTable table) TODO: this is only for internal access!private ColumnTable<BinaryTable.SaveState>
BinaryTable.createTable()
Create a column table given the number of rows and a model row.static Data
FitsFactory.dataFactory
(Header hdr) void
AsciiTable.deleteColumns
(int start, int len) Delete columns from the table.void
BinaryTable.deleteColumns
(int start, int len) Delete a set of columns.void
TableData.deleteColumns
(int row, int len) void
TableHDU.deleteColumnsIndexOne
(int column, int len) Delete a set of columns from a table.void
TableHDU.deleteColumnsIndexOne
(int column, int len, String[] fields) Delete a set of columns from a table.void
TableHDU.deleteColumnsIndexZero
(int column, int len) Delete a set of columns from a table.void
TableHDU.deleteColumnsIndexZero
(int column, int len, IFitsHeader[] fields) Delete a set of columns from a table.void
Fits.deleteHDU
(int n) Delete an HDU from the HDU list.void
AsciiTable.deleteRows
(int start, int len) Delete rows from a FITS tablevoid
BinaryTable.deleteRows
(int row, int len) Delete rows from a table.void
TableData.deleteRows
(int row, int len) void
TableHDU.deleteRows
(int row) Remove all rows from the table starting at some specific index from the table.void
TableHDU.deleteRows
(int firstRow, int nRow) Remove a number of adjacent rows from the table.private void
Header.doCardChecks
(boolean isTable, boolean isExtension) static AsciiTable
AsciiTableHDU.encapsulate
(Object o) static BinaryTable
BinaryTableHDU.encapsulate
(Object o) static ImageData
ImageHDU.encapsulate
(Object o) static RandomGroupsData
RandomGroupsHDU.encapsulate
(Object o) static UndefinedData
UndefinedHDU.encapsulate
(Object o) private void
AsciiTable.ensureData()
be sure that the data is filled.private void
BinaryTable.ensureData()
private boolean
AsciiTable.extractElement
(int offset, int length, Object[] array, int col, int row, String nullFld) Move an element from the buffer into a data array.protected void
Get a stream from the file and then use the stream initialization.(package private) void
BinaryTable.fillForColumn
(Header h, int col, Cursor<String, HeaderCard> iter) Update the header to reflect the details of a given column.void
BinaryTable.fillHeader
(Header h) Update a FITS header to reflect the current state of the data.(package private) abstract void
Data.fillHeader
(Header head) Modify a header to point to this data, this differs per subclass, they all need oder provided different informations to the header.protected void
ImageData.fillHeader
(Header head) Fill header with keywords that describe image data.protected void
RandomGroupsData.fillHeader
(Header h) (package private) static Object[]
RandomGroupsHDU.generateSampleRow
(Header h) int[]
BasicHDU.getAxes()
In FITS files the index represented by NAXIS1 is the index that changes most rapidly.int
BasicHDU.getBitPix()
long
BasicHDU.getBlankValue()
private void
AsciiTable.getBuffer
(int size, long offset) Read some data into the buffer.AsciiTable.getColumn
(int col) Get a column of dataBinaryTable.getColumn
(int col) Get a given columnTableData.getColumn
(int col) TableHDU.getColumn
(int col) TableHDU.getColumnFormat
(int index) Get the FITS type of a column in the table.Object[]
TableHDU.getColumns()
AsciiTable.getData()
Get the ASCII table information.BinaryTable.getData()
abstract Object
Data.getData()
void
Get data from the heap.AsciiTable.getElement
(int row, int col) Get a single element as a one-d array.BinaryTable.getElement
(int i, int j) Get a particular element from the table.TableData.getElement
(int row, int col) TableHDU.getElement
(int row, int col) private Object[]
BinaryTable.getFileRow
(int row) BinaryTable.getFlattenedColumn
(int col) BasicHDU<?>
Fits.getHDU
(int n) Data.getKernel()
private Object[]
BinaryTable.getMemoryRow
(int row) Get a row from memory.BinaryTable.getRawElement
(int i, int j) Object[]
AsciiTable.getRow
(int row) Get a row.Object[]
BinaryTable.getRow
(int row) Get a given rowObject[]
TableData.getRow
(int row) Object[]
TableHDU.getRow
(int row) static BasicHDU<?>
FitsFactory.hduFactory
(Object o) FitsFactory.hduFactory
(Header hdr, DataClass d) static BasicHDU<?>
FitsFactory.HDUFactory
(Object o) Deprecated.FitsFactory.HDUFactory
(Header hdr, DataClass d) Deprecated.useFitsFactory.hduFactory(Header, Data)
insteadvoid
Insert a FITS object into the list of HDUs.Header.makeData()
Fits.makeHDU
(DataClass data) static BasicHDU<?>
static BasicHDU<?>
static Data
AsciiTableHDU.manufactureData
(Header hdr) Create a Data object to correspond to the header description.static BinaryTable
BinaryTableHDU.manufactureData
(Header header) static Data
ImageHDU.manufactureData
(Header hdr) static RandomGroupsData
RandomGroupsHDU.manufactureData
(Header header) static Data
UndefinedHDU.manufactureData
(Header hdr) static Header
AsciiTableHDU.manufactureHeader
(Data d) static Header
BinaryTableHDU.manufactureHeader
(Data data) static Header
ImageHDU.manufactureHeader
(Data d) (package private) static Header
RandomGroupsHDU.manufactureHeader
(Data d) static Header
UndefinedHDU.manufactureHeader
(Data d) static int
static void
FitsUtil.pad
(ArrayDataOutput stream, long size) Add padding to an output stream.static void
FitsUtil.pad
(ArrayDataOutput stream, long size, byte fill) Add padding to an output stream.protected ImageData.ArrayDesc
ImageData.parseHeader
(Header h) private Object
AsciiTable.parseSingleElement
(int row, int col) Read a single element from the table.private Object[]
AsciiTable.parseSingleRow
(int row) Read a single row from the table.(package private) void
BinaryTable.pointToColumn
(int col, Header hdr) Update the header to reflect information about a given column.void
Header.pointToData
(Data o) Deprecated.Use the appropriate Header constructor.private int
BinaryTable.processCol
(Header header, int col) Process one column from a FITS Header.(package private) int
Add some data to the heap.protected void
Fits.randomInit
(File file) Initialize using buffered random access.void
AsciiTable.read
(ArrayDataInput str) Read in an ASCII table.void
BasicHDU.read
(ArrayDataInput stream) void
BinaryTable.read
(ArrayDataInput i) Read the data -- or defer reading on random access.abstract void
Data.read
(ArrayDataInput in) BasicHDU<?>[]
Fits.read()
Return all HDUs for the Fits object.void
Fits.read
(InputStream is) Read a FITS file from an InputStream object.void
FitsElement.read
(ArrayDataInput in) Read a data array into the current object and if needed position to the beginning of the next FITS block.void
FitsHeap.read
(ArrayDataInput str) Read the heapvoid
ImageData.read
(ArrayDataInput i) void
RandomGroupsData.read
(ArrayDataInput str) Read the RandomGroupsDatavoid
UndefinedData.read
(ArrayDataInput i) BasicHDU<?>
Fits.readHDU()
Read the next HDU on the default input stream.protected void
BinaryTable.readHeap
(ArrayDataInput input) Read the heap which contains the data for variable length arrays.private void
Fits.readToEnd()
Read to the end of the associated input streamprotected void
BinaryTable.readTrueData
(ArrayDataInput i) Read table, heap and paddingstatic void
FitsUtil.reposition
(Closeable o, long offset) Reposition a random access stream to a requested offset.void
BasicHDU.rewrite()
void
Data.rewrite()
void
FitsElement.rewrite()
Rewrite the contents of the element in place.void
FitsHeap.rewrite()
void
Header.rewrite()
Rewrite the header.void
Fits.setChecksum()
Add or Modify the CHECKSUM keyword in all headers.static void
Fits.setChecksum
(BasicHDU<?> hdu) Deprecated.void
Replace a column with new data.void
Replace a column in the table.void
void
Update a column within a table.void
Update a column within a table.void
TableHDU.setColumnMeta
(int index, String key, boolean value, String comment, boolean after) void
TableHDU.setColumnMeta
(int index, String key, double value, int precision, String comment, boolean after) void
TableHDU.setColumnMeta
(int index, String key, double value, String comment, boolean after) void
TableHDU.setColumnMeta
(int index, String key, long value, String comment, boolean after) void
TableHDU.setColumnMeta
(int index, String key, String value, String comment) void
TableHDU.setColumnMeta
(int index, String key, String value, String comment, boolean after) void
TableHDU.setColumnMeta
(int index, IFitsHeader key, String value, String comment, boolean after) Specify column metadata for a given column in a way that allows all of the column metadata for a given column to be organized together.void
TableHDU.setColumnName
(int index, String name, String comment) (package private) boolean
BinaryTable.setComplexColumn
(int index) Convert a column from float/double to float complex/double complex.boolean
BinaryTableHDU.setComplexColumn
(int index) Convert a column in the table to complex.void
AsciiTable.setElement
(int row, int col, Object newData) Modify an element in the tablevoid
BinaryTable.setElement
(int i, int j, Object o) Replace a single element within the table.void
TableData.setElement
(int row, int col, Object element) void
TableHDU.setElement
(int row, int col, Object element) Update a single element within the table.void
BinaryTable.setFlattenedColumn
(int col, Object data) Set a column with the data already flattened.(package private) void
BasicHDU.setPrimaryHDU
(boolean newPrimary) Indicate that an HDU is the first element of a FITS file.protected void
RandomGroupsHDU.setPrimaryHDU
(boolean status) Move a RandomGroupsHDU to or from the beginning of a FITS file.void
Modify a row in the tablevoid
Replace a row in the table.void
void
Update a row within a table.int
Fits.size()
Deprecated.The meaning of size of ambiguous.void
Fits.skipHDU()
Skip the next HDU on the default input stream.void
Fits.skipHDU
(int n) Skip HDUs on the associate input stream.protected void
Fits.streamInit
(InputStream inputStream) Initialize the input stream.void
AsciiTable.updateAfterDelete
(int oldNCol, Header hdr) This is called after we delete columns.void
BinaryTable.updateAfterDelete
(int oldNcol, Header hdr) Update the header after a deletion.void
TableData.updateAfterDelete
(int oldNcol, Header hdr) (package private) void
PaddingException.updateHeader
(Header hdr) void
AsciiTable.write
(ArrayDataOutput str) Write the data to an output stream.void
BasicHDU.write
(ArrayDataOutput stream) void
BinaryTable.write
(ArrayDataOutput os) Write the table, heap and padding.void
BinaryTableHDU.write
(ArrayDataOutput ado) abstract void
Data.write
(ArrayDataOutput o) Write the data -- including any buffering neededvoid
Fits.write
(DataOutput os) Write a Fits Object to an external Stream.void
Write the FITS to the specified file.void
FitsElement.write
(ArrayDataOutput out) Write the contents of the element to a data sink.void
FitsHeap.write
(ArrayDataOutput str) Write the heapvoid
Header.write
(ArrayDataOutput dos) Write the current header (including any needed padding) to the output stream.void
ImageData.write
(ArrayDataOutput o) void
RandomGroupsData.write
(ArrayDataOutput str) Write the RandomGroupsDatavoid
UndefinedData.write
(ArrayDataOutput o) Constructors in nom.tam.fits that throw FitsExceptionModifierConstructorDescriptionAsciiTable
(Header hdr) Create an ASCII table given a headerBinaryTable
(Object[] o) Create a binary table from existing data in column order.BinaryTable
(Object[][] data) Create a binary table from existing data in row order.BinaryTable
(Header myHeader) Create a binary table from given header information.Associate FITS object with a File.Associate the Fits object with a FileFits
(InputStream str) Create a Fits object associated with the given data stream.Fits
(InputStream str, boolean compressed) Deprecated.useFits(InputStream)
compression is auto detected.Associate the FITS object with a file or URL.Associate the FITS object with a file or URL.Associate the FITS object with a given URLDeprecated.useFits(InputStream)
compression is auto detected.Convert a FITS date string to a JavaDate
object.Create a header which points to the given data object.Create an array from a header description.Build an image HDU using the supplied data.PaddingException
(String msg, Data data, Exception cause) UndefinedHDU
(Header h, UndefinedData d) Build an image HDU using the supplied data. -
Uses of FitsException in nom.tam.fits.compress
Methods in nom.tam.fits.compress that throw FitsExceptionModifier and TypeMethodDescriptionprivate InputStream
ExternalBZip2CompressionProvider.bunzipper
(InputStream compressed) private InputStream
BasicCompressProvider.compressInputStream
(InputStream compressed) BasicCompressProvider.decompress
(InputStream in) static InputStream
CompressionManager.decompress
(InputStream compressed) This method decompresses a compressed input stream.ExternalBZip2CompressionProvider.decompress
(InputStream in) ICompressProvider.decompress
(InputStream in) -
Uses of FitsException in nom.tam.fits.compression.provider.param.api
Methods in nom.tam.fits.compression.provider.param.api that throw FitsExceptionModifier and TypeMethodDescriptionvoid
ICompressParameters.addColumnsToTable
(BinaryTableHDU hdu) Add the columns that hold the metadata for the parameters that are column based to the dhu.void
ICompressParameters.initializeColumns
(IHeaderAccess header, BinaryTable binaryTable, int size) initialize the column based options of the compression algorithm from the binary table. -
Uses of FitsException in nom.tam.fits.compression.provider.param.base
Methods in nom.tam.fits.compression.provider.param.base that throw FitsExceptionModifier and TypeMethodDescriptionvoid
CompressParameters.addColumnsToTable
(BinaryTableHDU hdu) private Object
CompressParameters.getNullableColumn
(IHeaderAccess header, BinaryTable binaryTable, String columnName) void
CompressParameters.initializeColumns
(IHeaderAccess header, BinaryTable binaryTable, int size) -
Uses of FitsException in nom.tam.fits.utilities
Methods in nom.tam.fits.utilities that throw FitsExceptionModifier and TypeMethodDescriptionstatic void
FitsCheckSum.setChecksum
(BasicHDU<?> hdu) Add or update the CHECKSUM keyword. -
Uses of FitsException in nom.tam.image.compression.bintable
Constructors in nom.tam.image.compression.bintable that throw FitsExceptionModifierConstructorDescriptionBinaryTableTileDecompressor
(CompressedTableData binData, ColumnTable<?> columnTable, BinaryTableTileDescription description) -
Uses of FitsException in nom.tam.image.compression.hdu
Methods in nom.tam.image.compression.hdu that throw FitsExceptionModifier and TypeMethodDescriptionprotected BinaryTable
CompressedTableData.asBinaryTable
(BinaryTable dataToFill, Header compressedHeader, Header targetHeader) CompressedTableHDU.asBinaryTableHDU()
CompressedImageHDU.asImageHDU()
protected void
CompressedImageData.compress
(CompressedImageHDU hdu) void
CompressedImageHDU.compress()
void
CompressedTableHDU.compress()
void
CompressedImageData.fillHeader
(Header h) void
CompressedTableData.fillHeader
(Header h) static CompressedTableHDU
CompressedTableHDU.fromBinaryTableHDU
(BinaryTableHDU binaryTableHDU, int tileRows, String... columnCompressionAlgorithms) Prepare a compressed binary table HDU for the specified binary table.static CompressedImageHDU
CompressedImageHDU.fromImageHDU
(ImageHDU imageHDU, int... tileAxis) Prepare a compressed image hdu for the specified image.protected Buffer
CompressedImageData.getUncompressedData
(Header hdr) CompressedImageHDU.getUncompressedData()
static CompressedImageData
CompressedImageHDU.manufactureData
(Header hdr) static CompressedTableData
CompressedTableHDU.manufactureData
(Header hdr) protected void
CompressedImageData.prepareUncompressedData
(Object data, Header header) void
CompressedTableData.prepareUncompressedData
(ColumnTable<BinaryTable.SaveState> data) CompressedImageHDU.setCompressAlgorithm
(String compressAlgorithm) protected void
CompressedImageData.setQuantAlgorithm
(HeaderCard quantAlgorithmCard) CompressedImageHDU.setQuantAlgorithm
(String quantAlgorithm) protected CompressedImageData
CompressedImageData.setTileSize
(int... axes) Constructors in nom.tam.image.compression.hdu that throw FitsException -
Uses of FitsException in nom.tam.image.compression.tile
Methods in nom.tam.image.compression.tile that throw FitsExceptionModifier and TypeMethodDescriptionprivate static void
TiledImageCompressionOperation.addColumnToTable
(BinaryTableHDU hdu, Object column, String columnName) void
TiledImageCompressionOperation.compress
(BinaryTableHDU hdu) private <T> T
TiledImageCompressionOperation.getNullableColumn
(Header header, Class<T> class1, String columnName) TiledImageCompressionOperation.prepareUncompressedData
(Buffer buffer) private void
void
TiledImageCompressionOperation.readPrimaryHeaders
(Header header) private void
TiledImageCompressionOperation.readTileAxis
(Header header) void
TileDecompressorInitialisation.tileCount
(int tileCount) private void
TiledImageCompressionOperation.writeColumns
(BinaryTableHDU hdu) private void
TiledImageCompressionOperation.writeHeader
(Header header) -
Uses of FitsException in nom.tam.image.tile.operation
Methods in nom.tam.image.tile.operation that throw FitsExceptionModifier and TypeMethodDescriptionprotected void
AbstractTiledImageOperation.createTiles
(ITileOperationInitialisation<OPERATION> init) void
AbstractTiledImageOperation.setTileAxes
(int[] value) void
ITileOperationInitialisation.tileCount
(int tileCount) -
Uses of FitsException in nom.tam.util
Subclasses of FitsException in nom.tam.util
FitsFactory.hduFactory(Object)
instead