public class HEZ
extends java.lang.Object
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.Modifier and Type | Class and Description |
---|---|
static class |
HEZ.ExitCode
Exit status
|
static class |
HEZ.HiRISEFields
A simple enumeration of the database fields to be retrieved from the
database.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
Constructor and Description |
---|
HEZ(PIRL.Configuration.Configuration config)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.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(java.io.File workfile,
java.util.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.
|
public static final java.lang.String ID
public HEZ(PIRL.Configuration.Configuration config) throws PIRL.Database.Database_Exception, PIRL.Configuration.Configuration_Exception
config
- - A configuration containing database connection information and
credentialsPIRL.Database.Database_Exception
- if a database connection cannot be establishedPIRL.Configuration.Configuration_Exception
- if a required parameter is malformed or missingpublic void writeHEZSpreadsheet(java.io.File workfile, java.util.Date startDate) throws java.io.IOException, PIRL.Database.Database_Exception, jxl.write.biff.RowsExceededException, jxl.write.WriteException
workfile
- - the name of the exported excel workbookstartDate
- - the starting date to query new targets forjava.io.IOException
- if an error occurs while writing the excel workbookPIRL.Database.Database_Exception
- if an error occurs during database accessjxl.write.biff.RowsExceededException
- if an error occurs while adding cells to the excel filejxl.write.WriteException
- if an error occurs while exporting the data to the workbook filepublic static void main(java.lang.String[] arguments)
arguments
- public static void Usage(org.apache.commons.cli.Options options)
Usage: TopPriorityNotifier <Options> Options - [-Configuration <filename>] [-Sstartdate <dd-mm-yyyyThh:mm:ss>] [-Help] [-Verbose]
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona