public class AsciiTableHDU extends TableHDU
BITPIX_BYTE, BITPIX_DOUBLE, BITPIX_FLOAT, BITPIX_INT, BITPIX_LONG, BITPIX_SHORT, isPrimary, myData, myHeader
Constructor and Description |
---|
AsciiTableHDU(Header h,
Data d)
Create an ascii table header/data unit.
|
Modifier and Type | Method and Description |
---|---|
int |
addColumn(Object newCol)
Add a column
|
static Data |
encapsulate(Object o) |
Data |
getData()
Get the associated Data object
|
void |
info()
Print a little information about the data set.
|
static boolean |
isData(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,
String newNull)
Set the null string for a column
|
addRow, findColumn, getColumn, getColumn, getColumnFormat, getColumnName, getElement, getNCols, getNRows, getRow, setColumn, setColumn, setColumnName, setCurrentColumn, setElement, setRow
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
public AsciiTableHDU(Header h, Data d)
header
- the template specifying the ascii table.FitsException
- if there was a problem with the header.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(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(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, String newNull)
public int addColumn(Object newCol) throws FitsException
addColumn
in class TableHDU
FitsException
public void info()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.