|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eso.fits.FitsData
public class FitsData
FitsData class represents a FITS data unit
Field Summary | |
---|---|
protected int |
bitpix
|
protected boolean |
changeData
|
protected byte[] |
dataArray
|
protected java.io.RandomAccessFile |
dataFile
|
protected long |
dataOffset
|
protected boolean |
isRAFile
|
protected int[] |
naxis
|
protected int |
noGroup
|
protected int |
noParm
|
protected long |
size
|
protected int |
type
|
Constructor Summary | |
---|---|
FitsData(FitsHeader header,
java.io.DataInput file,
boolean sflag)
Constructor for FitsData class given a FITS header with associated data unit as a file. |
|
FitsData(int bitpix,
int[] nax)
Constructor for FitsData class given the size of the data matrix. |
Method Summary | |
---|---|
void |
closeFile()
Closes the associated data file |
FitsHeader |
getHeader()
Create and return a minimum FITS header for data Matrix. |
int[] |
getNaxis()
Gets the dimentions of the axes. |
int |
getNoAxes()
Retrives number of axes defined for the data unit (ref. |
int |
getType()
Gets FITS type of data unit. |
void |
writeFile(java.io.DataOutput file)
Write data martix to DataOutput stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int type
protected int[] naxis
protected long size
protected int bitpix
protected int noParm
protected int noGroup
protected boolean changeData
protected java.io.RandomAccessFile dataFile
protected long dataOffset
protected byte[] dataArray
protected boolean isRAFile
Constructor Detail |
---|
public FitsData(FitsHeader header, java.io.DataInput file, boolean sflag) throws FitsException
header
- FitsHeader object with the image headerfile
- RandomAccess file positioned at the start of the
associated data unitsflag
- Flag for storing data matrix internally
FitsException
public FitsData(int bitpix, int[] nax) throws FitsException
bitpix
- value of FITS BITPIX keyword bits/pixelnax
- Integer array defining the dimensions of the
data matrix or for BINTABLE the heap size
FitsException
Method Detail |
---|
public FitsHeader getHeader()
public void writeFile(java.io.DataOutput file) throws java.io.IOException, FitsException
file
- DataOutput stream to which data are written
IOException,
- FitsException
java.io.IOException
FitsException
public void closeFile()
public int getNoAxes()
public int getType()
public int[] getNaxis()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |