astro
Class RaDeParser
java.lang.Object
util.CommandLineParser
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.
|
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 |
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.
RaDeParser
public RaDeParser()
- Construct a new RaDeParser and assigne the one-argument switches
for parsing ra/de.
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.