astro
Class FindMultiplets

java.lang.Object
  extended by astro.FindMultiplets

public class FindMultiplets
extends Object

A small class that reads a serialized catalog, roams through all entries and checks for neighbours within a given distance and magnitude range. All multiplets are recorded and printed out.


Constructor Summary
FindMultiplets()
           
 
Method Summary
static void main(String[] arg)
          First command line argument is the file name of the serialized list of StarDescriptions, the second the maximum distance in degrees, the third, if given record only multiplets of order that are equal or higher than the stated number (default two), a fourth argument specifies a V-magnitude limit.
private static Map<Integer,List<List<StarDescription>>> scanMultiplets(List<StarDescription> stars, double degdist, int record, double maxmag)
          Scans the list for multiplets.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FindMultiplets

public FindMultiplets()
Method Detail

scanMultiplets

private static Map<Integer,List<List<StarDescription>>> scanMultiplets(List<StarDescription> stars,
                                                                       double degdist,
                                                                       int record,
                                                                       double maxmag)
Scans the list for multiplets. This is a n^2 operation.


main

public static void main(String[] arg)
                 throws IOException,
                        ClassNotFoundException
First command line argument is the file name of the serialized list of StarDescriptions, the second the maximum distance in degrees, the third, if given record only multiplets of order that are equal or higher than the stated number (default two), a fourth argument specifies a V-magnitude limit.

Throws:
IOException
ClassNotFoundException