Package nom.tam.fits
Class ImageHDU
- All Implemented Interfaces:
FitsElement
- Direct Known Subclasses:
NullDataHDU
Header/data unit for images. Image HDUs are suitable for storing monolithic regular numerical arrays in 1 to 255
dimensions, such as a
double[]
, float[][]
, or short[][][]
. ((FITS supports up
to 999 dimensions, but Java support maxes at at 255 -- however it's unlikely you'll find this to be a serious
limitation.)- 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
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageData
Deprecated.(for internal use) UseImageData.from(Object)
instead.long
Returns the integer value that signifies blank (missing ornull
) data in an integer image.double
Returns the floating-point increment between adjacent integer values in the image.getBUnit()
Returns the name of the physical unit in which images are represented.double
getBZero()
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).void
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 ImageData
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, 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
-
ImageHDU
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 the image.d
- the data used in the image.
-
-
Method Details
-
encapsulate
@Deprecated public static ImageData encapsulate(Object o) throws IllegalArgumentException, FitsException Deprecated.(for internal use) UseImageData.from(Object)
instead. Will reduce visibility in the future- Parameters:
o
- object to encapsulate- Returns:
- Encapsulate an object as an ImageHDU.
- Throws:
FitsException
- does not actually throw this exceptionIllegalArgumentException
- if the data is not a regular primitive numerical array suitable for an image.
-
isData
Deprecated.(for internal use) Will reduce visibility in the future- Parameters:
o
- The Object being tested.- Returns:
- is this object can be described as a FITS image.
-
isHeader
Deprecated.(for internal use) Will reduce visibility in the futureCheck that this HDU has a valid header for this type.- 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 futurePrepares a data object into which the actual data can be read from an input subsequently or at a later time.- Parameters:
d
- The FITS data content of this HDU- Returns:
- A data object that support reading content from a stream.
- Throws:
FitsException
- if the data could not be prepared to prescriotion.
-
getTiler
Returns the class that can be used to divide this image into tiles that may be processed separately (and in parallel).- Returns:
- image tiler for this image instance.
- See Also:
-
info
Description copied from class:BasicHDU
Print out some information about this HDU. -
getBUnit
Returns the name of the physical unit in which images are represented. -
getBlankValue
Returns the integer value that signifies blank (missing ornull
) data in an integer image.- Overrides:
getBlankValue
in classBasicHDU<ImageData>
- Returns:
- the integer value used for identifying blank / missing data in integer images.
- Throws:
FitsException
- if the header does not specify a blanking value or if it is not appropriate for the type of imge (that is not an integer type image)
-
getBScale
public double getBScale()Returns the floating-point increment between adjacent integer values in the image. Strictly speaking, only integer-type images should define a quantization scaling, but there is no harm in having this value in floating-point images also -- which may be interpreted as a hint for quantization, perhaps. -
getBZero
public double getBZero()Returns the floating-point value that corresponds to an 0 integer value in the image. Strictly speaking, only integer-type images should define a quantization offset, but there is no harm in having this value in floating-point images also -- which may be interpreted as a hint for quantization, perhaps.
-