|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.splat.data.AbstractSpecDataImpl
uk.ac.starlink.splat.data.NDFSpecDataImpl
public class NDFSpecDataImpl
NDFSpecDataImpl - implementation of SpecDataImpl to access NDF spectra.
Field Summary | |
---|---|
protected String |
fullName
Original specification of NDF. |
protected nom.tam.fits.Header |
header
Reference to the FITS headers. |
protected NDFJ |
theNDF
Reference to NDFJ object for accessing the NDF. |
Fields inherited from class uk.ac.starlink.splat.data.AbstractSpecDataImpl |
---|
dataLabel, dataUnits, parentImpl |
Constructor Summary | |
---|---|
NDFSpecDataImpl(String fileName)
Constructor - open a NDF by file name. |
|
NDFSpecDataImpl(String fileName,
SpecData source)
Constructor. |
Method Summary | |
---|---|
protected void |
createTempClone(SpecData source)
Create an temporary NDF that is a clone of an existing spectrum. |
protected void |
finalize()
Finalise object. |
uk.ac.starlink.ast.FrameSet |
getAst()
Return reference to NDF AST frameset. |
double[] |
getData()
Return a copy of the spectrum data values. |
double[] |
getDataErrors()
Return a copy of the spectrum data errors. |
String |
getDataFormat()
Return the data format. |
int[] |
getDims()
Return the NDF shape. |
nom.tam.fits.Header |
getFitsHeaders()
Return any FITS headers in the NDF as proper FITS header. |
String |
getFullName()
Return the full name of the NDF. |
String |
getProperty(String key)
Return a keyed value from the NDF character components or FITS headers. |
String |
getShortName()
Return a symbolic name. |
NDFJ |
getTempCopy()
Return a copy of this NDF. |
protected void |
open(String fileName)
Open an NDF. |
void |
save()
Save the spectrum to disk-file. |
Methods inherited from class uk.ac.starlink.splat.data.AbstractSpecDataImpl |
---|
getColumnNames, getCoordinateColumnName, getDataColumnName, getDataErrorColumnName, getDataLabel, getDataUnits, getParentImpl, isFITSHeaderSource, setCoordinateColumnName, setDataColumnName, setDataErrorColumnName, setDataLabel, setDataUnits, setParentImpl |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected NDFJ theNDF
protected String fullName
protected nom.tam.fits.Header header
Constructor Detail |
---|
public NDFSpecDataImpl(String fileName) throws SplatException
SplatException
public NDFSpecDataImpl(String fileName, SpecData source) throws SplatException
SplatException
Method Detail |
---|
public double[] getData()
getData
in interface SpecDataImpl
getData
in class AbstractSpecDataImpl
public double[] getDataErrors()
getDataErrors
in interface SpecDataImpl
getDataErrors
in class AbstractSpecDataImpl
public int[] getDims()
getDims
in interface SpecDataImpl
getDims
in class AbstractSpecDataImpl
public String getShortName()
getShortName
in interface SpecDataImpl
getShortName
in class AbstractSpecDataImpl
public String getFullName()
getFullName
in interface SpecDataImpl
getFullName
in class AbstractSpecDataImpl
public uk.ac.starlink.ast.FrameSet getAst()
getAst
in interface SpecDataImpl
getAst
in class AbstractSpecDataImpl
public String getDataFormat()
getDataFormat
in interface SpecDataImpl
getDataFormat
in class AbstractSpecDataImpl
public void save() throws SplatException
save
in interface SpecDataImpl
save
in class AbstractSpecDataImpl
SplatException
public String getProperty(String key)
getProperty
in interface SpecDataImpl
getProperty
in class AbstractSpecDataImpl
public nom.tam.fits.Header getFitsHeaders()
getFitsHeaders
in interface FITSHeaderSource
protected void finalize() throws Throwable
finalize
in class Object
Throwable
protected void open(String fileName) throws SplatException
fileName
- file name of the NDF.
SplatException
public NDFJ getTempCopy()
protected void createTempClone(SpecData source) throws SplatException
SplatException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |