util.sdss
Class Quasar

java.lang.Object
  extended by util.sdss.Quasar
All Implemented Interfaces:
Comparable<Quasar>, Star

public class Quasar
extends Object
implements Star, Comparable<Quasar>

A data container to hold the quasar instances from Sloan Digital Sky Survey DR3 QSO Catalog that appear in the file dr1qso.txt along with emission lines locations.

Acknowledgment

Funding for the creation and distribution of the SDSS Archive has been provided by the Alfred P. Sloan Foundation, the Participating Institutions, the National Aeronautics and Space Administration, the National Science Foundation, the U.S. Department of Energy, the Japanese Monbukagakusho, and the Max Planck Society. The SDSS Web site is http://www.sdss.org/. The SDSS is managed by the Astrophysical Research Consortium (ARC) for the Participating Institutions. The Participating Institutions are The University of Chicago, Fermilab, the Institute for Advanced Study, the Japan Participation Group, The Johns Hopkins University, the Korean Scientist Group, Los Alamos National Laboratory, the Max-Planck-Institute for Astronomy (MPIA), the Max- Planck-Institute for Astrophysics (MPA), New Mexico State University, University of Pittsburgh, Princeton University, the United States Naval Observatory, and the University of Washington.


Field Summary
protected  List<Line> absorptionLines
           
 String altName
           
 String au
           
 String dec
           
protected  List<Line> emissionLines
           
static int entries
           
 int fiber
           
 String first
           
 String firstSep
           
 String firstSN
           
 String gmag
           
 String gmagErr
           
 String h2mass
           
 String h2massErr
           
 String imag
           
 String imagErr
           
 String j2mass
           
 String j2massErr
           
 String k2mass
           
 String k2massErr
           
 String name
           
 int plate
           
 String ra
           
 String rmag
           
 String rmagErr
           
 String rosat
           
 String rosatSep
           
 String rosatSN
           
 int s_mjd
           
 String umag
           
 String umagErr
           
 String zem
           
static DecimalFormat zFormatter
           
 String zmag
           
 String zmagErr
           
 
Constructor Summary
Quasar(double z)
           
Quasar(String aRow)
           
 
Method Summary
 int compareTo(Quasar aQuasar)
           
static float convertToAirWavelength(float vacuumWavelength)
          Convert from vacuum wavelength to air wavelength (in angstroms).
static float convertToVacuumWavelength(float airWavelength)
          Convert from air wavelength to vacuum wavelength (in angstroms).
 List<Line> getAbsorptionLines()
          Get a list of Line objects representing absorption lines
 float[] getArray(int row)
           
 double getDec()
           
 List<Line> getEmissionLines()
          Get a list of Line objects representing emission lines
 File getImageFile()
          Get the image file for this quasar
static File getImageFile(int aPlate, int aFiber, int aJulianDate)
          Get the image file for the given plate fiber and julian date
 float getIntensity(float wavelength)
          Get the spectra intensity at the given positive wavelength, linear interpolation is performed between sample points.
 float getIntensity(int samplePoint)
          Get the spectra intensity at sample point.
 double[] getMagnitude()
           
 double[] getMagnitudeError(int aBand)
           
 float[] getNoise()
           
 Integer getPrimaryKey()
           
static Integer getPrimaryKey(int aPlate, int aFiber)
           
 double getRa()
           
 float[] getSpectra()
           
 File getSpectraFile()
          Get the spectra file for this quasar
static File getSpectraFile(int aPlate, int aFiber, int aJulianDate)
          Get the spectra file for the given plate fiber and julian date
static String getSpectraImageFileName(int aPlate, int aFiber, int aJulianDate)
           
static URL getSpectraImageURL(int aPlate, int aFiber, int aJulianDate)
           
 float getWavelength(float samplePoint)
          Get the vacuum wavelength corresponding to the fractional sample point, possibly in between sample points (in Angstroms).
 float getWavelength(int samplePoint)
          Get the vacuum wavelength corresponding to the sample point (in Angstroms).
protected  void getWavelengthParameters()
          Get the wavelength parameters n, coeff0 and coeff1 from the FITS spectra file.
 float[] getWavelengths()
          Get the vacuum wavelengths corresponding all the spectra points (in Angstroms).
 double getZem()
           
static List<Quasar> readQuasars()
          Get a list of quasars from SDSS
 void showSpectra()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

zFormatter

public static DecimalFormat zFormatter

name

public String name

ra

public String ra

dec

public String dec

zem

public String zem

umag

public String umag

umagErr

public String umagErr

gmag

public String gmag

gmagErr

public String gmagErr

rmag

public String rmag

rmagErr

public String rmagErr

imag

public String imag

imagErr

public String imagErr

zmag

public String zmag

zmagErr

public String zmagErr

au

public String au

first

public String first

firstSN

public String firstSN

firstSep

public String firstSep

rosat

public String rosat

rosatSN

public String rosatSN

rosatSep

public String rosatSep

j2mass

public String j2mass

j2massErr

public String j2massErr

h2mass

public String h2mass

h2massErr

public String h2massErr

k2mass

public String k2mass

k2massErr

public String k2massErr

s_mjd

public int s_mjd

plate

public int plate

fiber

public int fiber

altName

public String altName

emissionLines

protected List<Line> emissionLines

absorptionLines

protected List<Line> absorptionLines

entries

public static int entries
Constructor Detail

Quasar

public Quasar(double z)

Quasar

public Quasar(String aRow)
Method Detail

getPrimaryKey

public static Integer getPrimaryKey(int aPlate,
                                    int aFiber)

getPrimaryKey

public Integer getPrimaryKey()

getRa

public double getRa()

getDec

public double getDec()

getZem

public double getZem()

getMagnitude

public double[] getMagnitude()

getMagnitudeError

public double[] getMagnitudeError(int aBand)

compareTo

public int compareTo(Quasar aQuasar)
Specified by:
compareTo in interface Comparable<Quasar>

getSpectraFile

public File getSpectraFile()
Get the spectra file for this quasar


getSpectraFile

public static File getSpectraFile(int aPlate,
                                  int aFiber,
                                  int aJulianDate)
Get the spectra file for the given plate fiber and julian date


getSpectraImageFileName

public static String getSpectraImageFileName(int aPlate,
                                             int aFiber,
                                             int aJulianDate)

getSpectraImageURL

public static URL getSpectraImageURL(int aPlate,
                                     int aFiber,
                                     int aJulianDate)

getImageFile

public File getImageFile()
Get the image file for this quasar


getImageFile

public static File getImageFile(int aPlate,
                                int aFiber,
                                int aJulianDate)
Get the image file for the given plate fiber and julian date


readQuasars

public static List<Quasar> readQuasars()
                                throws IOException
Get a list of quasars from SDSS

Returns:
a list of quasars
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object

getEmissionLines

public List<Line> getEmissionLines()
Description copied from interface: Star
Get a list of Line objects representing emission lines

Specified by:
getEmissionLines in interface Star

getAbsorptionLines

public List<Line> getAbsorptionLines()
Description copied from interface: Star
Get a list of Line objects representing absorption lines

Specified by:
getAbsorptionLines in interface Star

getWavelengthParameters

protected void getWavelengthParameters()
Get the wavelength parameters n, coeff0 and coeff1 from the FITS spectra file.


getWavelength

public float getWavelength(float samplePoint)
Get the vacuum wavelength corresponding to the fractional sample point, possibly in between sample points (in Angstroms).

Parameters:
samplePoint - a floating point number representing the fractional sample point
Returns:
vacuum wavelength of the sample point or zero if out of range

getWavelength

public float getWavelength(int samplePoint)
Get the vacuum wavelength corresponding to the sample point (in Angstroms).

Parameters:
samplePoint - the sample point
Returns:
vacuum wavelength of the sample point or zero if out of range

getWavelengths

public float[] getWavelengths()
Get the vacuum wavelengths corresponding all the spectra points (in Angstroms).

Returns:
the vacuum wavelengths of all the sample points

convertToAirWavelength

public static float convertToAirWavelength(float vacuumWavelength)
Convert from vacuum wavelength to air wavelength (in angstroms). The conversion equation is from the SDSS DR3 web page.

Parameters:
vacuumWavelength - the vacuum wavelength in angstroms
Returns:
air wavelength of the given vacuum wavelength

convertToVacuumWavelength

public static float convertToVacuumWavelength(float airWavelength)
Convert from air wavelength to vacuum wavelength (in angstroms). Equation is from the IAU standard for conversion from air to vacuum wavelengths. (Morton: 1991, ApJS, 77, 119). Pre-condition: air wavelength > 2000 Å

Parameters:
airWavelength - the air wavelength in angstroms
Returns:
vacuum wavelength of the given air wavelength

getSpectra

public float[] getSpectra()

getIntensity

public float getIntensity(int samplePoint)
Get the spectra intensity at sample point.

Parameters:
samplePoint - the sample point
Returns:
the spectra intensity at the sample point

getIntensity

public float getIntensity(float wavelength)
Get the spectra intensity at the given positive wavelength, linear interpolation is performed between sample points.

Parameters:
wavelength - the wavelength at which the intensity is requested
Returns:
the spectra intensity at the wavelength

getNoise

public float[] getNoise()

getArray

public float[] getArray(int row)

showSpectra

public void showSpectra()