|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectutil.sdss.Quasar
public class 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.
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 |
---|
public static DecimalFormat zFormatter
public String name
public String ra
public String dec
public String zem
public String umag
public String umagErr
public String gmag
public String gmagErr
public String rmag
public String rmagErr
public String imag
public String imagErr
public String zmag
public String zmagErr
public String au
public String first
public String firstSN
public String firstSep
public String rosat
public String rosatSN
public String rosatSep
public String j2mass
public String j2massErr
public String h2mass
public String h2massErr
public String k2mass
public String k2massErr
public int s_mjd
public int plate
public int fiber
public String altName
protected List<Line> emissionLines
protected List<Line> absorptionLines
public static int entries
Constructor Detail |
---|
public Quasar(double z)
public Quasar(String aRow)
Method Detail |
---|
public static Integer getPrimaryKey(int aPlate, int aFiber)
public Integer getPrimaryKey()
public double getRa()
public double getDec()
public double getZem()
public double[] getMagnitude()
public double[] getMagnitudeError(int aBand)
public int compareTo(Quasar aQuasar)
compareTo
in interface Comparable<Quasar>
public File getSpectraFile()
public static File getSpectraFile(int aPlate, int aFiber, int aJulianDate)
public static String getSpectraImageFileName(int aPlate, int aFiber, int aJulianDate)
public static URL getSpectraImageURL(int aPlate, int aFiber, int aJulianDate)
public File getImageFile()
public static File getImageFile(int aPlate, int aFiber, int aJulianDate)
public static List<Quasar> readQuasars() throws IOException
IOException
public String toString()
toString
in class Object
public List<Line> getEmissionLines()
Star
getEmissionLines
in interface Star
public List<Line> getAbsorptionLines()
Star
getAbsorptionLines
in interface Star
protected void getWavelengthParameters()
public float getWavelength(float samplePoint)
samplePoint
- a floating point number representing the fractional sample point
public float getWavelength(int samplePoint)
samplePoint
- the sample point
public float[] getWavelengths()
public static float convertToAirWavelength(float vacuumWavelength)
vacuumWavelength
- the vacuum wavelength in angstroms
public static float convertToVacuumWavelength(float airWavelength)
airWavelength
- the air wavelength in angstroms
public float[] getSpectra()
public float getIntensity(int samplePoint)
samplePoint
- the sample point
public float getIntensity(float wavelength)
wavelength
- the wavelength at which the intensity is requested
public float[] getNoise()
public float[] getArray(int row)
public void showSpectra()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |