public class Update_Mars_Year
extends java.lang.Object
There are several additions in functionality that can potentially be added to this class:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_CONFIGURATION_FILENAME |
static java.lang.String |
DEFAULT_LEAP_SECONDS_KERNEL |
static int |
EXIT_COMMAND_LINE_SYNTAX_ERROR |
static int |
EXIT_CONFIGURATION_ERROR |
static int |
EXIT_DATABASE_ERROR |
static int |
EXIT_SPICE_ERROR |
static int |
EXIT_SUCCESS |
static java.lang.String |
ID |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
ephemerisTime2UTC(double et)
A utility method that converts ephemeris time into a UTC date string in
a format suitable for ingestion into HiCat.
|
static void |
main(java.lang.String[] arguments)
Main method that calls the class capabilities to update the Mars_Year
table.
|
void |
setUTCTimes(int year,
double start_time_et,
double end_time_et)
This method updates a single set of UTC time fields in the database
given the Mars year, and the start and end times for the year in ephemeris
time.
|
void |
updateMarsYearTable()
Updates the UTC time fields in the Mars_Year table based on the values of
the ephemeris time fields already in the table.
|
static void |
Usage()
|
boolean |
verbose()
Get the current verbose setting.
|
void |
verbose(boolean verbose)
Turn verbose mode on or off.
|
public static final java.lang.String ID
public static final java.lang.String DEFAULT_CONFIGURATION_FILENAME
public static final java.lang.String DEFAULT_LEAP_SECONDS_KERNEL
public static final int EXIT_SUCCESS
public static final int EXIT_CONFIGURATION_ERROR
public static final int EXIT_DATABASE_ERROR
public static final int EXIT_SPICE_ERROR
public static final int EXIT_COMMAND_LINE_SYNTAX_ERROR
public void updateMarsYearTable() throws PIRL.Database.Database_Exception
PIRL.Database.Database_Exception
- if the database query or update operations failsetUTCTimes(int, double, double)
public void setUTCTimes(int year, double start_time_et, double end_time_et) throws PIRL.Database.Database_Exception
year
- - The Mars year to be updatedstart_time_et
- - the start time of the year in ephemeris timeend_time_et
- - the end time of the year in ephemeris timePIRL.Database.Database_Exception
- if the database update operation fails for any
reasonpublic java.lang.String ephemerisTime2UTC(double et)
et
- public void verbose(boolean verbose)
verbose
- if set to true, status information will be sent to stdout as
records are processed, when set to off no output will be generated unless an
error occurs.public boolean verbose()
public static void main(java.lang.String[] arguments)
Usage()
method.
Exit Status Values
0 - Success
1 - Configuration Error
2 - Database Error
3 - SPICE Error
4 - Command Line Syntax Error
arguments
- Array of command line argumentspublic static void Usage()
Usage: Update_Mars_Year <Options> Options - [-Configuration <filename>] [-Verbose] [-Help]
This utility is for updating the UTC start and end times of the Mars Years listed in the Mars_Year table in HiCat.
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona