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 BasicHDU
BITPIX_BYTE, BITPIX_DOUBLE, BITPIX_FLOAT, BITPIX_INT, BITPIX_LONG, BITPIX_SHORTModifier and TypeFieldDescriptionstatic final intDeprecated.static final intDeprecated.UseBitpix.VALUE_FOR_DOUBLEinstead.static final intDeprecated.UseBitpix.VALUE_FOR_FLOATinstead.static final intDeprecated.UseBitpix.VALUE_FOR_INTinstead.static final intDeprecated.UseBitpix.VALUE_FOR_LONGinstead.static final intDeprecated.UseBitpix.VALUE_FOR_SHORTinstead. -
Constructor Summary
ConstructorsConstructorDescriptionUndefinedHDU(Header h, UndefinedData d) Deprecated.(for internal use) Its visibility should be reduced to package level in the future. -
Method Summary
Modifier and TypeMethodDescriptionstatic UndefinedDataDeprecated.(for internal use) Will reduce visibility in the futurevoidinfo(PrintStream stream) Print out some information about this HDU.static booleanDeprecated.(for internal use) Will reduce visibility in the futurestatic booleanDeprecated.(for internal use) Will reduce visibility in the futurestatic UndefinedDatamanufactureData(Header hdr) Deprecated.(for internal use) Will reduce visibility in the futurestatic HeaderDeprecated.(for internal use) Will reduce visibility in the futureMethods inherited from class 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, writeModifier and TypeMethodDescriptionvoidAdd information to the header.voidAdd information to the header.voidAdd information to the header.voidAdd information to the header.voidaddValue(IFitsHeader key, boolean val) Add information to the header.voidaddValue(IFitsHeader key, double val) Add information to the header.voidaddValue(IFitsHeader key, int val) Add information to the header.voidaddValue(IFitsHeader key, String val) Add information to the header.longDeprecated.UseBasicHDU.verifyIntegrity()instead when appropriate.card(IFitsHeader key) Returns a header card builder for filling the header cards using the builder pattern.Return the name of the person who compiled the information in the data associated with this header.int[]getAxes()In FITS files the index represented by NAXIS1 is the index that changes most rapidly.Return the Bitpix enum type for this HDU.final intDeprecated.(for internal use) Will reduce visibility or remove entirely in the future.longDeprecated.This is only applicable toImageHDUorRandomGroupsHDUwith integer type data and not for other HDU or data types.doubleDeprecated.This is only applicable toImageHDUorRandomGroupsHDUwith integer type data and not for other HDU or data types.getBUnit()Deprecated.This is only applicable toImageHDUorRandomGroupsHDUand not for other HDU or data types.doublegetBZero()Deprecated.This is only applicable toImageHDUorRandomGroupsHDUwith integer type data and not for other HDU or data types.Get the FITS file creation date as aDateobject.getData()Returns the data component of this HDU.static NullDataHDUDeprecated.UseNullDataHDUinstead.doublegetEpoch()Deprecated.useBasicHDU.getEquinox()insteaddoubleGet the equinox in years for the celestial coordinate system in which positions given in either the header or data are expressed.longReturns the byte offset at which this element starts ina file.intDeprecated.Should not be exposed outside ofRandomGroupsHDU-- will reduce visibility in the future/Returns the FITS header component of this HDUGet the name of the instrument which was used to acquire the data in this FITS file.final ObjectReturns the underlying Java object (usually an array of some type) that stores the data internally.doubleReturn the minimum valid value in the array.doubleReturn the minimum valid value in the array.Get the name of the observed object in this FITS file.Get the FITS file observation date as aDateobject.Get the name of the person who acquired the data in this FITS file.Get the name of the organization which created this FITS file.intDeprecated.Should not be exposed outside ofRandomGroupsHDU-- will reduce visibility in the future.Return the citation of a reference where the data associated with this header are published.longgetSize()Returns the size of this elements in the FITS representation.longDeprecated.Not very useful, since it has no meaning other than ensuring that the checksum of the HDU yields(int) -1(that is0xffffffff) after including this value for the CHECKSUM keyword in the header.longReturns the FITS checksum for the HDU's data that is stored in the header of this HDU under theDATASUMkeyword.Get the name of the telescope which was used to acquire the data in this FITS file.getTrimmedString(String keyword) Deprecated.(for internal use) Will reduced visibility in the future.getTrimmedString(IFitsHeader keyword) Deprecated.(for internal use) Will reduced visibility in the future.voidread(ArrayDataInput stream) Read a FITS element from the input, starting at the current position.booleanreset()Reset the input stream to point to the beginning of this elementvoidrewrite()Rewrite the contents of the element in place.booleanChecks if we can write this element back to its source.voidComputes the checksums for this HDU and stores theCHECKSUMandDATASUMvalues in the header.booleanChecks that the HDUs data checksum is correct.booleanChecks the HDU's integrity, using the recorded CHECKSUM and/or DATASUM keywords if present.voidwrite(ArrayDataOutput stream) Writes the contents of the element to a data sink, adding padding as necessary if the element (such as a header or data segment) is expected to complete the FITS block of 2880 bytes.
-
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:
trueif 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:
trueif 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:BasicHDUPrint out some information about this HDU.- Specified by:
infoin classBasicHDU<UndefinedData>- Parameters:
stream- the printstream to write the info on
-
Bitpix.VALUE_FOR_BYTEinstead.