edu.pdx.starview.data
Class ParsePPM

java.lang.Object
  extended byedu.pdx.starview.data.ParsePPM

public class ParsePPM
extends java.lang.Object

Used for parsing PPM star catalogs.

Author:
Dave Camarillo

Constructor Summary
ParsePPM(java.io.File filename)
          This has the binary version of the file, which this class does not parse http://tdc-www.harvard.edu/software/catalogs/ppm.html The actuall ascii file is from nasa ftp://legacy.gsfc.nasa.gov/heasarc/dbase/dump/heasarc_ppm.tdat.gz
 
Method Summary
 void parse(java.util.Vector vStars)
          This method opens the star database, parses the data, and appends SVStar objects to the vStars vector.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParsePPM

public ParsePPM(java.io.File filename)
This has the binary version of the file, which this class does not parse http://tdc-www.harvard.edu/software/catalogs/ppm.html The actuall ascii file is from nasa ftp://legacy.gsfc.nasa.gov/heasarc/dbase/dump/heasarc_ppm.tdat.gz

Parameters:
filename - The file on the filesystem that contains the NASA PPM Database (note: this is not the binary form, but rather the fixed-width, ascii form)
Method Detail

parse

public void parse(java.util.Vector vStars)
           throws java.lang.Exception
This method opens the star database, parses the data, and appends SVStar objects to the vStars vector. http://www.alcyone.de/SIT/mainstars/SIT000817.htm

Parameters:
vStars - A number of SVStar objects will be appended to the vector.
Throws:
java.lang.Exception - If there is an error reading the file an exception will be thrown.