public class ImageHDU extends BasicHDU
BITPIX_BYTE, BITPIX_DOUBLE, BITPIX_FLOAT, BITPIX_INT, BITPIX_LONG, BITPIX_SHORT, isPrimary, myData, myHeader
Constructor and Description |
---|
ImageHDU(Header h,
Data d)
Build an image HDU using the supplied data.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canBePrimary()
Indicate that Images can appear at the beginning of a FITS dataset
|
static Data |
encapsulate(Object o)
Encapsulate an object as an ImageHDU.
|
ImageTiler |
getTiler() |
void |
info()
Print out some information about this HDU.
|
static boolean |
isData(Object o)
Check if this object can be described as a FITS image.
|
static boolean |
isHeader(Header hdr)
Check that this HDU has a valid header for this type.
|
Data |
manufactureData()
Create a Data object to correspond to the header description.
|
static Data |
manufactureData(Header hdr) |
static Header |
manufactureHeader(Data d)
Create a header that describes the given
image data.
|
protected void |
setPrimaryHDU(boolean status)
Change the Image from/to primary
|
addValue, addValue, addValue, addValue, 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, read, readData, rewrite, rewriteable, skipData, skipData, write
public ImageHDU(Header h, Data d) throws FitsException
obj
- the data used to build the image.FitsException
- if there was a problem with the data.protected boolean canBePrimary()
protected void setPrimaryHDU(boolean status)
public static boolean isHeader(Header hdr)
true
if this HDU has a valid header.public static boolean isData(Object o)
o
- The Object being tested.public Data manufactureData() throws FitsException
FitsException
- if the image extension could not be created.public static Data manufactureData(Header hdr) throws FitsException
FitsException
public static Header manufactureHeader(Data d) throws FitsException
o
- The image to be described.FitsException
- if the object does not contain
valid image data.public static Data encapsulate(Object o) throws FitsException
FitsException
public ImageTiler getTiler()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.