stella.util
Class Tracking

java.lang.Object
  extended by util.CommandLineParser
      extended by astro.RaDeParser
          extended by stella.util.Tracking

public class Tracking
extends RaDeParser

A small class allowing you to read x/y coordinates of a tracking sequence as deduced from a webcam and convert them to x'/y', where the x axis is paralell to azimuth, y axis parallel to altitude. This is done in the following way:

For detailed usage, issue java stella.util.Tracking without any command line arguments.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.CommandLineParser
CommandLineParser.Test
 
Field Summary
private static double DEFDIAMETER
          The default telescope size in meter.
private static double DEFENCODER
          The default encoder frequency, steps per degree.
private static double DEFSCALE
          The default pixel scale, pixels per arc second.
private static double DEFWIND
          The default column wind speed in m/s.
static int DEFX
          The default x-data column.
static int DEFY
          The default x-data column.
private static String FOOT
          A footer message.
private static String SWITCHES
          The switches for adding properties.
 
Fields inherited from class astro.RaDeParser
USE
 
Constructor Summary
Tracking()
          Constructs the parser to the sensor tester.
 
Method Summary
private  double[] determine(double y, double amp, double phase)
           
static void main(String[] arg)
          Parses the command line and prints output to standard out or to a file.
 boolean process(String[] arg)
          Reads the command line and parses object ra,dec out of it.
 
Methods inherited from class astro.RaDeParser
getRaDe
 
Methods inherited from class util.CommandLineParser
getArguments, getCommandLine, getCommands, getRegisteredSwitches, hasAnySwitch, hasSwitch, hasSwitch, haveAllSwitches, parse, printCommandLine, registerLine, registerSwitches, setCommands, staticUsage, usage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFX

public static final int DEFX
The default x-data column.

See Also:
Constant Field Values

DEFY

public static final int DEFY
The default x-data column.

See Also:
Constant Field Values

DEFWIND

private static final double DEFWIND
The default column wind speed in m/s.

See Also:
Constant Field Values

DEFDIAMETER

private static final double DEFDIAMETER
The default telescope size in meter.

See Also:
Constant Field Values

DEFSCALE

private static final double DEFSCALE
The default pixel scale, pixels per arc second.

See Also:
Constant Field Values

DEFENCODER

private static final double DEFENCODER
The default encoder frequency, steps per degree.

See Also:
Constant Field Values

SWITCHES

private static final String SWITCHES
The switches for adding properties.

See Also:
Constant Field Values

FOOT

private static final String FOOT
A footer message.

See Also:
Constant Field Values
Constructor Detail

Tracking

public Tracking()
Constructs the parser to the sensor tester. All known switches are registered.

Method Detail

process

public boolean process(String[] arg)
                throws ParseException,
                       IOException
Reads the command line and parses object ra,dec out of it. If no time is given, the current time is used. Longitude and latitude default to the values of the Teide observatory.

Returns:
True, if processing was okay.
Throws:
ParseException
IOException

determine

private double[] determine(double y,
                           double amp,
                           double phase)

main

public static void main(String[] arg)
                 throws ParseException,
                        IOException
Parses the command line and prints output to standard out or to a file.

Throws:
ParseException
IOException