|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--grs.spice.TimeConverter
Time Conversion functions that use the SPICE JNI functions. Make sure libJavaSpice.so is on your java.library.path.
| Field Summary | |
static int |
odysseyId
|
static SimpleDateFormat |
spiceTimeFormat
|
| Constructor Summary | |
TimeConverter()
|
|
| Method Summary | |
static Date |
CLOCKtoDate(String clock,
int scId)
Convert spacecraft clock string to UTC Date object. |
static double |
CLOCKtoTICKS(String clock,
int scId)
Convert spacecraft clock string to ticks. |
static String |
CLOCKtoUTC(String clock,
int scId)
Convert spacecraft clock string to UTC time. |
static double |
DatetoET(Date date,
int scId)
|
static double |
DatetoLS(Date date)
|
static double |
DatetoSCLK(Date utc,
int scId)
Convert a Date Object to a spacecraft time in ticks. |
static double |
ETtoSCLK(double et,
int scId)
Convert a J2000 ephemeris time to a spacecraft time. |
static String |
ETtoUTC(double et)
Convert a J2000 epheremis time to UTC. |
static long |
getCurrentSCLK()
Return current time in ticks. |
static Date |
SCLKtoDate(double ticks,
int scId)
Convert a spacecraft time in ticks to a Date. |
static double |
SCLKtoET(double ticks,
int scId)
Convert a spacecraft time in ticks to ephemeris time. |
static double |
SCLKtoLS(long ticks)
|
static String |
SCLKtoUTC(double ticks,
int scId)
Convert a spacecraft time in ticks to a UTC time. |
static String |
SCLKtoUTC(long ticks,
int scId)
Convert a spacecraft time in ticks to a UTC time. |
static String |
TICKStoCLOCK(double ticks,
int scId)
Convert spacecraft ticks to a spacecraft clock string (includes partition). |
static double |
UTCtoET(String utc)
Convert a UTC time to J2000 epheremis time. |
static double |
UTCtoLS(String utc)
|
static double |
UTCtoSCLK(String utc,
int scId)
Convert a UTC time to a spacecraft time in ticks. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int odysseyId
public static final SimpleDateFormat spiceTimeFormat
| Constructor Detail |
public TimeConverter()
| Method Detail |
public static final long getCurrentSCLK()
throws SpiceException
SpiceException - Internal Error
public static final String CLOCKtoUTC(String clock,
int scId)
throws SpiceException
scId - NAIF id
SpiceException
public static final Date CLOCKtoDate(String clock,
int scId)
throws SpiceException
scId - NAIF id
SpiceException
public static final double UTCtoSCLK(String utc,
int scId)
throws SpiceException
scId - the NAIF spacecraft id, as defined
in the SPICE toolkit's naif_ids.req. Odyssey ID is -53.utc - Time in form YYYY Mon DD HR:MN:SC.###
SpiceException - Make sure utc is in format
public static final double DatetoSCLK(Date utc,
int scId)
throws SpiceException
scId - the NAIF spacecraft id, as defined
in the SPICE toolkit's naif_ids.req. Odyssey ID is -53.utc - Date object corresponding to a UTC time
SpiceException - Make sure Date is in UTC
public static final String SCLKtoUTC(double ticks,
int scId)
throws SpiceException
ticks - S/C Clock ticks (256 per second).
SpiceException - Most likely the S/C time is not within the SCLK partition
public static final double SCLKtoET(double ticks,
int scId)
throws SpiceException
ticks - S/C Clock ticks (256 per second).
SpiceException - Most likely the S/C time is not within the SCLK partition
public static final double DatetoET(Date date,
int scId)
throws SpiceException
SpiceException
public static final Date SCLKtoDate(double ticks,
int scId)
throws SpiceException
ticks - S/C Clock ticks (256 per second).
SpiceException - Most likely the S/C time is not within the SCLK partition
public static final String SCLKtoUTC(long ticks,
int scId)
throws SpiceException
ticks - S/C Clock ticks (256 per second).scId - the NAIF spacecraft id, as defined
in the SPICE toolkit's naif_ids.req. Odyssey ID is -53.
SpiceException - Most likely the S/C time is not within the SCLK partition
public static final double CLOCKtoTICKS(String clock,
int scId)
throws SpiceException
scId - the NAIF spacecraft id, as defined
in the SPICE toolkit's naif_ids.req. Odyssey ID is -53.
SpiceException - Most likely the S/C time is not within the SCLK partition
public static final String TICKStoCLOCK(double ticks,
int scId)
throws SpiceException
ticks - S/C Clock ticks (256 per second).scId - the NAIF spacecraft id, as defined
in the SPICE toolkit's naif_ids.req. Odyssey ID is -53.
SpiceException - Most likely the S/C time is not within the SCLK partition
public static final String ETtoUTC(double et)
throws SpiceException
et - J2000 ephemeris time (seconds since noon January 01, 2000).
SpiceException
public static final double ETtoSCLK(double et,
int scId)
throws SpiceException
et - J2000 ephemeris time (seconds since noon January 01, 2000).scId - the NAIF spacecraft id, as defined
in the SPICE toolkit's naif_ids.req. Odyssey ID is -53.
SpiceException
public static final double UTCtoET(String utc)
throws SpiceException
utc - Time in form YYYY MON DD HR:MN:SC.###
SpiceException
public static final double SCLKtoLS(long ticks)
throws SpiceException
SpiceException
public static final double UTCtoLS(String utc)
throws SpiceException
utc - Time in form YYYY MON DD HR:MN:SC.###
SpiceException
public static final double DatetoLS(Date date)
throws SpiceException
SpiceException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||