|
|||||||||
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 nom.tam.fits.AsciiTableHDU
public class AsciiTableHDU
FITS ASCII table header/data unit
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 |
Constructor Summary | |
---|---|
AsciiTableHDU(Header h,
Data d)
Create an ascii table header/data unit. |
Method Summary | |
---|---|
int |
addColumn(java.lang.Object newCol)
Add a column |
static Data |
encapsulate(java.lang.Object o)
|
Data |
getData()
Get the associated Data object |
void |
info()
Print a little information about the data set. |
static boolean |
isData(java.lang.Object o)
Check if this data is usable as an ASCII table. |
boolean |
isHeader()
Check that this HDU has a valid header. |
static boolean |
isHeader(Header header)
Check that this is a valid ascii table header. |
boolean |
isNull(int row,
int col)
See if an element is null |
Data |
manufactureData()
Create a Data object to correspond to the header description. |
static Data |
manufactureData(Header hdr)
Create a Data object to correspond to the header description. |
static Header |
manufactureHeader(Data d)
|
void |
readData(ArrayDataInput stream)
Skip the ASCII table and throw an exception. |
void |
setNull(int row,
int col,
boolean flag)
Mark an entry as null. |
void |
setNullString(int col,
java.lang.String newNull)
Set the null string for a column |
Methods inherited from class nom.tam.fits.TableHDU |
---|
addRow, findColumn, getColumn, getColumn, getColumnFormat, getColumnName, getElement, getNCols, getNRows, getRow, setColumn, setColumn, setColumnName, setCurrentColumn, setElement, setRow |
Methods inherited from class nom.tam.fits.BasicHDU |
---|
addValue, addValue, addValue, addValue, getAuthor, getAxes, getBitPix, getBlankValue, getBScale, getBUnit, getBZero, getCreationDate, getDummyHDU, getEpoch, getEquinox, getFileOffset, getGroupCount, getHeader, getInstrument, getKernel, getMaximumValue, getMinimumValue, getObject, getObservationDate, getObserver, getOrigin, getParameterCount, getReference, getSize, getTelescope, getTrimmedString, read, rewrite, rewriteable, skipData, skipData, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsciiTableHDU(Header h, Data d)
header
- the template specifying the ascii table.
FitsException
- if there was a problem with the header.Method Detail |
---|
public static boolean isHeader(Header header)
header
- to validate.
true
if this is an ascii table header.public boolean isHeader()
true
if this HDU has a valid header.public static boolean isData(java.lang.Object o)
public static Data manufactureData(Header hdr) throws FitsException
FitsException
- if the Data object could not be created
from this HDU's Headerpublic Data manufactureData() throws FitsException
BasicHDU
FitsException
- if the Data object could not be created
from this HDU's Headerpublic static Header manufactureHeader(Data d) throws FitsException
FitsException
public static Data encapsulate(java.lang.Object o) throws FitsException
FitsException
public void readData(ArrayDataInput stream) throws FitsException
readData
in class BasicHDU
stream
- the stream from which the data is read.
FitsException
- if the Data object could not be created
from this HDU's Headerpublic void setNull(int row, int col, boolean flag)
public boolean isNull(int row, int col)
public void setNullString(int col, java.lang.String newNull)
public int addColumn(java.lang.Object newCol) throws FitsException
addColumn
in class TableHDU
FitsException
public void info()
info
in class BasicHDU
public Data getData()
BasicHDU
getData
in class BasicHDU
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |