HiRISE

HiRISE.HiCat.Utilities
Class HEZ

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

public class HEZ
extends Object

HEZ:

This application was developed to support the NASA's Human Exploration Landing Site initiative. The planetary science community will input targets proposed for future human exploration and landing into the HiWish public suggestion tool. This application, according to the criteria specified by the HLS program will retrieve the submitted targets for the database and export the relevant information into an Excel spreadsheet for distribution to the CRISM team and the MRO project.

The retrieval criteria includes input the "HLS2" keyword into the "Special Notes" field of the submitted target as well as add a "CRISM-driven" keyword into the Science Rationale of the target to indicate observations that need CRISM IR observations, which can only be acquired during a CRISM "cold cycle."

TODO: Main method needs a functional command line interface added to it. Currently all needed input is hard-coded into the main method. This needs to fixed prior to more general use of the application.

Version:
1.4
Author:
Rodney Heyd UA/HiRISE

Nested Class Summary
static class HEZ.ExitCode
          Exit status
static class HEZ.HiRISEFields
          A simple enumeration of the database fields to be retrieved from the database.
 
Field Summary
static String ID
           
 
Constructor Summary
HEZ(Configuration config)
          Class constructor
 
Method Summary
static void main(String[] arguments)
          Main method stub, needs more fleshing out and a clui added
static void Usage(org.apache.commons.cli.Options options)
          Prints the command line usage syntax.
 void writeHEZSpreadsheet(File workfile, Date startDate)
          Given an input file and a start date this method queries the database for HiRISE and CRISM HEZ targets and exports the targets lists to separate sheets in an excel workbook with the input file name.
 
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
See Also:
Constant Field Values
Constructor Detail

HEZ

public HEZ(Configuration config)
    throws Database_Exception,
           Configuration_Exception
Class constructor

Parameters:
config - - A configuration containing database connection information and credentials
Throws:
Database_Exception - if a database connection cannot be established
Configuration_Exception - if a required parameter is malformed or missing
Method Detail

writeHEZSpreadsheet

public void writeHEZSpreadsheet(File workfile,
                                Date startDate)
                         throws IOException,
                                Database_Exception,
                                jxl.write.biff.RowsExceededException,
                                jxl.write.WriteException
Given an input file and a start date this method queries the database for HiRISE and CRISM HEZ targets and exports the targets lists to separate sheets in an excel workbook with the input file name.

Parameters:
workfile - - the name of the exported excel workbook
startDate - - the starting date to query new targets for
Throws:
IOException - if an error occurs while writing the excel workbook
Database_Exception - if an error occurs during database access
jxl.write.biff.RowsExceededException - if an error occurs while adding cells to the excel file
jxl.write.WriteException - if an error occurs while exporting the data to the workbook file

main

public static void main(String[] arguments)
Main method stub, needs more fleshing out and a clui added

Parameters:
arguments -

Usage

public static void Usage(org.apache.commons.cli.Options options)
Prints the command line usage syntax.

Usage: TopPriorityNotifier <Options>
  Options -
    [-Configuration <filename>]
    [-Sstartdate <dd-mm-yyyyThh:mm:ss>]
    [-Help]
    [-Verbose]


HiRISE

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