Package nom.tam.fits
Class ImageHDU
- All Implemented Interfaces:
FitsElement
FITS image 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Indicate that Images can appear at the beginning of a FITS datasetstatic ImageData
getTiler()
void
info
(PrintStream stream) Print out some information about this HDU.static boolean
static boolean
Check that this HDU has a valid header for this type.static Data
manufactureData
(Header hdr) static Header
protected void
setPrimaryHDU
(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
-
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:
true
if 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 -
getTiler
-
info
Print out some information about this HDU. -
setPrimaryHDU
protected void setPrimaryHDU(boolean status) Change the Image from/to primary
-