HiRISE

HiRISE.HiCat.Utilities
Class OptgParser

java.lang.Object
  extended by HiRISE.HiCat.Utilities.OptgParser

public class OptgParser
extends Object

An application for parsing OPTG files to determine time information for important events in each Orbit. Once the time data is extracted, the information is updated in the Orbits table in the Database specified in the supplied Configuration file.

A Configuration file is required for this application. All that is required in the Configuration file is a Database specification with Host, Type, User, Password and Catalog so that a Database Connection object can be created.

Optionally, the Configuration file may also contain an Optg_Parser group that contains the following entries:

Optg_Directory
The directory where the OPTG files reside.
State_File_Directory
The directory where the State files reside.

If the Optg_Directory or State_File_Directory are not given in the configuration file, the DEFAULT_OPTG_FILE_DIR or DEFAULT_STATE_FILE_DIR will be used accordingly.

Version:
1.3
Author:
Michael Wendell - UA/PIRL

Field Summary
static String DEFAULT_CONFIGURATION_FILE
          The default configuration file, if no file is specified.
static String DEFAULT_OPTG_FILE_DIR
          The default OPTG file directory.
static String DEFAULT_STATE_FILE_DIR
          The default State file directory.
static String ID
          Class identification name with source code version and date.
 
Method Summary
static void main(String[] args)
          Parse command line options, create a new OptgParser object then parse all OPTG and State_File files to determine L_SUB_S, AEQUAX, DEQUAX, NPOLEX, SPOLEX, DLTERM and LDTERM for each Orbit.
 
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

DEFAULT_CONFIGURATION_FILE

public static final String DEFAULT_CONFIGURATION_FILE
The default configuration file, if no file is specified.

See Also:
Constant Field Values

DEFAULT_STATE_FILE_DIR

public static String DEFAULT_STATE_FILE_DIR
The default State file directory.


DEFAULT_OPTG_FILE_DIR

public static String DEFAULT_OPTG_FILE_DIR
The default OPTG file directory.

Method Detail

main

public static void main(String[] args)
Parse command line options, create a new OptgParser object then parse all OPTG and State_File files to determine L_SUB_S, AEQUAX, DEQUAX, NPOLEX, SPOLEX, DLTERM and LDTERM for each Orbit. Finally, update Orbits table in database after all entries have been determined.


HiRISE

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