Package nom.tam.fits
Class UndefinedHDU
- All Implemented Interfaces:
FitsElement
Holder for unknown data types.
-
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
ConstructorsConstructorDescriptionUndefinedHDU
(Header h, UndefinedData d) Build an image HDU using the supplied data. -
Method Summary
Modifier and TypeMethodDescriptionstatic UndefinedData
void
info
(PrintStream stream) Print out some information about this HDU.static boolean
Check if we can use the following object as in an Undefined FITS block.static boolean
Check if we can find the length of the data for this header.static Data
manufactureData
(Header hdr) static Header
Methods inherited from class nom.tam.fits.BasicHDU
addValue, addValue, addValue, addValue, addValue, addValue, addValue, addValue, canBePrimary, 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, setPrimaryHDU, write
-
Constructor Details
-
UndefinedHDU
Build an image HDU using the supplied data.- Parameters:
h
- the header for this HDUd
- the data used to build the image.- Throws:
FitsException
- if there was a problem with the data.
-
-
Method Details
-
encapsulate
- Parameters:
o
- the object to encapsulate- Returns:
- Encapsulate an object as an ImageHDU.
- Throws:
FitsException
- if the operation failed
-
isData
Check if we can use the following object as in an Undefined FITS block. We allow this so long as computeLSize can get a size. Note that computeLSize may be wrong!- Parameters:
o
- The Object being tested.- Returns:
- true if o can be an Undefined FITS block.
-
isHeader
Check if we can find the length of the data for this header.- 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.
-
info
Description copied from class:BasicHDU
Print out some information about this HDU.- Specified by:
info
in classBasicHDU<UndefinedData>
- Parameters:
stream
- the printstream to write the info on
-