|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nom.tam.fits.Data nom.tam.fits.RandomGroupsData
public class RandomGroupsData
This class instantiates FITS Random Groups data. Random groups are instantiated as a two-dimensional array of objects. The first dimension of the array is the number of groups. The second dimension is 2. The first object in every row is a one dimensional parameter array. The second element is the n-dimensional data array.
Field Summary |
---|
Fields inherited from class nom.tam.fits.Data |
---|
dataSize, fileOffset, input |
Constructor Summary | |
---|---|
RandomGroupsData()
Create the equivalent of a null data element. |
|
RandomGroupsData(java.lang.Object[][] x)
Create a RandomGroupsData object using the specified object to initialize the data array. |
Method Summary | |
---|---|
protected void |
fillHeader(Header h)
Modify a header to point to this data |
java.lang.Object |
getData()
Return the data array object. |
protected int |
getTrueSize()
Get the size of the actual data element. |
void |
read(ArrayDataInput str)
Read the RandomGroupsData |
void |
write(ArrayDataOutput str)
Write the RandomGroupsData |
Methods inherited from class nom.tam.fits.Data |
---|
getFileOffset, getKernel, getSize, rewrite, rewriteable, setFileOffset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomGroupsData()
public RandomGroupsData(java.lang.Object[][] x)
x
- The initial data array. This should a two-d
array of objects as described above.Method Detail |
---|
protected int getTrueSize()
public void read(ArrayDataInput str) throws FitsException
read
in interface FitsElement
read
in class Data
str
- The input data stream
FitsException
public void write(ArrayDataOutput str) throws FitsException
write
in interface FitsElement
write
in class Data
str
- The output stream on which to write the data.
FitsException
protected void fillHeader(Header h) throws FitsException
Data
FitsException
public java.lang.Object getData()
Data
getData
in class Data
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |