astro
Class HeliocentricJulianDate

java.lang.Object
  extended by util.CommandLineParser
      extended by astro.RaDeParser
          extended by astro.HeliocentricJulianDate

public class HeliocentricJulianDate
extends RaDeParser

Command line tool to calculate a heliocentric julian date from FITS header keywords or from command line options.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.CommandLineParser
CommandLineParser.Test
 
Field Summary
static String DATE_OBS
          The header keyword for obs.
static String DEC
          Pointing of telescope, if OBJDEC not found.
private static String FOOT
          A footer message.
static String OBJDEC
          The header keyword for the object de, deg.
static String OBJEQUIN
          The equinox of the catalog, years.
static String OBJPMDEC
          The header keyword for the object proper motion in de, mas/yr.
static String OBJPMRA
          The header keyword for the object proper motion in ra, mas/yr.
static String OBJRA
          The header keyword for the object ra, deg.
private static String ONE
          The command line switches.
static String RA
          Pointing of telescope, if OBJRA not found.
static String TIME_OBS
          The header keyword for obs.
 
Fields inherited from class astro.RaDeParser
USE
 
Constructor Summary
HeliocentricJulianDate()
          We constrcut a new HeliocentricJulianDate parser.
 
Method Summary
static void main(String[] arg)
          Tries to read fits header data and prints out the hjd.
 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

OBJRA

public static final String OBJRA
The header keyword for the object ra, deg.

See Also:
Constant Field Values

OBJDEC

public static final String OBJDEC
The header keyword for the object de, deg.

See Also:
Constant Field Values

OBJPMRA

public static final String OBJPMRA
The header keyword for the object proper motion in ra, mas/yr.

See Also:
Constant Field Values

OBJPMDEC

public static final String OBJPMDEC
The header keyword for the object proper motion in de, mas/yr.

See Also:
Constant Field Values

OBJEQUIN

public static final String OBJEQUIN
The equinox of the catalog, years.

See Also:
Constant Field Values

RA

public static final String RA
Pointing of telescope, if OBJRA not found.

See Also:
Constant Field Values

DEC

public static final String DEC
Pointing of telescope, if OBJDEC not found.

See Also:
Constant Field Values

DATE_OBS

public static final String DATE_OBS
The header keyword for obs. date in UT If 'T' present, also has time.

See Also:
Constant Field Values

TIME_OBS

public static final String TIME_OBS
The header keyword for obs. time in UT.

See Also:
Constant Field Values

ONE

private static final String ONE
The command line switches.

See Also:
Constant Field Values

FOOT

private static final String FOOT
A footer message.

See Also:
Constant Field Values
Constructor Detail

HeliocentricJulianDate

public HeliocentricJulianDate()
We constrcut a new HeliocentricJulianDate parser.

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
Tries to read fits header data and prints out the hjd.

Throws:
ParseException