Class NullDataHDU
- All Implemented Interfaces:
FitsElement
A class of HDU that contains only a header only with no associated data. Such HDUs are commonly used as the primary
HDU in FITS files where the leading data is not an image, since only images may constitute the primary HDU.
- Since:
- 1.18
- Author:
- Attila Kovacs
- 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
ConstructorsConstructorDescriptionInstantiates a new HDU with a default header and no associated data.NullDataHDU(Header myHeader) Instantiates a new HDU with only the supplied header and no associated data. -
Method Summary
Modifier and TypeMethodDescriptiongetData()Returns the data component of this HDU.voidinfo(PrintStream stream) Print out some information about this HDU.Methods inherited from class ImageHDU
encapsulate, getBlankValue, getBScale, getBUnit, getBZero, getTiler, isData, isHeader, manufactureData, manufactureHeaderModifier and TypeMethodDescriptionstatic ImageDataDeprecated.(for internal use) UseImageData.from(Object)instead.longReturns the integer value that signifies blank (missing ornull) data in an integer image.doubleReturns the floating-point increment between adjacent integer values in the image.getBUnit()Returns the name of the physical unit in which images are represented.doublegetBZero()Returns the floating-point value that corresponds to an 0 integer value in the image.getTiler()Returns the class that can be used to divide this image into tiles that may be processed separately (and in parallel).static booleanDeprecated.(for internal use) Will reduce visibility in the futurestatic booleanDeprecated.(for internal use) Will reduce visibility in the futurestatic ImageDatamanufactureData(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, getCreationDate, 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.Get the FITS file creation date as aDateobject.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
-
NullDataHDU
public NullDataHDU()Instantiates a new HDU with a default header and no associated data. -
NullDataHDU
Instantiates a new HDU with only the supplied header and no associated data.- Parameters:
myHeader- the FITS header for this HDU
-
-
Method Details
Bitpix.VALUE_FOR_BYTEinstead.