Go to the documentation of this file.
6 PGSt_double next_scan_start_time,
7 int8 *previous_scan_count,
9 PGSt_IO_L0_VirtualDataSet *L0_file )
104 enum {NOPACKETPROCESSED, NOPACKETSHARETIME, MORETHANONEPACKETSHARETIME};
113 *previous_scan_count = pkt_header->
scan_cnt;
122 next_scan_start_time)
125 *previous_scan_count = pkt_header->
scan_cnt;
134 else if (pkt_header->
scan_cnt != *previous_scan_count)
140 (((*previous_scan_count+1)%8) == pkt_header->
scan_cnt &&
141 (next_pkt_header->
pkt_TAI_time >= next_scan_start_time ||
148 *previous_scan_count = pkt_header->
scan_cnt;
149 for (
i=0;
i<5;
i++) {
159 else switch (scan_proc_state[hash_key].sector_packet_count)
161 case NOPACKETPROCESSED :
166 case NOPACKETSHARETIME :
168 if (scan_proc_state[hash_key].pkt_TAI_time == pkt_header->
pkt_TAI_time)
170 MORETHANONEPACKETSHARETIME;
174 case MORETHANONEPACKETSHARETIME :
176 if (scan_proc_state[hash_key].pkt_TAI_time != pkt_header->
pkt_TAI_time)
#define PH_MOD_SOURCE_ID_CAL_TYPE_NUM_BITS
#define MODIS_E_SCANCNT_NOT_VALID
PGSt_SMF_status process_next_packet(PGSt_IO_L0_VirtualDataSet *L0_file, PH_PACKET_HEADER_t **packet_header)
#define SC_SCAN_RATE_TOLERANCE
#define MODIS_E_INV_PKT_TIME
#define PH_MOD_SOURCE_ID_TYPE_FLAG_CAL
PGSt_SMF_status packet_of_scan(PH_PACKET_HEADER_t *pkt_header, PGSt_double next_scan_start_time, int8 *previous_scan_count, SC_SCAN_PROC_STATE_t *scan_proc_state, PGSt_IO_L0_VirtualDataSet *L0_file)
#define MODIS_M_PKT_NOT_IN_SCAN