|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnom.tam.fits.BasicHDU
nom.tam.fits.PrimaryHDU
public class PrimaryHDU
FITS primary array 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 |
Constructor Summary | |
---|---|
PrimaryHDU()
Build an empty primary HDU. |
|
PrimaryHDU(Header header)
Create a primary array unit. |
|
PrimaryHDU(ImageHDU img)
Build a primary HDU from an image HDU. |
|
PrimaryHDU(java.lang.Object obj)
Build a primary HDU using the supplied data. |
Method Summary | |
---|---|
void |
info()
Print out some information about this HDU. |
boolean |
isHeader()
Check that this HDU has a valid header. |
static boolean |
isHeader(Header header)
Check that this is a valid primary/non-random groups header. |
Data |
manufactureData()
Create a Data object to correspond to the header description. |
Methods inherited from class nom.tam.fits.BasicHDU |
---|
getAuthor, getAxes, getBitPix, getBlankValue, getBScale, getBUnit, getBZero, getCreationDate, getData, getEpoch, getEquinox, getGroupCount, getHeader, getInstrument, getMaximumValue, getMinimumValue, getObject, getObservationDate, getObserver, getOrigin, getParameterCount, getReference, getSize, getTelescope, getTrimmedString, readData, skipData, skipData, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrimaryHDU(Header header) throws FitsException
header
- the template specifying the primary array.
FitsException
- if there was a problem with the header.public PrimaryHDU(ImageHDU img) throws FitsException
img
- the ImageHDU containing the data.
FitsException
- if there was a problem with the data.public PrimaryHDU() throws FitsException
FitsException
- if there was a problem creating the HDU.public PrimaryHDU(java.lang.Object obj) throws FitsException
obj
- the data used to build the primary HDU.
FitsException
- if there was a problem with the data.Method Detail |
---|
public static boolean isHeader(Header header)
header
- to validate.
true
if this is a simple primary header.public boolean isHeader()
true
if this HDU has a valid header.public Data manufactureData() throws FitsException
FitsException
- if the image data could not be created.public void info()
info
in class BasicHDU
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |