HiRISE

HiRISE.HiPlan.Shapes
Class View_Targeting_Offsets

java.lang.Object
  extended by HiRISE.HiPlan.Shapes.View_Targeting_Offsets

public class View_Targeting_Offsets
extends Object

A command-line/GUI hybrid utility to display the targeting offsets for an input collection of HiRISE observations. A "targeting offset" is the difference between the planned center of a HiRISE image and the post-geometry-processing computed center of the same image.

The application runs as a pure command-line utility by default, printing a CSV table of the data to the standard output stream for the input list of observation IDs. With the addition of the --gui command-line option, however, the same data are displayed graphically in a table along with a JFreeChart plot. The columns plotted may be selected via a menu option.

By default, the application uses predict:-90,0 as its sole observation ID source. Any of the standard sources may be supplied on the command line or in the GUI's text field.

Original design by Nicole Baugh of the University of Arizona.

Version:
1.42
Author:
Christian Schaller - UA/PIRL
See Also:
Observation_ID_Accumulator

Field Summary
static String APPLICATION_GROUP
           
static String CROSSTRACK_THRESHOLD
           
static double DEFAULT_CROSSTRACK_THRESHOLD
           
static String[] DEFAULT_DEFAULT_SOURCES
           
static double DEFAULT_DOWNTRACK_THRESHOLD
           
static boolean DEFAULT_LOAD_ON_START
           
static String DEFAULT_SOURCES
           
static String DOWNTRACK_THRESHOLD
           
static int FAILURE
          Exit status for an unsuccessful operation.
static String ID
          Class identification name with source code version and date.
static String LOAD_ON_START
           
static int SUCCESS
          Exit status for a successful operation.
 
Method Summary
static String formatDate(Date date)
          Formats the input date in DOY format.
 void handleAbout()
          Handles a request to display the application About dialog.
 boolean handleMacQuit()
          Handles a request to quit as generated by the Mac-supplied Quit menu item.
static void main(String[] args)
          Invokes an instance of the application in its own thread and processes the command-line arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
Class identification name with source code version and date.

See Also:
Constant Field Values

APPLICATION_GROUP

public static final String APPLICATION_GROUP
See Also:
Constant Field Values

CROSSTRACK_THRESHOLD

public static final String CROSSTRACK_THRESHOLD
See Also:
Constant Field Values

DEFAULT_CROSSTRACK_THRESHOLD

public static final double DEFAULT_CROSSTRACK_THRESHOLD
See Also:
Constant Field Values

DOWNTRACK_THRESHOLD

public static final String DOWNTRACK_THRESHOLD
See Also:
Constant Field Values

DEFAULT_DOWNTRACK_THRESHOLD

public static final double DEFAULT_DOWNTRACK_THRESHOLD
See Also:
Constant Field Values

DEFAULT_SOURCES

public static final String DEFAULT_SOURCES
See Also:
Constant Field Values

DEFAULT_DEFAULT_SOURCES

public static final String[] DEFAULT_DEFAULT_SOURCES

LOAD_ON_START

public static final String LOAD_ON_START
See Also:
Constant Field Values

DEFAULT_LOAD_ON_START

public static final boolean DEFAULT_LOAD_ON_START
See Also:
Constant Field Values

SUCCESS

public static final int SUCCESS
Exit status for a successful operation.

See Also:
Constant Field Values

FAILURE

public static final int FAILURE
Exit status for an unsuccessful operation.

See Also:
Constant Field Values
Method Detail

handleAbout

public void handleAbout()
Handles a request to display the application About dialog. This method is called when the operator selects the About menu item in HiTemp's Help menu.

On a Mac, an About menu item is also supplied in the application menu. A Mac_Adapter registers this method as the handler for the Apple event generated by this menu item.

This method is exposed for access by the Mac Adapter.


handleMacQuit

public boolean handleMacQuit()
Handles a request to quit as generated by the Mac-supplied Quit menu item.

This method is exposed for access by the Mac Adapter.

Returns:
true.

formatDate

public static String formatDate(Date date)
Formats the input date in DOY format.

Parameters:
date - the date to format.
Returns:
the formatted string.

main

public static void main(String[] args)
Invokes an instance of the application in its own thread and processes the command-line arguments.

Usage

View_Targeting_Offsets [--configuration configuration_pathname] [--exclusions exclusions_file_pathname] [observation_id_source [...]]

View_Targeting_Offsets --usage

View_Targeting_Offsets --version

Options are not case-sensitive and may be reduced to their shortest unique form. One or two dashes may be used.

Options

--configuration configuration_pathname
Sets the pathname of the configuration file from which to configure the application. See Configuration_Helper.getConfiguration(String,String,String...) for details on the configuration pathname; if this option is not used, the config source argument is null.
--gui
Invokes the application with a GUI.

Parameters:
args - the command-line arguments.

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona