util.sdss
Class EmissionLines
java.lang.Object
util.sdss.EmissionLines
public class EmissionLines
- extends Object
Create a wavelength sorted list of quasar emission lines in observed
reference frame from SDSS DR1.
By John Talbot, Nov 5, 2003
- INPUT: dr1qso-by-plate.txt data file and one quasar FITS files per spectra
- OUTPUT:
- list sorted by wavelength of observed frame emission lines with the
quasar in which it occurs
- Centered running average histogram with 1, 2, 4, 8, 16, 32, 64 and
128 A bin sizes.
- Histogram for one bin size and half-bin size shifted count
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
outputDirectory
public static final String outputDirectory
- See Also:
- Constant Field Values
EmissionLines
public EmissionLines()
main
public static void main(String[] args)
getVarianceOfRandomLines
public static void getVarianceOfRandomLines(List<Line> lines,
int aNumberOfSimulations)
throws IOException
- Throws:
IOException
getEmissionLines
public static List<Line> getEmissionLines()
throws IOException
- Get a sorted list of quasar emission lines in the observed frame from
SDSS spectra.
Note: There is a many to one correspondence between a line and a quasar
(i.e. several lines map to the same quasar)
- Returns:
- a list of quasar emission lines
- Throws:
IOException
getStatistics
public static void getStatistics(List<Line> lines,
String fileName)
throws IOException
- Get statistics from a list of quasar emission lines
- Parameters:
lines
- a List of Line instances representing the quasar emssion lines
- Throws:
IOException
formatCount
public static String formatCount(int aCount)
formatFloatCount
public static String formatFloatCount(double aCount)
getRandomLines
public static List<Line> getRandomLines(List<Line> lines,
int number)
- Monte-Carlo generation of a specified number of emission lines randomly generated
with the same distribution as bin 64 histogram which simulated
the smoothed emission line density distribution.
- Parameters:
lines
- a List of Line instances representing peaks in the real quasar emission line data.number
- the number of random lines to generate
- Returns:
- a list of quasar emission lines with the same distribution as the input list