|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnom.tam.fits.BinaryTableHeaderParser
This class defines the methods for accessing FITS binary table header information.
| Field Summary | |
(package private) Header |
myHeader
|
| Constructor Summary | |
BinaryTableHeaderParser(Header myHeader)
Parse an existing header. |
|
| Method Summary | |
static void |
addColumn(int column,
Object[] col,
Header myHeader)
Add a column to the header information. |
protected void |
checkLT0(int i,
String errmsg)
Check if a value is less than 0 and throw an error if so. |
protected Object |
getColumnDef(int col)
Get the format for a given column |
Object[] |
getModelRow()
Create a model row for a binary table given a describing header. |
static int[] |
getTDims(String tdims,
int arrsiz)
Parse the TDIMS value. |
(package private) static void |
pointToCol(Header myHeader,
int col,
int size,
int[] dimens,
char type)
Add information in the header to describe a single column. |
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 |
| Field Detail |
Header myHeader
| Constructor Detail |
public BinaryTableHeaderParser(Header myHeader)
throws FitsException
| Method Detail |
public Object[] getModelRow()
throws FitsException
FitsException
protected void checkLT0(int i,
String errmsg)
throws FitsException
i - The value to be checked.
FitsException
protected Object getColumnDef(int col)
throws FitsException
col - the column being examined.
FitsException
public static int[] getTDims(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,
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
static void pointToCol(Header myHeader,
int col,
int size,
int[] dimens,
char type)
throws FitsException
myHeader - The header to be updated.col - The column index.size - The number of elements in the column per rowdimens - The dimensions of the column.type - A character indicating the type of data.
FitsException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||