Modifier and Type | Class and Description |
---|---|
class |
HeaderCardException |
class |
PaddingException
This exception is thrown if an error is found reading the padding following a
valid FITS HDU.
|
class |
TruncatedFileException
This exception is thrown when an EOF is detected in the middle of an HDU.
|
Modifier and Type | Method and Description |
---|---|
int |
AsciiTable.addColumn(Object newCol) |
int |
AsciiTableHDU.addColumn(Object newCol) |
int |
TableHDU.addColumn(Object newCol)
Add a column to the table without any associated header information.
|
int |
BinaryTableHDU.addColumn(Object data) |
int |
TableData.addColumn(Object newCol)
Add a column to the table without any associated header information.
|
int |
BinaryTable.addColumn(Object o) |
int |
AsciiTable.addColumn(Object newCol,
int length)
This version of addColumn allows the user to override the default length
associated with each column type.
|
int |
BinaryTable.addFlattenedColumn(Object o,
int[] dims)
Add a column where the data is already flattened.
|
void |
Fits.addHDU(BasicHDU<?> myHDU)
Add an HDU to the Fits object.
|
int |
AsciiTable.addRow(Object[] newRow) |
int |
TableHDU.addRow(Object[] newRows)
Add a row to the end of the table.
|
int |
TableData.addRow(Object[] newRow)
Add a row at the end of the table.
|
int |
BinaryTable.addRow(Object[] o) |
static void |
BinaryTable.createColumnDataFor(BinaryTable table)
TODO: this is only for internal access!
|
static Data |
FitsFactory.dataFactory(Header hdr) |
void |
AsciiTable.deleteColumns(int start,
int len)
Delete columns from the table.
|
void |
TableData.deleteColumns(int row,
int len) |
void |
BinaryTable.deleteColumns(int start,
int len)
Delete a set of columns.
|
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 |
TableHDU.deleteRows(int row)
Remove all rows from the table starting at some specific index from the
table.
|
void |
AsciiTable.deleteRows(int start,
int len)
Delete rows from a FITS table
|
void |
TableHDU.deleteRows(int firstRow,
int nRow)
Remove a number of adjacent rows from the table.
|
void |
TableData.deleteRows(int row,
int len) |
void |
BinaryTable.deleteRows(int row,
int len)
Delete rows from a table.
|
static RandomGroupsData |
RandomGroupsHDU.encapsulate(Object o) |
static AsciiTable |
AsciiTableHDU.encapsulate(Object o) |
static BinaryTable |
BinaryTableHDU.encapsulate(Object o) |
static UndefinedData |
UndefinedHDU.encapsulate(Object o) |
static ImageData |
ImageHDU.encapsulate(Object o) |
protected void |
Fits.fileInit(File myFile,
boolean compressed)
Get a stream from the file and then use the stream initialization.
|
void |
BinaryTable.fillHeader(Header h)
Update a FITS header to reflect the current state of the data.
|
protected void |
ImageData.fillHeader(Header head)
Fill header with keywords that describe image data.
|
protected void |
RandomGroupsData.fillHeader(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() |
Object |
AsciiTable.getColumn(int col)
Get a column of data
|
Object |
TableHDU.getColumn(int col) |
Object |
TableData.getColumn(int col) |
Object |
BinaryTable.getColumn(int col)
Get a given column
|
Object |
TableHDU.getColumn(String colName) |
String |
TableHDU.getColumnFormat(int index)
Get the FITS type of a column in the table.
|
Object[] |
TableHDU.getColumns() |
Object |
AsciiTable.getData()
Get the ASCII table information.
|
abstract Object |
Data.getData() |
ColumnTable<BinaryTable.SaveState> |
BinaryTable.getData() |
void |
FitsHeap.getData(int offset,
Object array)
Get data from the heap.
|
Object |
AsciiTable.getElement(int row,
int col)
Get a single element as a one-d array.
|
Object |
TableHDU.getElement(int row,
int col) |
Object |
TableData.getElement(int row,
int col) |
Object |
BinaryTable.getElement(int i,
int j)
Get a particular element from the table.
|
Object |
BinaryTable.getFlattenedColumn(int col) |
BasicHDU<?> |
Fits.getHDU(int n) |
Object |
Data.getKernel() |
Object |
BinaryTable.getRawElement(int i,
int j) |
Object[] |
AsciiTable.getRow(int row)
Get a row.
|
Object[] |
TableHDU.getRow(int row) |
Object[] |
TableData.getRow(int row) |
Object[] |
BinaryTable.getRow(int row)
Get a given row
|
static <DataClass extends Data> |
FitsFactory.hduFactory(Header hdr,
DataClass d) |
static <DataClass extends Data> |
FitsFactory.HDUFactory(Header hdr,
DataClass d)
Deprecated.
use
FitsFactory.hduFactory(Header, Data) instead |
static BasicHDU<?> |
FitsFactory.hduFactory(Object o) |
static BasicHDU<?> |
FitsFactory.HDUFactory(Object o)
Deprecated.
use
FitsFactory.hduFactory(Object) instead |
void |
Fits.insertHDU(BasicHDU<?> myHDU,
int position)
Insert a FITS object into the list of HDUs.
|
Data |
Header.makeData() |
static <DataClass extends Data> |
Fits.makeHDU(DataClass data) |
static BasicHDU<?> |
Fits.makeHDU(Header h) |
static BasicHDU<?> |
Fits.makeHDU(Object o) |
static RandomGroupsData |
RandomGroupsHDU.manufactureData(Header header) |
static Data |
AsciiTableHDU.manufactureData(Header hdr)
Create a Data object to correspond to the header description.
|
static BinaryTable |
BinaryTableHDU.manufactureData(Header header) |
static Data |
UndefinedHDU.manufactureData(Header hdr) |
static Data |
ImageHDU.manufactureData(Header hdr) |
static Header |
AsciiTableHDU.manufactureHeader(Data d) |
static Header |
BinaryTableHDU.manufactureHeader(Data data) |
static Header |
UndefinedHDU.manufactureHeader(Data d) |
static Header |
ImageHDU.manufactureHeader(Data d) |
static int |
FitsUtil.maxLength(String[] strings) |
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) |
void |
Header.pointToData(Data o)
Deprecated.
Use the appropriate Header constructor.
|
protected void |
Fits.randomInit(File file)
Initialize using buffered random access.
|
BasicHDU<?>[] |
Fits.read()
Return all HDUs for the Fits object.
|
void |
AsciiTable.read(ArrayDataInput str)
Read in an ASCII table.
|
void |
BasicHDU.read(ArrayDataInput stream) |
void |
FitsHeap.read(ArrayDataInput str)
Read the heap
|
abstract void |
Data.read(ArrayDataInput in) |
void |
BinaryTable.read(ArrayDataInput i)
Read the data -- or defer reading on random access.
|
void |
ImageData.read(ArrayDataInput i) |
void |
UndefinedData.read(ArrayDataInput i) |
void |
RandomGroupsData.read(ArrayDataInput str)
Read the RandomGroupsData
|
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 |
Fits.read(InputStream is)
Read a FITS file from an InputStream object.
|
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.
|
protected void |
BinaryTable.readTrueData(ArrayDataInput i)
Read table, heap and padding
|
static void |
FitsUtil.reposition(Closeable o,
long offset)
Reposition a random access stream to a requested offset.
|
void |
BasicHDU.rewrite() |
void |
FitsHeap.rewrite() |
void |
Data.rewrite() |
void |
Header.rewrite()
Rewrite the header.
|
void |
FitsElement.rewrite()
Rewrite the contents of the element in place.
|
void |
Fits.setChecksum()
Add or Modify the CHECKSUM keyword in all headers.
|
static void |
Fits.setChecksum(BasicHDU<?> hdu)
Deprecated.
|
void |
AsciiTable.setColumn(int col,
Object newData)
Replace a column with new data.
|
void |
TableHDU.setColumn(int col,
Object newCol)
Update a column within a table.
|
void |
TableData.setColumn(int col,
Object newCol) |
void |
BinaryTable.setColumn(int col,
Object xcol)
Replace a column in the table.
|
void |
TableHDU.setColumn(String colName,
Object newCol)
Update a column within a table.
|
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.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.setColumnName(int index,
String name,
String comment) |
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 table
|
void |
TableHDU.setElement(int row,
int col,
Object element)
Update a single element within the table.
|
void |
TableData.setElement(int row,
int col,
Object element) |
void |
BinaryTable.setElement(int i,
int j,
Object o)
Replace a single element within the table.
|
void |
BinaryTable.setFlattenedColumn(int col,
Object data)
Set a column with the data already flattened.
|
protected void |
RandomGroupsHDU.setPrimaryHDU(boolean status)
Move a RandomGroupsHDU to or from the beginning of a FITS file.
|
void |
AsciiTable.setRow(int row,
Object[] newData)
Modify a row in the table
|
void |
TableHDU.setRow(int row,
Object[] newRow)
Update a row within a table.
|
void |
TableData.setRow(int row,
Object[] newRow) |
void |
BinaryTable.setRow(int row,
Object[] data)
Replace a row in the table.
|
int |
Fits.size()
Deprecated.
The meaning of size of ambiguous. Use
Fits.getNumberOfHDUs() instead. Note size() will read the
input file/stream to the EOF before returning the number of
HDUs which Fits.getNumberOfHDUs() does not. If you wish
to duplicate this behavior and ensure that the input has been
exhausted before getting the number of HDUs then use the
sequence:
read();
getNumberofHDUs();
|
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 |
TableData.updateAfterDelete(int oldNcol,
Header hdr) |
void |
BinaryTable.updateAfterDelete(int oldNcol,
Header hdr)
Update the header after a deletion.
|
void |
AsciiTable.write(ArrayDataOutput str)
Write the data to an output stream.
|
void |
BinaryTableHDU.write(ArrayDataOutput ado) |
void |
BasicHDU.write(ArrayDataOutput stream) |
void |
FitsHeap.write(ArrayDataOutput str)
Write the heap
|
abstract void |
Data.write(ArrayDataOutput o)
Write the data -- including any buffering needed
|
void |
Header.write(ArrayDataOutput dos)
Write the current header (including any needed padding) to the output
stream.
|
void |
BinaryTable.write(ArrayDataOutput os)
Write the table, heap and padding.
|
void |
ImageData.write(ArrayDataOutput o) |
void |
UndefinedData.write(ArrayDataOutput o) |
void |
RandomGroupsData.write(ArrayDataOutput str)
Write the RandomGroupsData
|
void |
FitsElement.write(ArrayDataOutput out)
Write the contents of the element to a data sink.
|
void |
Fits.write(DataOutput os)
Write a Fits Object to an external Stream.
|
void |
Fits.write(File file)
Write the FITS to the specified file.
|
Constructor and Description |
---|
AsciiTable(Header hdr)
Create an ASCII table given a header
|
BinaryTable(Header myHeader)
Create a binary table from given header information.
|
BinaryTable(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.
|
Fits(File myFile)
Associate FITS object with a File.
|
Fits(File myFile,
boolean compressed)
Associate the Fits object with a File
|
Fits(InputStream str)
Create a Fits object associated with the given data stream.
|
Fits(InputStream str,
boolean compressed)
Deprecated.
use
Fits.Fits(InputStream) compression is auto detected. |
Fits(String filename)
Associate the FITS object with a file or URL.
|
Fits(String filename,
boolean compressed)
Associate the FITS object with a file or URL.
|
Fits(URL myURL)
Associate the FITS object with a given URL
|
Fits(URL myURL,
boolean compressed)
Deprecated.
use
Fits.Fits(InputStream) compression is auto detected. |
FitsDate(String dStr)
Convert a FITS date string to a Java
Date object. |
Header(Data o)
Create a header which points to the given data object.
|
ImageData(Header h)
Create an array from a header description.
|
ImageHDU(Header h,
ImageData d)
Build an image HDU using the supplied data.
|
PaddingException(String msg,
Data data,
Exception cause) |
UndefinedData(Header h) |
UndefinedHDU(Header h,
UndefinedData d)
Build an image HDU using the supplied data.
|
Modifier and Type | Method and Description |
---|---|
static InputStream |
CompressionManager.decompress(InputStream compressed)
This method decompresses a compressed input stream.
|
InputStream |
ICompressProvider.decompress(InputStream in) |
InputStream |
ExternalBZip2CompressionProvider.decompress(InputStream in) |
InputStream |
BasicCompressProvider.decompress(InputStream in) |
Modifier and Type | Method and Description |
---|---|
void |
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.
|
Modifier and Type | Method and Description |
---|---|
void |
CompressParameters.addColumnsToTable(BinaryTableHDU hdu) |
void |
CompressParameters.initializeColumns(IHeaderAccess header,
BinaryTable binaryTable,
int size) |
Modifier and Type | Method and Description |
---|---|
static void |
FitsCheckSum.setChecksum(BasicHDU<?> hdu)
Add or update the CHECKSUM keyword.
|
Constructor and Description |
---|
BinaryTableTileDecompressor(CompressedTableData binData,
ColumnTable<?> columnTable,
BinaryTableTileDescription description) |
Modifier and Type | Method and Description |
---|---|
protected BinaryTable |
CompressedTableData.asBinaryTable(BinaryTable dataToFill,
Header compressedHeader,
Header targetHeader) |
BinaryTableHDU |
CompressedTableHDU.asBinaryTableHDU() |
ImageHDU |
CompressedImageHDU.asImageHDU() |
void |
CompressedImageHDU.compress() |
CompressedTableHDU |
CompressedTableHDU.compress() |
protected void |
CompressedImageData.compress(CompressedImageHDU hdu) |
void |
CompressedTableData.compress(Header header) |
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.
|
Buffer |
CompressedImageHDU.getUncompressedData() |
protected Buffer |
CompressedImageData.getUncompressedData(Header hdr) |
static CompressedImageData |
CompressedImageHDU.manufactureData(Header hdr) |
static CompressedTableData |
CompressedTableHDU.manufactureData(Header hdr) |
void |
CompressedTableData.prepareUncompressedData(ColumnTable<BinaryTable.SaveState> data) |
protected void |
CompressedImageData.prepareUncompressedData(Object data,
Header header) |
CompressedImageHDU |
CompressedImageHDU.setCompressAlgorithm(String compressAlgorithm) |
protected void |
CompressedImageData.setQuantAlgorithm(HeaderCard quantAlgorithmCard) |
CompressedImageHDU |
CompressedImageHDU.setQuantAlgorithm(String quantAlgorithm) |
protected CompressedImageData |
CompressedImageData.setTileSize(int... axes) |
Constructor and Description |
---|
CompressedImageData(Header hdr) |
CompressedTableData(Header header) |
Modifier and Type | Method and Description |
---|---|
void |
TiledImageCompressionOperation.compress(BinaryTableHDU hdu) |
TiledImageCompressionOperation |
TiledImageCompressionOperation.prepareUncompressedData(Buffer buffer) |
TiledImageCompressionOperation |
TiledImageCompressionOperation.read(Header header) |
void |
TiledImageCompressionOperation.readPrimaryHeaders(Header header) |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractTiledImageOperation.createTiles(ITileOperationInitialisation<OPERATION> init) |
void |
AbstractTiledImageOperation.setTileAxes(int[] value) |
void |
ITileOperationInitialisation.tileCount(int tileCount) |
Modifier and Type | Class and Description |
---|---|
class |
TableException |
Copyright © 1996–2018 nom-tam-fits. All rights reserved.