|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnom.tam.fits.Fits
astro.SpectralFits
public abstract class 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.
| Field Summary | |
|---|---|
private File |
fits
The original file where the ses fits is stored. |
private double |
ltm
Convert image pixel to physical pixels used for further processing. |
private static String |
LTM
Header keyword for apertures. |
private double |
ltv
Convert image pixel to physical pixels used for further processing. |
private static String |
LTV
Header keyword for apertures. |
private float[][] |
raw
After construction, we have these arrays available. |
private float[][] |
reduced
After construction, we have these arrays available. |
private float[][] |
sigma
After construction, we have these arrays available. |
private Function[] |
wavelength
The wavelength solution for the orders, parsed from the header. |
| Constructor Summary | |
|---|---|
protected |
SpectralFits(File io)
Constructs a SesFits from a file. |
| Method Summary | |
|---|---|
int |
getCentralOrderFromAngstrom(double lambda)
Return the orders where the specified wavelength fits best or -1 if no such order is available. |
int |
getHighestOrder()
Returns the array size, -1 if undefined. |
int |
getIndexOfOrder(int order)
Default implementation says aperture number equals order number. |
int |
getLowestOrder()
Default implementation return 0 for lowest order number, -1 if undefined. |
int |
getOrderOfIndex(int index)
Default implementation says aperture number equals order number. |
int[] |
getOrdersFromAngstrom(double lambda)
Return all orders where the specified wavelength can be found. |
Vector3D[] |
getRawOrder(int order)
Returns the specified order as an array of wavelength vs. |
Vector3D[] |
getReducedOrder(int order)
Returns the specified order as an array of wavelength vs. |
protected abstract Function[] |
parseWavelengthSolution(nom.tam.fits.Header h)
Parses the wavelength soultion from the header. |
| 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 |
|---|
private static final String LTV
private static final String LTM
private File fits
private double ltv
private double ltm
private float[][] reduced
private float[][] raw
private float[][] sigma
private Function[] wavelength
| Constructor Detail |
|---|
protected SpectralFits(File io)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException| Method Detail |
|---|
public int getIndexOfOrder(int order)
public int getOrderOfIndex(int index)
public int getLowestOrder()
public int getHighestOrder()
public int getCentralOrderFromAngstrom(double lambda)
lambda - The wavelength in Angstrom.
public int[] getOrdersFromAngstrom(double lambda)
lambda - The wavelength in Angstrom.
public Vector3D[] getReducedOrder(int order)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException - If the requested order cannot be reachedpublic Vector3D[] getRawOrder(int order)
protected abstract Function[] parseWavelengthSolution(nom.tam.fits.Header h)
throws nom.tam.fits.FitsException
nom.tam.fits.FitsException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||