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 TypeClassDescriptionclassclassThis exception is thrown if an error is found reading the padding following a valid FITS HDU.classThis exception is thrown when an EOF is detected in the middle of an HDU.Methods in nom.tam.fits that throw FitsExceptionModifier and TypeMethodDescriptionintintThis version of addColumn allows the user to override the default length associated with each column type.intintintintAdd a column to the table without any associated header information.intAdd a column to the table without any associated header information.intBinaryTable.addFlattenedColumn(Object o, int[] dims) Add a column where the data is already flattened.(package private) intBinaryTable.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.voidAdd an HDU to the Fits object.intintintAdd a row at the end of the table.intAdd a row to the end of the table.private ObjectBinaryTable.arrayToColumn(BinaryTable.ColumnDesc added, Object o) Convert the external representation to the BinaryTable representation.private voidCheck if the given key is the next one available in the header.private voidHeader.cardCheck(IFitsHeader key) Check if the given key is the next one available in the header.(package private) voidHeader.checkBeginning()Ensure that the header begins with a valid set of keywords.private ObjectBinaryTable.columnToArray(BinaryTable.ColumnDesc colDesc, Object o, int rows) Convert data from binary table representation to external Java representation.static voidBinaryTable.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 DataFitsFactory.dataFactory(Header hdr) voidAsciiTable.deleteColumns(int start, int len) Delete columns from the table.voidBinaryTable.deleteColumns(int start, int len) Delete a set of columns.voidTableData.deleteColumns(int row, int len) voidTableHDU.deleteColumnsIndexOne(int column, int len) Delete a set of columns from a table.voidTableHDU.deleteColumnsIndexOne(int column, int len, String[] fields) Delete a set of columns from a table.voidTableHDU.deleteColumnsIndexZero(int column, int len) Delete a set of columns from a table.voidTableHDU.deleteColumnsIndexZero(int column, int len, IFitsHeader[] fields) Delete a set of columns from a table.voidFits.deleteHDU(int n) Delete an HDU from the HDU list.voidAsciiTable.deleteRows(int start, int len) Delete rows from a FITS tablevoidBinaryTable.deleteRows(int row, int len) Delete rows from a table.voidTableData.deleteRows(int row, int len) voidTableHDU.deleteRows(int row) Remove all rows from the table starting at some specific index from the table.voidTableHDU.deleteRows(int firstRow, int nRow) Remove a number of adjacent rows from the table.private voidHeader.doCardChecks(boolean isTable, boolean isExtension) static AsciiTableAsciiTableHDU.encapsulate(Object o) static BinaryTableBinaryTableHDU.encapsulate(Object o) static ImageDataImageHDU.encapsulate(Object o) static RandomGroupsDataRandomGroupsHDU.encapsulate(Object o) static UndefinedDataUndefinedHDU.encapsulate(Object o) private voidAsciiTable.ensureData()be sure that the data is filled.private voidBinaryTable.ensureData()private booleanAsciiTable.extractElement(int offset, int length, Object[] array, int col, int row, String nullFld) Move an element from the buffer into a data array.protected voidGet a stream from the file and then use the stream initialization.(package private) voidBinaryTable.fillForColumn(Header h, int col, Cursor<String, HeaderCard> iter) Update the header to reflect the details of a given column.voidBinaryTable.fillHeader(Header h) Update a FITS header to reflect the current state of the data.(package private) abstract voidData.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 voidImageData.fillHeader(Header head) Fill header with keywords that describe image data.protected voidRandomGroupsData.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.intBasicHDU.getBitPix()longBasicHDU.getBlankValue()private voidAsciiTable.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 ObjectData.getData()voidGet 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)insteadvoidInsert a FITS object into the list of HDUs.Header.makeData()Fits.makeHDU(DataClass data) static BasicHDU<?> static BasicHDU<?> static DataAsciiTableHDU.manufactureData(Header hdr) Create a Data object to correspond to the header description.static BinaryTableBinaryTableHDU.manufactureData(Header header) static DataImageHDU.manufactureData(Header hdr) static RandomGroupsDataRandomGroupsHDU.manufactureData(Header header) static DataUndefinedHDU.manufactureData(Header hdr) static HeaderAsciiTableHDU.manufactureHeader(Data d) static HeaderBinaryTableHDU.manufactureHeader(Data data) static HeaderImageHDU.manufactureHeader(Data d) (package private) static HeaderRandomGroupsHDU.manufactureHeader(Data d) static HeaderUndefinedHDU.manufactureHeader(Data d) static intstatic voidFitsUtil.pad(ArrayDataOutput stream, long size) Add padding to an output stream.static voidFitsUtil.pad(ArrayDataOutput stream, long size, byte fill) Add padding to an output stream.protected ImageData.ArrayDescImageData.parseHeader(Header h) private ObjectAsciiTable.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) voidBinaryTable.pointToColumn(int col, Header hdr) Update the header to reflect information about a given column.voidHeader.pointToData(Data o) Deprecated.Use the appropriate Header constructor.private intBinaryTable.processCol(Header header, int col) Process one column from a FITS Header.(package private) intAdd some data to the heap.protected voidFits.randomInit(File file) Initialize using buffered random access.voidAsciiTable.read(ArrayDataInput str) Read in an ASCII table.voidBasicHDU.read(ArrayDataInput stream) voidBinaryTable.read(ArrayDataInput i) Read the data -- or defer reading on random access.abstract voidData.read(ArrayDataInput in) BasicHDU<?>[]Fits.read()Return all HDUs for the Fits object.voidFits.read(InputStream is) Read a FITS file from an InputStream object.voidFitsElement.read(ArrayDataInput in) Read a data array into the current object and if needed position to the beginning of the next FITS block.voidFitsHeap.read(ArrayDataInput str) Read the heapvoidImageData.read(ArrayDataInput i) voidRandomGroupsData.read(ArrayDataInput str) Read the RandomGroupsDatavoidUndefinedData.read(ArrayDataInput i) BasicHDU<?> Fits.readHDU()Read the next HDU on the default input stream.protected voidBinaryTable.readHeap(ArrayDataInput input) Read the heap which contains the data for variable length arrays.private voidFits.readToEnd()Read to the end of the associated input streamprotected voidBinaryTable.readTrueData(ArrayDataInput i) Read table, heap and paddingstatic voidFitsUtil.reposition(Closeable o, long offset) Reposition a random access stream to a requested offset.voidBasicHDU.rewrite()voidData.rewrite()voidFitsElement.rewrite()Rewrite the contents of the element in place.voidFitsHeap.rewrite()voidHeader.rewrite()Rewrite the header.voidFits.setChecksum()Add or Modify the CHECKSUM keyword in all headers.static voidFits.setChecksum(BasicHDU<?> hdu) Deprecated.voidReplace a column with new data.voidReplace a column in the table.voidvoidUpdate a column within a table.voidUpdate a column within a table.voidTableHDU.setColumnMeta(int index, String key, boolean value, String comment, boolean after) voidTableHDU.setColumnMeta(int index, String key, double value, int precision, String comment, boolean after) voidTableHDU.setColumnMeta(int index, String key, double value, String comment, boolean after) voidTableHDU.setColumnMeta(int index, String key, long value, String comment, boolean after) voidTableHDU.setColumnMeta(int index, String key, String value, String comment) voidTableHDU.setColumnMeta(int index, String key, String value, String comment, boolean after) voidTableHDU.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.voidTableHDU.setColumnName(int index, String name, String comment) (package private) booleanBinaryTable.setComplexColumn(int index) Convert a column from float/double to float complex/double complex.booleanBinaryTableHDU.setComplexColumn(int index) Convert a column in the table to complex.voidAsciiTable.setElement(int row, int col, Object newData) Modify an element in the tablevoidBinaryTable.setElement(int i, int j, Object o) Replace a single element within the table.voidTableData.setElement(int row, int col, Object element) voidTableHDU.setElement(int row, int col, Object element) Update a single element within the table.voidBinaryTable.setFlattenedColumn(int col, Object data) Set a column with the data already flattened.(package private) voidBasicHDU.setPrimaryHDU(boolean newPrimary) Indicate that an HDU is the first element of a FITS file.protected voidRandomGroupsHDU.setPrimaryHDU(boolean status) Move a RandomGroupsHDU to or from the beginning of a FITS file.voidModify a row in the tablevoidReplace a row in the table.voidvoidUpdate a row within a table.intFits.size()Deprecated.The meaning of size of ambiguous.voidFits.skipHDU()Skip the next HDU on the default input stream.voidFits.skipHDU(int n) Skip HDUs on the associate input stream.protected voidFits.streamInit(InputStream inputStream) Initialize the input stream.voidAsciiTable.updateAfterDelete(int oldNCol, Header hdr) This is called after we delete columns.voidBinaryTable.updateAfterDelete(int oldNcol, Header hdr) Update the header after a deletion.voidTableData.updateAfterDelete(int oldNcol, Header hdr) (package private) voidPaddingException.updateHeader(Header hdr) voidAsciiTable.write(ArrayDataOutput str) Write the data to an output stream.voidBasicHDU.write(ArrayDataOutput stream) voidBinaryTable.write(ArrayDataOutput os) Write the table, heap and padding.voidBinaryTableHDU.write(ArrayDataOutput ado) abstract voidData.write(ArrayDataOutput o) Write the data -- including any buffering neededvoidFits.write(DataOutput os) Write a Fits Object to an external Stream.voidWrite the FITS to the specified file.voidFitsElement.write(ArrayDataOutput out) Write the contents of the element to a data sink.voidFitsHeap.write(ArrayDataOutput str) Write the heapvoidHeader.write(ArrayDataOutput dos) Write the current header (including any needed padding) to the output stream.voidImageData.write(ArrayDataOutput o) voidRandomGroupsData.write(ArrayDataOutput str) Write the RandomGroupsDatavoidUndefinedData.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 JavaDateobject.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 InputStreamExternalBZip2CompressionProvider.bunzipper(InputStream compressed) private InputStreamBasicCompressProvider.compressInputStream(InputStream compressed) BasicCompressProvider.decompress(InputStream in) static InputStreamCompressionManager.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 TypeMethodDescriptionvoidICompressParameters.addColumnsToTable(BinaryTableHDU hdu) Add the columns that hold the metadata for the parameters that are column based to the dhu.voidICompressParameters.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 TypeMethodDescriptionvoidCompressParameters.addColumnsToTable(BinaryTableHDU hdu) private ObjectCompressParameters.getNullableColumn(IHeaderAccess header, BinaryTable binaryTable, String columnName) voidCompressParameters.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 voidFitsCheckSum.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 BinaryTableCompressedTableData.asBinaryTable(BinaryTable dataToFill, Header compressedHeader, Header targetHeader) CompressedTableHDU.asBinaryTableHDU()CompressedImageHDU.asImageHDU()protected voidCompressedImageData.compress(CompressedImageHDU hdu) voidCompressedImageHDU.compress()voidCompressedTableHDU.compress()voidCompressedImageData.fillHeader(Header h) voidCompressedTableData.fillHeader(Header h) static CompressedTableHDUCompressedTableHDU.fromBinaryTableHDU(BinaryTableHDU binaryTableHDU, int tileRows, String... columnCompressionAlgorithms) Prepare a compressed binary table HDU for the specified binary table.static CompressedImageHDUCompressedImageHDU.fromImageHDU(ImageHDU imageHDU, int... tileAxis) Prepare a compressed image hdu for the specified image.protected BufferCompressedImageData.getUncompressedData(Header hdr) CompressedImageHDU.getUncompressedData()static CompressedImageDataCompressedImageHDU.manufactureData(Header hdr) static CompressedTableDataCompressedTableHDU.manufactureData(Header hdr) protected voidCompressedImageData.prepareUncompressedData(Object data, Header header) voidCompressedTableData.prepareUncompressedData(ColumnTable<BinaryTable.SaveState> data) CompressedImageHDU.setCompressAlgorithm(String compressAlgorithm) protected voidCompressedImageData.setQuantAlgorithm(HeaderCard quantAlgorithmCard) CompressedImageHDU.setQuantAlgorithm(String quantAlgorithm) protected CompressedImageDataCompressedImageData.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 voidTiledImageCompressionOperation.addColumnToTable(BinaryTableHDU hdu, Object column, String columnName) voidTiledImageCompressionOperation.compress(BinaryTableHDU hdu) private <T> TTiledImageCompressionOperation.getNullableColumn(Header header, Class<T> class1, String columnName) TiledImageCompressionOperation.prepareUncompressedData(Buffer buffer) private voidvoidTiledImageCompressionOperation.readPrimaryHeaders(Header header) private voidTiledImageCompressionOperation.readTileAxis(Header header) voidTileDecompressorInitialisation.tileCount(int tileCount) private voidTiledImageCompressionOperation.writeColumns(BinaryTableHDU hdu) private voidTiledImageCompressionOperation.writeHeader(Header header) -
Uses of FitsException in nom.tam.image.tile.operation
Methods in nom.tam.image.tile.operation that throw FitsExceptionModifier and TypeMethodDescriptionprotected voidAbstractTiledImageOperation.createTiles(ITileOperationInitialisation<OPERATION> init) voidAbstractTiledImageOperation.setTileAxes(int[] value) voidITileOperationInitialisation.tileCount(int tileCount) -
Uses of FitsException in nom.tam.util
Subclasses of FitsException in nom.tam.util
FitsFactory.hduFactory(Object)instead