astro
Class RaDeParser

java.lang.Object
  extended by util.CommandLineParser
      extended by astro.RaDeParser
Direct Known Subclasses:
AltAzVelocity, HeliocentricJulianDate, JSkyGrid.Display, TargetCoordinates, Tracking, WcsShift

public class RaDeParser
extends CommandLineParser

A class that allows parsing of different formats of right ascension and declination. Sexagesimal as well as hours and decimal degrees are supported.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.CommandLineParser
CommandLineParser.Test
 
Field Summary
private static String SWITCHES
          The switches for parsing ra and de.
protected static Map<String,String> USE
          Detailed use of switches.
 
Constructor Summary
RaDeParser()
          Construct a new RaDeParser and assigne the one-argument switches for parsing ra/de.
 
Method Summary
 Vector2D getRaDe()
          Reads the command line and parses ra,dec out of it.
 
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 parsing ra and de.

See Also:
Constant Field Values

USE

protected static final Map<String,String> USE
Detailed use of switches.

Constructor Detail

RaDeParser

public RaDeParser()
Construct a new RaDeParser and assigne the one-argument switches for parsing ra/de.

Method Detail

getRaDe

public Vector2D getRaDe()
Reads the command line and parses ra,dec out of it. The command line must already be parsed. If either ra or de are missing, null is returned.

Returns:
The right ascension and declination degrees.