Package nom.tam.fits
Class ImageHDU
- All Implemented Interfaces:
FitsElement
FITS image header/data unit
-
Field Summary
FieldsFields inherited from class nom.tam.fits.BasicHDU
BITPIX_BYTE, BITPIX_DOUBLE, BITPIX_FLOAT, BITPIX_INT, BITPIX_LONG, BITPIX_SHORT, isPrimary, myData, myHeader -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanIndicate that Images can appear at the beginning of a FITS datasetstatic ImageDatagetTiler()voidinfo(PrintStream stream) Print out some information about this HDU.static booleanstatic booleanCheck that this HDU has a valid header for this type.static DatamanufactureData(Header hdr) static Headerprotected voidsetPrimaryHDU(boolean status) Change the Image from/to primaryMethods inherited from class nom.tam.fits.BasicHDU
addValue, addValue, addValue, addValue, addValue, addValue, addValue, addValue, card, getAuthor, getAxes, getBitPix, getBlankValue, getBScale, getBUnit, getBZero, getCreationDate, getData, getDummyHDU, getEpoch, getEquinox, getFileOffset, getGroupCount, getHeader, getInstrument, getKernel, getMaximumValue, getMinimumValue, getObject, getObservationDate, getObserver, getOrigin, getParameterCount, getReference, getSize, getTelescope, getTrimmedString, getTrimmedString, read, reset, rewrite, rewriteable, saveReplaceCard, write
-
Field Details
-
LOG
-
-
Constructor Details
-
ImageHDU
Build an image HDU using the supplied data.- Parameters:
h- the header for the image.d- the data used in the image.- Throws:
FitsException- if there was a problem with the data.
-
-
Method Details
-
encapsulate
- Parameters:
o- object to encapsulate- Returns:
- Encapsulate an object as an ImageHDU.
- Throws:
FitsException- if the operation failed
-
isData
- Parameters:
o- The Object being tested.- Returns:
- is this object can be described as a FITS image.
-
isHeader
Check that this HDU has a valid header for this type.- Parameters:
hdr- header to check- Returns:
trueif this HDU has a valid header.
-
manufactureData
- Throws:
FitsException
-
manufactureHeader
- Parameters:
d- The image to be described.- Returns:
- Create a header that describes the given image data.
- Throws:
FitsException- if the object does not contain valid image data.
-
canBePrimary
protected boolean canBePrimary()Indicate that Images can appear at the beginning of a FITS dataset- Overrides:
canBePrimaryin classBasicHDU<ImageData>- Returns:
- Indicate whether HDU can be primary HDU. This method must be overriden in HDU types which can appear at the beginning of a FITS file.
-
getTiler
-
info
Print out some information about this HDU. -
setPrimaryHDU
protected void setPrimaryHDU(boolean status) Change the Image from/to primary- Overrides:
setPrimaryHDUin classBasicHDU<ImageData>- Parameters:
status- value to set
-