public class BinaryTableHDU extends TableHDU<BinaryTable>
BITPIX_BYTE, BITPIX_DOUBLE, BITPIX_FLOAT, BITPIX_INT, BITPIX_LONG, BITPIX_SHORT, isPrimary, myData, myHeader
Constructor and Description |
---|
BinaryTableHDU(Header hdr,
BinaryTable datum) |
Modifier and Type | Method and Description |
---|---|
int |
addColumn(Object data)
Add a column to the table without any associated header information.
|
protected IFitsHeader[] |
columnKeyStems()
What are the standard column stems for a binary table?
|
static BinaryTable |
encapsulate(Object o) |
void |
info(PrintStream stream)
Print out some information about this HDU.
|
static boolean |
isData(Object o) |
boolean |
isHeader()
Check that this HDU has a valid header.
|
static boolean |
isHeader(Header header)
Check that this is a valid binary table header.
|
static BinaryTable |
manufactureData(Header header) |
static Header |
manufactureHeader(Data data) |
boolean |
setComplexColumn(int index)
Convert a column in the table to complex.
|
void |
write(ArrayDataOutput ado)
Write the contents of the element to a data sink.
|
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, setColumnName, setCurrentColumn, setCurrentColumn, setElement, setRow
addValue, addValue, addValue, addValue, addValue, addValue, addValue, addValue, card, getAuthor, getAxes, getBitPix, getBlankValue, getBScale, getBUnit, getBZero, getCreationDate, getData, 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
public BinaryTableHDU(Header hdr, BinaryTable datum)
public static BinaryTable encapsulate(Object o) throws FitsException
o
- data to encapsulateFitsException
- if the type of the data is not usable as datapublic static boolean isData(Object o)
public static boolean isHeader(Header header)
header
- to validate.true
if this is a binary table header.public static BinaryTable manufactureData(Header header) throws FitsException
header
- the template specifying the binary table.FitsException
- if there was a problem with the header.public static Header manufactureHeader(Data data) throws FitsException
data
- the data used to build the binary table. This is typically
some kind of array of objects.FitsException
- if there was a problem with the data.public int addColumn(Object data) throws FitsException
TableHDU
addColumn
in class TableHDU<BinaryTable>
data
- the new column information. the newCol should be an Object[]
where type of all of the constituents is identical. The length
of data should match the other columns. Note: It is
valid for data to be a 2 or higher dimensionality primitive
array. In this case the column index is the first (in Java
speak) index of the array. E.g., if called with
int[30][20][10], the number of rows in the table should be 30
and this column will have elements which are 2-d integer
arrays with TDIM = (10,20).FitsException
- if the operation failedprotected IFitsHeader[] columnKeyStems()
columnKeyStems
in class TableHDU<BinaryTable>
public void info(PrintStream stream)
info
in class BasicHDU<BinaryTable>
stream
- the printstream to write the info onpublic boolean isHeader()
true
if this HDU has a valid header.public boolean setComplexColumn(int index) throws FitsException
index
- The 0-based index of the column to be converted.FitsException
- if the header could not be adaptedpublic void write(ArrayDataOutput ado) throws FitsException
FitsElement
write
in interface FitsElement
write
in class BasicHDU<BinaryTable>
ado
- The data sink.FitsException
- if the write was unsuccessful.Copyright © 1996–2016 nom-tam-fits. All rights reserved.