util.sdss
Class Line

java.lang.Object
  extended by util.sdss.Line
All Implemented Interfaces:
Comparable<Line>

public class Line
extends Object
implements Comparable<Line>

A data container to hold the emission line instances and hold a reference to the source star.


Field Summary
 double continuum
           
 double equivalentWitdth
           
 double equivalentWitdthErr
           
 double height
           
static Comparator<Line> HEIGHT_COMPARATOR
          Comparator based on line height.
 double heightErr
           
 double index
           
 double sigma
           
 double sigmaErr
           
 double significance
           
static Comparator<Line> STRENGTH_COMPARATOR
          Comparator based on line strength.
 double wavelength
           
static Comparator<Line> WAVELENGTH_COMPARATOR
          Comparator based on line wavelength.
 double wavelengthErr
           
static Comparator<Line> WIDTH_COMPARATOR
          Comparator based on line width.
 
Constructor Summary
Line(Star aSource, double aWavelength)
           
Line(Star aSource, double aWavelength, double aWavelengthErr, double aSigma, double aSigmaErr, double aHeight, double aHeightErr, double anEquivalentWitdth, double anEquivalentWitdthErr, double aContinuum, double anIndex, double aSignificance)
           
 
Method Summary
 int compareTo(Line aLine)
          default comparator is based on line wavelength
static List<Line> getLines(Star aSource, FitsTable table)
           
 Star getSource()
           
 double getStrength()
          Get the emission strength as area under the fitted gaussian line profile
 double getWavelength()
          Get the emission line wavelength as centroid of the fitted gaussian line profile
static void showLines(FitsTable dm)
          Show emission lines, for testing purposes only
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

wavelength

public double wavelength

wavelengthErr

public double wavelengthErr

sigma

public double sigma

sigmaErr

public double sigmaErr

height

public double height

heightErr

public double heightErr

equivalentWitdth

public double equivalentWitdth

equivalentWitdthErr

public double equivalentWitdthErr

continuum

public double continuum

index

public double index

significance

public double significance

WAVELENGTH_COMPARATOR

public static final Comparator<Line> WAVELENGTH_COMPARATOR
Comparator based on line wavelength.


WIDTH_COMPARATOR

public static final Comparator<Line> WIDTH_COMPARATOR
Comparator based on line width.


STRENGTH_COMPARATOR

public static final Comparator<Line> STRENGTH_COMPARATOR
Comparator based on line strength. Useful only for lines in the same star.


HEIGHT_COMPARATOR

public static final Comparator<Line> HEIGHT_COMPARATOR
Comparator based on line height. Useful only for lines in the same star.

Constructor Detail

Line

public Line(Star aSource,
            double aWavelength,
            double aWavelengthErr,
            double aSigma,
            double aSigmaErr,
            double aHeight,
            double aHeightErr,
            double anEquivalentWitdth,
            double anEquivalentWitdthErr,
            double aContinuum,
            double anIndex,
            double aSignificance)

Line

public Line(Star aSource,
            double aWavelength)
Method Detail

getSource

public Star getSource()

getWavelength

public double getWavelength()
Get the emission line wavelength as centroid of the fitted gaussian line profile


getStrength

public double getStrength()
Get the emission strength as area under the fitted gaussian line profile


getLines

public static List<Line> getLines(Star aSource,
                                  FitsTable table)

showLines

public static void showLines(FitsTable dm)
Show emission lines, for testing purposes only


compareTo

public int compareTo(Line aLine)
default comparator is based on line wavelength

Specified by:
compareTo in interface Comparable<Line>

toString

public String toString()
Overrides:
toString in class Object