public class ImageHDU extends BasicHDU<ImageData>
BITPIX_BYTE, BITPIX_DOUBLE, BITPIX_FLOAT, BITPIX_INT, BITPIX_LONG, BITPIX_SHORT, isPrimary, myData, myHeader
Constructor and Description |
---|
ImageHDU(Header h,
ImageData 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 ImageData |
encapsulate(Object o) |
StandardImageTiler |
getTiler() |
void |
info(PrintStream stream)
Print out some information about this HDU.
|
static boolean |
isData(Object o) |
static boolean |
isHeader(Header hdr)
Check that this HDU has a valid header for this type.
|
static Data |
manufactureData(Header hdr) |
static Header |
manufactureHeader(Data d) |
protected void |
setPrimaryHDU(boolean status)
Change the Image from/to primary
|
addValue, addValue, addValue, addValue, addValue, addValue, addValue, addValue, card, 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, getTrimmedString, read, reset, rewrite, rewriteable, saveReplaceCard, write
public ImageHDU(Header h, ImageData d) throws FitsException
h
- the header for the image.d
- the data used in the image.FitsException
- if there was a problem with the data.public static ImageData encapsulate(Object o) throws FitsException
o
- object to encapsulateFitsException
- if the operation failedpublic static boolean isData(Object o)
o
- The Object being tested.public static boolean isHeader(Header hdr)
hdr
- header to checktrue
if this HDU has a valid header.public static Data manufactureData(Header hdr) throws FitsException
FitsException
public static Header manufactureHeader(Data d) throws FitsException
d
- The image to be described.FitsException
- if the object does not contain valid image data.protected boolean canBePrimary()
public StandardImageTiler getTiler()
public void info(PrintStream stream)
protected void setPrimaryHDU(boolean status)
status
- value to setCopyright © 1996–2016 nom-tam-fits. All rights reserved.