|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnom.tam.fits.BasicHDU
This abstract class is the parent of all HDU types. It provides basic functionality for an HDU.
| Field Summary | |
static int |
BITPIX_BYTE
|
static int |
BITPIX_DOUBLE
|
static int |
BITPIX_FLOAT
|
static int |
BITPIX_INT
|
static int |
BITPIX_LONG
|
static int |
BITPIX_SHORT
|
(package private) Data |
myData
The associated data unit. |
(package private) Header |
myHeader
The associated header. |
| Constructor Summary | |
BasicHDU(Header header)
Create an HDU with the specified Header and an empty Data section |
|
| Method Summary | |
(package private) boolean |
checkField(String name)
Check if a field is present and if so print it out. |
String |
getAuthor()
Return the name of the person who compiled the information in the data associated with this header. |
int[] |
getAxes()
|
int |
getBitPix()
|
int |
getBlankValue()
|
double |
getBScale()
|
String |
getBUnit()
|
double |
getBZero()
|
Date |
getCreationDate()
Get the FITS file creation date as a Date object. |
Data |
getData()
Get the associated Data object |
double |
getEpoch()
Deprecated. Replaced by getEquinox |
double |
getEquinox()
Get the equinox in years for the celestial coordinate system in which positions given in either the header or data are expressed. |
int |
getGroupCount()
|
Header |
getHeader()
Get the associated header |
String |
getInstrument()
Get the name of the instrument which was used to acquire the data in this FITS file. |
double |
getMaximumValue()
Return the minimum valid value in the array. |
double |
getMinimumValue()
Return the minimum valid value in the array. |
String |
getObject()
Get the name of the observed object in this FITS file. |
Date |
getObservationDate()
Get the FITS file observation date as a Date object. |
String |
getObserver()
Get the name of the person who acquired the data in this FITS file. |
String |
getOrigin()
Get the name of the organization which created this FITS file. |
int |
getParameterCount()
|
String |
getReference()
Return the citation of a reference where the data associated with this header are published. |
int |
getSize()
Get the total size in bytes of the HDU. |
String |
getTelescope()
Get the name of the telescope which was used to acquire the data in this FITS file. |
String |
getTrimmedString(String keyword)
Get the String value associated with keyword. |
abstract void |
info()
Print out some information about this HDU. |
static boolean |
isHeader(Header header)
Check that this is a valid header for the HDU. |
(package private) abstract Data |
manufactureData()
Create a Data object to correspond to the header description. |
void |
readData(BufferedDataInputStream stream)
Read in the Data object for this HDU. |
void |
skipData(BufferedDataInputStream stream)
Skip the Data object for this HDU. |
static void |
skipData(BufferedDataInputStream stream,
Header hdr)
Skip the Data object immediately after the given Header object on the given stream object. |
void |
write(BufferedDataOutputStream stream)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int BITPIX_BYTE
public static final int BITPIX_SHORT
public static final int BITPIX_INT
public static final int BITPIX_LONG
public static final int BITPIX_FLOAT
public static final int BITPIX_DOUBLE
Header myHeader
Data myData
| Constructor Detail |
public BasicHDU(Header header)
header - the Header| Method Detail |
abstract Data manufactureData()
throws FitsException
FitsException - if the Data object could not be created
from this HDU's Header
public static void skipData(BufferedDataInputStream stream,
Header hdr)
throws IOException
stream - the stream which contains the data.
IOException - if the Data object could not be skipped.
public void skipData(BufferedDataInputStream stream)
throws IOException
stream - the stream which contains the data.
IOException - if the Data object could not be skipped.
public void readData(BufferedDataInputStream stream)
throws FitsException
stream - the stream from which the data is read.
FitsException - if the Data object could not be created
from this HDU's Headerpublic Header getHeader()
public Data getData()
public int getSize()
public static boolean isHeader(Header header)
header - to validate.
true if this is a valid header.public abstract void info()
boolean checkField(String name)
public void write(BufferedDataOutputStream stream)
throws FitsException
FitsExceptionpublic String getTrimmedString(String keyword)
keyword.
keyword - the FITS keyword
null or a String with leading/trailing
blanks stripped.
public int getBitPix()
throws FitsException
FitsException
public int[] getAxes()
throws FitsException
FitsExceptionpublic int getParameterCount()
public int getGroupCount()
public double getBScale()
public double getBZero()
public String getBUnit()
public int getBlankValue()
throws FitsException
FitsExceptionpublic Date getCreationDate()
Date object.
null or a Date objectpublic Date getObservationDate()
Date object.
null or a Date objectpublic String getOrigin()
null or a String objectpublic String getTelescope()
null or a String objectpublic String getInstrument()
null or a String objectpublic String getObserver()
null or a String objectpublic String getObject()
null or a String objectpublic double getEquinox()
null or a String objectpublic double getEpoch()
null or a String objectgetEquinox()public String getAuthor()
null or a String objectpublic String getReference()
null or a String objectpublic double getMaximumValue()
public double getMinimumValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||