|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnom.tam.fits.BinaryTableHeaderParser
public class BinaryTableHeaderParser
This class defines the methods for accessing FITS binary table header information.
Constructor Summary | |
---|---|
BinaryTableHeaderParser(Header myHeader)
Parse an existing header. |
Method Summary | |
---|---|
static void |
addColumn(int column,
java.lang.Object[] col,
Header myHeader)
Add a column to the header information. |
protected void |
checkLT0(int i,
java.lang.String errmsg)
Check if a value is less than 0 and throw an error if so. |
protected java.lang.Object |
getColumnDef(int col)
Get the format for a given column |
java.lang.Object[] |
getModelRow()
Create a model row for a binary table given a describing header. |
static int[] |
getTDims(java.lang.String tdims,
int arrsiz)
Parse the TDIMS value. |
static Header |
pointToTable(BinaryTable table)
Make the header describe the a table where we give only. |
static Header |
pointToTable(BinaryTable table,
Header myHeader)
Make the header describe a specified table and included existing header information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BinaryTableHeaderParser(Header myHeader) throws FitsException
The
- existing header -- likely read from a file.
FitsException
Method Detail |
---|
public java.lang.Object[] getModelRow() throws FitsException
FitsException
protected void checkLT0(int i, java.lang.String errmsg) throws FitsException
i
- The value to be checked.errmst
- The message to be associated with the FitsException thrown.
FitsException
protected java.lang.Object getColumnDef(int col) throws FitsException
col
- the column being examined.
FitsException
public static int[] getTDims(java.lang.String tdims, int arrsiz)
tdims
- The value of the TDIMSn card.arrsiz
- The size field found on the TFORMn card.
public static Header pointToTable(BinaryTable table) throws FitsException
FitsException
- if the table was not valid.public static Header pointToTable(BinaryTable table, Header myHeader) throws FitsException
table
- The binary table data.myHeader
- An existing header for this data. It will be modified
as needed, but excess keywords will not be pruned.
FitsException
public static void addColumn(int column, java.lang.Object[] col, Header myHeader) throws FitsException
column
- The column index for the new column.col
- The column data.myHeader
- The existing header for the table.
FitsException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |