mysql
Class ObserveSql.Flat

java.lang.Object
  extended by mysql.ObserveSql.Flat
Enclosing class:
ObserveSql

public static final class ObserveSql.Flat
extends Object

Connects to the database and tries to find flats with a stuck filterwheel. We do this by examining the position of the centroid, approximately defined by

 x_c=0.5*(-Q0+Q1-Q2+Q3)/ΣQ
        y_c=0.5*(-Q0-Q1+Q2+Q3)/ΣQ
 
where the Q's are the average of the respective quadrants. On output we print x_c y_c FILTER and objid.


Constructor Summary
ObserveSql.Flat()
           
 
Method Summary
static void main(String[] arg)
          The only argument is the telescope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObserveSql.Flat

public ObserveSql.Flat()
Method Detail

main

public static void main(String[] arg)
                 throws SQLException,
                        ConnectException
The only argument is the telescope

Throws:
SQLException
ConnectException