|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.uol.aig.fts.io.NDFIO
public class NDFIO
Read an interferogram file and create a spectrum file.
Constructor Summary | |
---|---|
NDFIO(java.lang.String interferogramFile,
java.lang.String spectrumFile)
Constructor |
Method Summary | |
---|---|
void |
closeSpectrum()
close the handle of the spectrum file |
int |
get_arrayLength()
the size of the array in y-axis |
int |
get_arrayWidth()
get the size of the array in x-axis |
long[] |
get_ifgmCubeShape()
get the dimension of the interferogram cube. |
long |
get_ifgmCubeSize()
get the total number of the data in the interferogram cube. |
java.lang.String |
get_ifgmType()
get the data type of the interferogram cube. |
int |
get_npoints_ifgm()
get the number of the data of one interferogram |
java.lang.Object |
getInterferogram()
get the whole interferogram cube as 1-D data array stored in Fortran format |
double[] |
getInterferogram(int indexOfWidth,
int indexOfLength)
get the specified inteferogram |
double[] |
getMirrorPos()
get the mirror position from the interferogram file |
uk.ac.starlink.hds.HDSObject |
getSpectrumHandle()
return the HDSObject handle of the spectrum file for further processing |
void |
newDataToSpectrum(java.lang.String compositeName,
java.lang.Object obj)
create a primitive data in the spectrum file |
void |
saveSpectrum(double[] spectrum,
long[] dims)
save the spectrum cube to the spectrum file |
void |
saveSpectrum(float[] spectrum,
long[] dims)
save the spectrum cube to the spectrum file |
void |
saveSpectrum(int[] spectrum,
long[] dims)
save the spectrum cube to the spectrum file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NDFIO(java.lang.String interferogramFile, java.lang.String spectrumFile)
interferogramFile
- the absolute path of an interferogram file for data reductionspectrumFile
- the absolute path of the spectrum file from data reductionMethod Detail |
---|
public double[] getMirrorPos()
public java.lang.Object getInterferogram()
public java.lang.String get_ifgmType()
public long[] get_ifgmCubeShape()
public long get_ifgmCubeSize()
public int get_arrayWidth()
public int get_arrayLength()
public int get_npoints_ifgm()
public double[] getInterferogram(int indexOfWidth, int indexOfLength)
indexOfWidth
- the index of the array pixel in x-axis starting from 0.indexOfLength
- the index of the array pixel in y-axis starting from 0.public void saveSpectrum(int[] spectrum, long[] dims)
spectrum
- the spectrum cube in 1-D Fortran data orderdims
- the dimension information of the spectrumpublic void saveSpectrum(float[] spectrum, long[] dims)
spectrum
- the spectrum cube in 1-D Fortran data orderdims
- the dimension information of the spectrumpublic uk.ac.starlink.hds.HDSObject getSpectrumHandle()
public void saveSpectrum(double[] spectrum, long[] dims)
spectrum
- the spectrum cube in 1-D Fortran formatdims
- the dimension information of the spectrumpublic void closeSpectrum()
public void newDataToSpectrum(java.lang.String compositeName, java.lang.Object obj)
compositeName
- the composite name of the new data separated by #, e.g., XYZ#ABC#XNAMEobj
- the value of this new data. Possible data types: String, int, double.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |