Class UndefinedHDU
- All Implemented Interfaces:
FitsElement
Holder for unknown data types.
-
Field Summary
Fields inherited from class 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 UndefinedDatavoidinfo(PrintStream stream) Print out some information about this HDU.static booleanCheck if we can use the following object as in an Undefined FITS block.static booleanCheck if we can find the length of the data for this header.static DatamanufactureData(Header hdr) static HeaderMethods inherited from class 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:
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.
-
info
Description copied from class:BasicHDUPrint out some information about this HDU.- Specified by:
infoin classBasicHDU<UndefinedData>- Parameters:
stream- the printstream to write the info on
-