public abstract class TableHDU extends BasicHDU
BITPIX_BYTE, BITPIX_DOUBLE, BITPIX_FLOAT, BITPIX_INT, BITPIX_LONG, BITPIX_SHORT, isPrimary, myData, myHeader
Modifier and Type | Method and Description |
---|---|
abstract int |
addColumn(Object data) |
int |
addRow(Object[] newRow) |
int |
findColumn(String colName) |
Object |
getColumn(int col) |
Object |
getColumn(String colName) |
String |
getColumnFormat(int index)
Get the FITS type of a column in the table.
|
String |
getColumnName(int index)
Get the name of a column in the table.
|
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
|
Object[] |
getRow(int row) |
void |
setColumn(int col,
Object newCol) |
void |
setColumn(String colName,
Object newCol) |
void |
setColumnName(int index,
String name,
String comment) |
void |
setCurrentColumn(int col) |
void |
setElement(int row,
int col,
Object element) |
void |
setRow(int row,
Object[] newRow) |
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
public Object[] getRow(int row) throws FitsException
FitsException
public Object getColumn(String colName) throws FitsException
FitsException
public Object getColumn(int col) throws FitsException
FitsException
public Object getElement(int row, int col) throws FitsException
FitsException
public void setRow(int row, Object[] newRow) throws FitsException
FitsException
public void setColumn(String colName, Object newCol) throws FitsException
FitsException
public void setColumn(int col, Object newCol) throws FitsException
FitsException
public void setElement(int row, int col, Object element) throws FitsException
FitsException
public int addRow(Object[] newRow) throws FitsException
FitsException
public int findColumn(String colName)
public abstract int addColumn(Object data) throws FitsException
FitsException
public int getNCols()
public int getNRows()
public String getColumnName(int index)
index
- The 0-based column index.FitsException
- if an invalid index was requested.public void setColumnName(int index, String name, String comment) throws FitsException
FitsException
public String getColumnFormat(int index) throws FitsException
FitsException
- if an invalid index was requested.public void setCurrentColumn(int col)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.