Package nom.tam.fits
Class UndefinedHDU
- All Implemented Interfaces:
FitsElement
A HDU that holds a type of data we don't recognise. We can still access that data in its raw binary form, and the
user can interpret the headers to make sense of particular but not (yet) supported FITS HDU types.
- See Also:
-
Field Summary
Fields inherited from class nom.tam.fits.BasicHDU
BITPIX_BYTE, BITPIX_DOUBLE, BITPIX_FLOAT, BITPIX_INT, BITPIX_LONG, BITPIX_SHORT
-
Constructor Summary
ConstructorDescriptionUndefinedHDU
(Header h, UndefinedData d) Deprecated.(for internal use) Its visibility should be reduced to package level in the future. -
Method Summary
Modifier and TypeMethodDescriptionstatic UndefinedData
Deprecated.(for internal use) Will reduce visibility in the futurevoid
info
(PrintStream stream) Print out some information about this HDU.static boolean
Deprecated.(for internal use) Will reduce visibility in the futurestatic boolean
Deprecated.(for internal use) Will reduce visibility in the futurestatic UndefinedData
manufactureData
(Header hdr) Deprecated.(for internal use) Will reduce visibility in the futurestatic Header
Deprecated.(for internal use) Will reduce visibility in the futureMethods inherited from class nom.tam.fits.BasicHDU
addValue, addValue, addValue, addValue, addValue, addValue, addValue, addValue, calcChecksum, card, getAuthor, getAxes, getBitpix, getBitPix, getBlankValue, getBScale, getBUnit, getBZero, getCreationDate, getData, getDummyHDU, getEpoch, getEquinox, getFileOffset, getGroupCount, getHeader, getInstrument, getKernel, getMaximumValue, getMinimumValue, getObject, getObservationDate, getObserver, getOrigin, getParameterCount, getReference, getSize, getStoredChecksum, getStoredDatasum, getTelescope, getTrimmedString, getTrimmedString, read, reset, rewrite, rewriteable, setChecksum, verifyDataIntegrity, verifyIntegrity, write
-
Constructor Details
-
UndefinedHDU
Deprecated.(for internal use) Its visibility should be reduced to package level in the future.Build an image HDU using the supplied data.- Parameters:
h
- the header for this HDUd
- the data used to build the image.
-
-
Method Details
-
encapsulate
Deprecated.(for internal use) Will reduce visibility in the future- Parameters:
o
- the object to encapsulate- Returns:
- Encapsulate an object as an UndefinedHDU.
- Throws:
FitsException
- if the operation failed
-
isData
Deprecated.(for internal use) Will reduce visibility in the futureChecks if we can use the following object as in an Undefined FITS block. Onlybyte[]
arrays can be represented in undefined HDUs.- Parameters:
o
- a data object- Returns:
true
if the object is a rawbyte[]
array, otherwisefalse
. We cannot wrap arbitrary data objects since we do not have a generic recipe for converting these into binary form.
-
isHeader
Deprecated.(for internal use) Will reduce visibility in the futureChecks if the header is for a HDU we don't really know how to handle. We can still retrieve and store the binary tata of the HDU as a rawbyte[]
image.- Parameters:
hdr
- header to check.- Returns:
true
if this HDU has a valid header.
-
manufactureData
Deprecated.(for internal use) Will reduce visibility in the futurePrepares a data object into which the actual data can be read from an input subsequently or at a later time.- Parameters:
hdr
- The FITS header that describes the data- Returns:
- A data object that support reading content from a stream.
- Throws:
FitsException
- if the data could not be prepared to prescriotion.
-
manufactureHeader
Deprecated.(for internal use) Will reduce visibility in the future- 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
-