projects/themis/spin/
segment_test.pro
NAME: SEGMENT_TEST.PRO PURPOSE: Check a spinmodel segment structure to ensure that the model parameters b and c are consistent with the start and end times and spin counts CATEGORY: TDAS CALLING SEQUENCE: segment_test,probe,segment,result INPUTS: probe: A single character probe letter (only used in output messages). segment: A spinmodel_segment structure. OUTPUTS: result: 0 for failure, 1 for success KEYWORDS: None. PROCEDURE: Calls segment_interp_t to get spin count and spin phase at segment start/end times. Calls segment_interp_n to get sun pulse times of segment start/end counts. Cross check results of segment_interp_t and segment_interp_n, verifying that interp_t and interp_n results are consistent within modest tolerances (100 usec for times, 0.1 deg for phase angles). Check maxgap field against 4-hour threshold; large gaps are likely a result of missing data. EXAMPLE: mptr=spinmodel_get_ptr('a') sptr=(*mptr).segs_ptr segment_test,'a',(*sptr)[0],result Written by: Jim Lewis (jwl@ssl.berkeley.edu) Change Date: 2007-10-08
Routines
File attributes
Modification date: | Thu Feb 13 16:42:34 2014 |
Lines: | 31 |