|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteap.fits.FitsHDU
Represents the basic building block of a FITS file - the "Header Data Unit". Each HDU consists of a header containing metadata and a data section containing the actual data (e.g. a table or image).
| Constructor Summary | |
FitsHDU()
Create an empty HDU with no data and no keywords in the header. |
|
FitsHDU(FitsHeader header,
FitsData data)
Create an HDU with the given header and data. |
|
| Method Summary | |
int |
blockCount()
returns the number of blocks in both the header and data sections |
FitsData |
getData()
returns the data part of this HDU. |
FitsHeader |
getHeader()
returns the header part of this HDU |
void |
initData()
internally creates an object to represent the data part of the HDU which corresponds to the header of this HDU. |
String |
name()
returns the result of calling FitsHeader.getName() for the header
of this HDU. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FitsHDU()
getHeader() to obtain the header object
initData() to create the data section internally
getData() to obtain the newly created data object
public FitsHDU(FitsHeader header,
FitsData data)
FitsHDU() and then
initData().
header - the header object to use in this HDUdata - the data object to use in this HDU| Method Detail |
public FitsHeader getHeader()
public FitsData getData()
initData(), or you did not require the data
to be read when you obtained the HDU from the FitsFile.
FitsFile.getHDU(int, int)public String name()
FitsHeader.getName() for the header
of this HDU.
public int blockCount()
NullPointerException - if the data part is not initialized.
public void initData()
throws FitsException
FitsException - if the header is improperly formed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||