|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eso.fits.FitsData org.eso.fits.FitsTable
public class FitsTable
FitsTable class represents a FITS table extension in either ASCII or BINARY table format. It is a collection of FitsColumn object giving acess to the table data.
Field Summary |
---|
Fields inherited from class org.eso.fits.FitsData |
---|
bitpix, changeData, dataArray, dataFile, dataOffset, isRAFile, naxis, noGroup, noParm, size, type |
Constructor Summary | |
---|---|
FitsTable(FitsHeader header,
java.io.DataInput file,
boolean sflag)
Constructor for FitsTable class given a FITS table extension header with associated data unit as a file. |
Method Summary | |
---|---|
void |
addColumn(FitsColumn column)
Add column to table. |
FitsColumn |
getColumn(int index)
Get column with a given index in the table. |
FitsColumn |
getColumn(java.lang.String label)
Get column with a given label. |
FitsHeader |
getHeader()
Create and return a minimum FITS header for data Matrix. |
int |
getNoColumns()
Retrieve number of columns in current table. |
int |
getNoRows()
Get total number of rows defined for the table (see NAXIS2). |
void |
insertColumnAt(FitsColumn column,
int index)
Insert column in table at specified position. |
void |
removeColumnAt(int index)
Remove column from table. |
Methods inherited from class org.eso.fits.FitsData |
---|
closeFile, getNaxis, getNoAxes, getType, writeFile |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FitsTable(FitsHeader header, java.io.DataInput file, boolean sflag) throws FitsException
header
- FitsHeader object with the table extension headerfile
- RandomAccess file positioned at the start of the
associated data unitsflag
- Flag for storing data matrix internally
FitsException
Method Detail |
---|
public FitsHeader getHeader()
getHeader
in class FitsData
public void addColumn(FitsColumn column)
column
- FitsColumn to be appended to the tablepublic void insertColumnAt(FitsColumn column, int index)
column
- FitsColumn to be inserted into the tableindex
- position where to insert columnpublic void removeColumnAt(int index)
index
- position of column to be removedpublic FitsColumn getColumn(int index)
index
- position of column in tablepublic FitsColumn getColumn(java.lang.String label)
label
- string with column labelpublic int getNoColumns()
public int getNoRows()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |