|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nom.tam.fits.BasicHDU nom.tam.fits.TableHDU
public abstract class TableHDU
This class allows FITS binary and ASCII tables to be accessed via a common interface. Bug Fix: 3/28/01 to findColumn.
Field Summary |
---|
Fields inherited from class nom.tam.fits.BasicHDU |
---|
BITPIX_BYTE, BITPIX_DOUBLE, BITPIX_FLOAT, BITPIX_INT, BITPIX_LONG, BITPIX_SHORT, isPrimary, myData, myHeader |
Method Summary | |
---|---|
abstract int |
addColumn(java.lang.Object data)
|
int |
addRow(java.lang.Object[] newRow)
|
abstract java.lang.String[] |
columnKeyStems()
Get the stems of the keywords that are associated with table columns. |
void |
deleteColumnsIndexOne(int column,
int len)
Delete a set of columns from a table. |
void |
deleteColumnsIndexOne(int column,
int len,
java.lang.String[] fields)
Delete a set of columns from a table. |
void |
deleteColumnsIndexZero(int column,
int len)
Delete a set of columns from a table. |
void |
deleteColumnsIndexZero(int column,
int len,
java.lang.String[] fields)
Delete a set of columns from a table. |
void |
deleteRows(int row)
Remove all rows from the table starting at some specific index from the table. |
void |
deleteRows(int firstRow,
int nRow)
Remove a number of adjacent rows from the table. |
int |
findColumn(java.lang.String colName)
|
java.lang.Object |
getColumn(int col)
|
java.lang.Object |
getColumn(java.lang.String colName)
|
java.lang.String |
getColumnFormat(int index)
Get the FITS type of a column in the table. |
java.lang.String |
getColumnName(int index)
Get the name of a column in the table. |
java.lang.Object |
getElement(int row,
int col)
|
int |
getNCols()
Get the number of columns for this table |
int |
getNRows()
Get the number of rows for this table |
java.lang.Object[] |
getRow(int row)
|
void |
setColumn(int col,
java.lang.Object newCol)
|
void |
setColumn(java.lang.String colName,
java.lang.Object newCol)
|
void |
setColumnName(int index,
java.lang.String name,
java.lang.String comment)
|
void |
setCurrentColumn(int col)
|
void |
setElement(int row,
int col,
java.lang.Object element)
|
void |
setRow(int row,
java.lang.Object[] newRow)
|
Methods inherited from class nom.tam.fits.BasicHDU |
---|
addValue, addValue, addValue, addValue, 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, info, isHeader, read, readData, rewrite, rewriteable, skipData, skipData, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.Object[] getRow(int row) throws FitsException
FitsException
public java.lang.Object getColumn(java.lang.String colName) throws FitsException
FitsException
public java.lang.Object getColumn(int col) throws FitsException
FitsException
public java.lang.Object getElement(int row, int col) throws FitsException
FitsException
public void setRow(int row, java.lang.Object[] newRow) throws FitsException
FitsException
public void setColumn(java.lang.String colName, java.lang.Object newCol) throws FitsException
FitsException
public void setColumn(int col, java.lang.Object newCol) throws FitsException
FitsException
public void setElement(int row, int col, java.lang.Object element) throws FitsException
FitsException
public int addRow(java.lang.Object[] newRow) throws FitsException
FitsException
public int findColumn(java.lang.String colName)
public abstract int addColumn(java.lang.Object data) throws FitsException
FitsException
public int getNCols()
public int getNRows()
public java.lang.String getColumnName(int index)
index
- The 0-based column index.
FitsException
- if an invalid index was requested.public void setColumnName(int index, java.lang.String name, java.lang.String comment) throws FitsException
FitsException
public java.lang.String getColumnFormat(int index) throws FitsException
FitsException
- if an invalid index was requested.public void setCurrentColumn(int col)
public void deleteRows(int row) throws FitsException
row
- the (0-based) index of the first row to be deleted.
FitsExcpetion
- if an error occurs.
FitsException
public void deleteRows(int firstRow, int nRow) throws FitsException
firstRow
- the (0-based) index of the first row to be deleted.
This is zero-based indexing: 0<=firstrow< number of rows.nRow
- the total number of rows to be deleted.
FitsException
- If an error occurs in the deletion.public void deleteColumnsIndexOne(int column, int len) throws FitsException
FitsException
public void deleteColumnsIndexZero(int column, int len) throws FitsException
FitsException
public void deleteColumnsIndexOne(int column, int len, java.lang.String[] fields) throws FitsException
column
- The one-indexed start column.len
- The number of columns to delete.fields
- Stems for the header fields to be removed
for the table.
FitsException
public void deleteColumnsIndexZero(int column, int len, java.lang.String[] fields) throws FitsException
column
- The zero-indexed start column.len
- The number of columns to delete.fields
- Stems for the header fields to be removed
for the table.
FitsException
public abstract java.lang.String[] columnKeyStems()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |