stella.util
Class TargetCoordinates

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

public class TargetCoordinates
extends RaDeParser

A class to calculate spherical trigonometric angles of an observable target. The easiest invocation is with a recorded fits file, but additional/missing parameters can be given.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.CommandLineParser
CommandLineParser.Test
 
Field Summary
static String DEFDEKEY
          Default fits header key word.
static String DEFLATKEY
          Default fits header key word.
static String DEFLONGKEY
          Default fits header key word.
static String DEFRAKEY
          Default fits header key word.
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
TargetCoordinates()
          Constructs the parser to the sensor tester.
 
Method Summary
static void main(String[] arg)
          Parses the command line and prints output to standard out.
 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

DEFLONGKEY

public static final String DEFLONGKEY
Default fits header key word.

See Also:
Constant Field Values

DEFLATKEY

public static final String DEFLATKEY
Default fits header key word.

See Also:
Constant Field Values

DEFRAKEY

public static final String DEFRAKEY
Default fits header key word.

See Also:
Constant Field Values

DEFDEKEY

public static final String DEFDEKEY
Default fits header key word.

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

TargetCoordinates

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

Method Detail

process

public boolean 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