stella.util
Class AltAzVelocity

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

public class AltAzVelocity
extends RaDeParser

A class to calculate both, the velocity in altitude and azimuth, for a given target at a given time. Additionally, current image rotation and the revolution of the image in Nasmith foci are calculated. The target is supplied either with -ra, -rah, or -ras, declination with -de -des, time, if any, is given with -t and a parsable date.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.CommandLineParser
CommandLineParser.Test
 
Field Summary
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
AltAzVelocity()
          Constructs the parser to the sensor tester.
 
Method Summary
static void main(String[] arg)
          Parses the command line and prints output to standard out.
 double[] 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

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

AltAzVelocity

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

Method Detail

process

public double[] process(String[] arg)
                 throws ParseException
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:
A double array, velocity in azimuth and altitude at zero, first index.
Throws:
ParseException

main

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

Throws:
ParseException