chktc Syntax: chktc [cusp_id] [pin] [set] [dt] Function: Scans the irig-e time code sample series found in the event .grm file for the correct number of samples per time code pulse. Lists all occurences where the number of data samples per pulse does not equal the expected value (see example). Program output lists the pulse counts, ending sample offset from the start of the series, the "calculated" time at end of pulse with abnormal count and a time correction. The correction can be added to the stated time to recover "true" time only if the sampling interval is correct and the counts-per-pulse constant is correct. These constants cannot be assumed to be correct. Input: 4 optional arguments; 3 integer and 1 real. Except for id, the program assumes last values specified until changed. cusp_id = id of event .mem file. If not specified, interactive mode is assumed, the program will prompt for input arguments. In interactive mode the program loops back to prompt; to exit type ^Z or enter an cusp_id less than or equal to "0". pin = integer number of time code channel in .mem file; DEFAULT = 1 set = integer number of data set in .mem file; DEFAULT = 1 dt = ideal sample interval (seconds). DEFAULT = 0.01 seconds. Example $pwd data/92/92jul $ls x123587.mem x123587.mem (check for existance of data file $chktc 123587 2 cusp_mem_id: 123587 tc:irg2 max_tc_samples: 10400 cnts_per_pulse: 10 pin: 2 set: 1 tc_test_pulses: 100 average time_pulse_height: 314.1327 1st_pulse sample_cnt: 4 expected last_pulse sample_cnt: 10394 pulse_cnts end_offset t ?tcorr(s)? 09 5203 1988 sep 9 1147 21.89 0.010 0.010 pulses expected: 1039 found: 1039 number of corrupted time intervals: 1