stella.jview
Class SesFits

java.lang.Object
  extended by nom.tam.fits.Fits
      extended by astro.SpectralFits
          extended by stella.jview.SesFits

public class SesFits
extends SpectralFits

This class deals with FITS file received as output from the SES spectrograph. This is a three dimensional fits file, where the x-coordinate (first axis) is along the echell order, 2043 pixel, the second axis is the order number, 82, and the third one indicates the image. In index zero, the reduced spectrum is found, in index 1 the raw extracted spectrum and in index 2 a sigma map of the pixel. The data typoe is float.


Nested Class Summary
private static class SesFits.Dispersion
          The functions used in a single order, parsed from s tring buffer.
static class SesFits.Order
          We read from the given fits file the stated echell order and echo that to sysout.
static class SesFits.Wavelength
          This class represents a soultion to an aperture.
 
Field Summary
private  Integer[] lookup
          The lookup table from with the orders (index to order).
private static String SPEC
          Header keyword for apertures.
private static String WAT
          Header keyword for apertures.
 
Constructor Summary
SesFits(File io)
          Constructs a SesFits from a file.
 
Method Summary
private static String checkFormat(String def)
           
 int getHighestOrder()
          Returns the array size, -1 if undefined.
 int getIndexOfOrder(int order)
          Default implementation says aperture number equlas order number.
 int getLowestOrder()
          Default implementaion return 0 for lowest order number, -1 if undefined.
 int getOrderOfIndex(int order)
          Default implementation says aperture number equlas order number.
protected  Function[] parseWavelengthSolution(nom.tam.fits.Header h)
          Parses the wavelength soultion from the header.
 
Methods inherited from class astro.SpectralFits
getCentralOrderFromAngstrom, getOrdersFromAngstrom, getRawOrder, getReducedOrder
 
Methods inherited from class nom.tam.fits.Fits
addHDU, currentSize, deleteHDU, fileInit, getHDU, getNumberOfHDUs, getStream, insertHDU, makeHDU, makeHDU, makeHDU, randomInit, read, read, readHDU, setChecksum, setChecksum, setStream, size, skipHDU, skipHDU, streamInit, streamInit, streamInit, version, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WAT

private static final String WAT
Header keyword for apertures.

See Also:
Constant Field Values

SPEC

private static final String SPEC
Header keyword for apertures.

See Also:
Constant Field Values

lookup

private Integer[] lookup
The lookup table from with the orders (index to order).

Constructor Detail

SesFits

public SesFits(File io)
        throws nom.tam.fits.FitsException
Constructs a SesFits from a file. Note this throws FitsException if file was not found or data could not be read due to I/O

Throws:
nom.tam.fits.FitsException
Method Detail

getIndexOfOrder

public int getIndexOfOrder(int order)
Default implementation says aperture number equlas order number.

Overrides:
getIndexOfOrder in class SpectralFits

getOrderOfIndex

public int getOrderOfIndex(int order)
Default implementation says aperture number equlas order number.

Overrides:
getOrderOfIndex in class SpectralFits

getLowestOrder

public int getLowestOrder()
Default implementaion return 0 for lowest order number, -1 if undefined.

Overrides:
getLowestOrder in class SpectralFits

getHighestOrder

public int getHighestOrder()
Returns the array size, -1 if undefined.

Overrides:
getHighestOrder in class SpectralFits

parseWavelengthSolution

protected Function[] parseWavelengthSolution(nom.tam.fits.Header h)
Parses the wavelength soultion from the header.

Specified by:
parseWavelengthSolution in class SpectralFits

checkFormat

private static String checkFormat(String def)