13 #define HETE_PECULIAR 0
27 #define MAX_WEEKS 8192
51 #define TAI_UTC_DATA "%s/%s/tai-utc.dat"
52 #define Ht_LIFETIMES "%s/%s/gps-dw%1x.dat"
53 #define Ht_IBEXTIMES "%s/%s/gps-sc%1x.dat"
54 #define Ht_DATACALSC "data/calibration/sc"
105 #define TAI_GPS_DELTA 19
106 #define JD_GPS_EPOCH (2444239.5 + 5.0)
107 #define JD_UNIX_EPOCH (2440587.5)
133 #define TDT_TAI_DELTA 32.184
134 #define TDT_GPS_DELTA 51.184
137 #define J2000_EPOCH 630763200.000000
139 #define SPICE_ET_ORIGIN 630763148.816000
143 #define SPICE_ET_TYPE_GPS 0
144 #define SPICE_ET_TYPE_TAI 1
145 #define SPICE_ET_TYPE_TDT 2
146 #define SPICE_ET_TYPE_TDB 3
147 #define SPICE_ET_TYPE_UTC 4
154 #define HOPS_ROOT_EPOCH 283996800
155 #define HOPS_ROOT_BREAK 1519659904
172 typedef struct timeval
UTime;
215 #define THIS_IS_IBEX ((Ht_hete_epoch & 0x30) == 0x30)
216 #define EPOCH_IBEX(N) (0x30|(N))
277 extern GTime Ht_IPP_to_GPS(IPP_header *hdr,
HtErr *err);
296 #define Ht_STR_NTYP 0x000
297 #define Ht_STR_UTYP 0x100
298 #define Ht_STR_UTNX 0x101
299 #define Ht_STR_UTPS 0x102
300 #define Ht_STR_USVN 0x103
301 #define Ht_STR_UTDT 0x104
302 #define Ht_STR_ISOT 0x105
303 #define Ht_STR_ISON 0x106
304 #define Ht_STR_ISOM 0x107
305 #define Ht_STR_UTRL 0x108
306 #define Ht_STR_HOPS 0x109
307 #define Ht_STR_PLOG 0x10A
308 #define Ht_STR_ADAT 0x10B
309 #define Ht_STR_UGPS 0x110
310 #define Ht_STR_UWKS 0x120
312 #define Ht_STR_MAES 0x139
313 #define Ht_STR_MY4D 0x13A
314 #define Ht_STR_MY2D 0x13B
315 #define Ht_STR_MY0D 0x13C
316 #define Ht_STR_MY4C 0x13D
317 #define Ht_STR_MY2C 0x13E
318 #define Ht_STR_MY0C 0x13F
319 #define Ht_STR_UGRB 0x140
320 #define Ht_STR_JDAY 0x160
321 #define Ht_STR_MODJ 0x161
322 #define Ht_STR_PLAN 0x170
323 #define Ht_STR_FILE 0x171
324 #define Ht_STR_FILH 0x172
325 #define Ht_STR_Y2DS 0x180
326 #define Ht_STR_Y4DS 0x181
327 #define Ht_STR_YDOY 0x182
328 #define Ht_STR_PGMI 0x190
329 #define Ht_STR_VEXT 0x1A0
330 #define Ht_STR_VDIF 0x1A1
331 #define Ht_STR_RDBE 0x1A2
332 #define Ht_STR_HTYP 0x200
334 #define Ht_STR_HTTS 0x201
336 #define Ht_STR_HT0x 0x202
337 #define Ht_STR_HT0X 0x204
338 #define Ht_STR_HT00 0x208
339 #define Ht_STR_HT03 0x210
341 #define Ht_STR_HT0E 0x210
343 #define Ht_STR_NULL 0x300
346 #define Ht_HETE_TIME_HELP "\n\
348 time_code: (epoch time[2] time[1] time[0]:)\n\
349 0x0000 [0x0000 [0x0000 [0x0000]]]\n\
350 0X0000 [0X0000 [0X0000 [0X0000]]]\n\
351 0000 [0000 [0000 [0000]]]\n\
354 (the epoch is implicit)\n\
358 #define Ht_IBEX_TIME_HELP "\n\
359 Parse-able IBEX time formats:\n\
361 relative: +|- integer [us|ms|s|m|h|d|y]\n\
362 +|- float [us|ms|s|m|h|d|y]\n\
363 +|- integer [(s)i(dereal)|(sy)n(odic)] (lunar months)\n\
366 GPS seconds: secs.[usecs]\n\
367 GPS time: weeks#secs[.usecs]\n\
368 (# == any non-space)\n\
369 PASS time: [19]990613_054700[.000000]\n\
370 DATE string: [Thu] Jun 13 05:47:00[.000000] UTC 1996\n\
371 (GMT may replace UTC) or the variant\n\
372 [Thu] 13 Jun 1996 05:47:00 AM UTC\n\
373 GRB time: YYMMDD+SOD (UTC)\n\
374 YDS time: YYYY/DOY/SOD (UTC)\n\
376 PLAN time: YYYY/DOY.HHMMSS\n\
377 FILE time: YYYY_DOY_HHMM\n\
379 MAESTRO time: YYYY/MM:DD:HH:MM:SS\n\
380 or [[YY]YY:]DOY:HH:MM:SS\n\
381 or [[YY]YY.]DOY.HH.MM.SS\n\
382 SVN time: YYYY-MM-DD HH:MM:SS[.uuuuuu][Z]\n\
383 ISO time: YYYY-MM-DDTHH:MM:SS[.uuuuuu][Z]\n\
384 MPS time: YYYY-MM-DDTHH:MM:SS[.mmm][Z]\n\
385 PIGMI time: YYYYMMDDHHMMSSmmm\n\
386 VLBI vex: [YY]YYyDOYdHHhMMmSS.ffffs\n\
387 VLBI s/e: EE@ssssssss.ffff (EE<64)\n\
389 time_code: (epoch time[2] time[1] time[0]:)\n\
390 0x0030 [0xXXXX [0xXXXX [0xXXXX]]] (w/epoch)\n\
391 0xXXXX [0xXXXX [0xXXXX]] (no epoch)\n\
393 Julian day: days.[fday] (both of these are restricted to\n\
394 Modified JD: days.[fday] the epoch 50000 < MJD < 70000)\n\
396 HOPS rootcode: unix clock base 26\n\
431 #define Ht_DS_MJUL 10
432 #define Ht_DS_Y2DS 11
433 #define Ht_DS_Y4DS 12
434 #define Ht_DS_UWKS 13
435 #define Ht_DS_USVN 14
436 #define Ht_DS_USVZ 15
437 #define Ht_DS_ISON 16
438 #define Ht_DS_ISOT 17
439 #define Ht_DS_PGMI 18
440 #define Ht_DS_ISOM 19
441 #define Ht_DS_MAES 20
442 #define Ht_DS_PLAN 21
443 #define Ht_DS_FILE 22
444 #define Ht_DS_MY4D 23
445 #define Ht_DS_MY4C 24
446 #define Ht_DS_FILH 25
447 #define Ht_DS_HOPS 26
448 #define Ht_DS_UTRL 27
449 #define Ht_DS_VEXT 28
450 #define Ht_DS_VDIF 29
451 #define Ht_DS_RDBE 30
452 #define Ht_DS_PLOG 31
453 #define Ht_DS_ADAT 32
454 #define Ht_DS_NUMB 33
477 extern int Ht_julday(
int mm,
int id,
int iyyy);
499 #define Ht_JULIAN_EPOCH_IS_UTC (-666)
int base
Definition: fourfit3.c:62
unsigned short IPP_word
Definition: hetetimecode.h:12
Definition: hetetimecode.h:15
int rtype
Definition: hops_time.h:16
void Ht_dump_lives(char *file)
Definition: lifetime.c:291
time_code HTime
Definition: htime.h:63
HTLdbl error
Definition: htime.h:231
UTime Ht_now_UTC(HtErr *err)
Definition: htime.c:982
HTLdbl Ht_TAI_to_GPS(HTLdbl tai)
Definition: eph_time.c:45
HTLdbl Ht_HTC_to_secs(HTime ht)
Definition: lifetime.c:550
HTLdbl Ht_d_orig
Definition: htime.h:539
UTime Ht_HTC_to_UTC(HTime ht, HtErr *err)
Definition: htime.c:966
int Ht_update_interval
Definition: lifetime.c:18
int Ht_tz_unset
Definition: lifetime.c:22
void Ht_reset(void)
Definition: lifetime.c:505
HTime Ht_now_HTC(HtErr *err)
Definition: htime.c:1004
void Ht_format_help(void)
Definition: rtype.c:19
GTime Ht_UTC_to_GPS(UTime ut, HtErr *err)
Definition: leapsec.c:168
UTime Ht_GPS_to_UTC(GTime gt, HtErr *err)
Definition: leapsec.c:293
HTLdbl Ht_default_error
Definition: htime.c:938
HTLdbl HtErr
Definition: htime.h:81
GTime start
Definition: htime.h:228
HTLdbl Ht_GPS_to_TDT(HTLdbl gps)
Definition: eph_time.c:29
GTime Ht_julday_to_GPS(HTLdbl julian)
Definition: leapsec.c:405
int Ht_asserted_string_type
Definition: lifetime.c:30
GTime Ht_HTC_to_GPS(HTime ht, HtErr *err)
Definition: lifetime.c:640
GTime Ht_leapsecs_since_J2000(GTime gt)
Definition: leapsec.c:202
GTime Ht_modjul_to_GPS(HTLdbl modjul)
Definition: leapsec.c:438
char * Ht_HTC_to_string(HTime ht, int style)
Definition: htime.c:1736
int Ht_delta_setup(char *type, char *base)
Definition: htime.c:717
IPP_word Ht_hete_epoch
Definition: lifetime.c:21
HTLdbl span
Definition: htime.h:229
HTime Ht_UTC_to_HTC(UTime ut, HtErr *err)
Definition: htime.c:954
HTLdbl Ht_TDB_to_TDT(HTLdbl tdb)
Definition: eph_time.c:66
HTLdbl Ht_GPS_to_julian(GTime gps)
Definition: leapsec.c:423
int Ht_julday(int mm, int id, int iyyy)
Definition: leapsec.c:344
HTime Ht_string_to_HTC(char *s, HtErr *err)
Definition: htime.c:1505
UTime pass_str2ut(char *s)
Definition: htime.c:397
HTLdbl Ht_GPS_to_TAI(HTLdbl gps)
Definition: eph_time.c:40
int Ht_vdif_epoch(void)
Definition: htime.c:889
HLife * Ht_lifetimes
Definition: lifetime.c:17
int Ht_dwab_dwdelta
Definition: lifetime.c:36
HLife * old
Definition: htime.h:237
void Ht_spice_sprintf(char *b, char *tla, HTLdbl t)
Definition: eph_time.c:112
HLife * next
Definition: htime.h:235
char * Ht_GPS_to_string(GTime gt, int style)
Definition: htime.c:1761
HTLdbl esc_dt
Definition: htime.h:233
int Ht_string_type(char *s)
Definition: htime.c:1142
HLife * last
Definition: htime.h:234
GTime Ht_string_to_GPS(char *s, HtErr *err)
Definition: htime.c:1513
HTLdbl GTime
Definition: htime.h:80
char * Ht_life_file
Definition: lifetime.c:35
HTLdbl Ht_dwab_dw_mult
Definition: lifetime.c:37
GTime Ht_julian_to_GPS(HTLdbl julian)
Definition: leapsec.c:418
HTLdbl Ht_GPS_to_modjul(GTime gps)
Definition: leapsec.c:445
HTLdbl dsc_dt
Definition: htime.h:232
HTLdbl Ht_TDT_to_TDB(HTLdbl tdt)
Definition: eph_time.c:59
GTime Ht_gps_origin
Definition: lifetime.c:25
int Ht_julian_epoch(void)
Definition: leapsec.c:271
HTLdbl Ht_leapsecs_from_year_start_to_gps(int year, GTime gps)
Definition: leapsec.c:255
GTime Ht_now_GPS(HtErr *err)
Definition: htime.c:992
HTime Ht_GPS_to_HTC(GTime gt, HtErr *err)
Definition: lifetime.c:658
HTLdbl Ht_TDT_to_GPS(HTLdbl tdt)
Definition: eph_time.c:34
char * Ht_UTC_to_string(UTime ut, int style)
Definition: htime.c:1539
HTime Ht_secs_to_HTC(HTLdbl s)
Definition: lifetime.c:574
char * Ht_convert_et_to_gps(char *arg, int eph_type)
Definition: eph_time.c:89
int Ht_rtype_to_style(char *rtype)
Definition: rtype.c:69
int Ht_qtype_to_style(char *rtype)
Definition: rtype.c:150
int Ht_suppress_Z
Definition: lifetime.c:28
HLife * Ht_last_life
Definition: lifetime.c:47
struct timeval UTime
Definition: htime.h:172
HTime birth
Definition: htime.h:230
UTime Ht_string_to_UTC(char *s, HtErr *err)
Definition: htime.c:1521
HTLdbl Ht_d_mult
Definition: lifetime.c:32
int Ht_ephem_type(char *)
Definition: eph_time.c:75
HTLdbl Ht_delta_value(char *s, HTLdbl *pterror)
Definition: htime.c:739
void Ht_initialize(void)
Definition: lifetime.c:496
int Ht_string_min_len
Definition: lifetime.c:26
t
Definition: picking_aedit.py:14
double HTLdbl
Definition: time_float_type.h:22