Go to the documentation of this file.
3 void fill_mstr(
int *mstr_last, mstr_struc *mstr, timqual_struc *init_info,
4 int ds_num,
int st_scan,
int en_scan)
41 printf(
"fill_mstr: filling master struct after index %d with input scans %d to %d\n",
42 *mstr_last, st_scan, en_scan);
46 mstr->msec[*mstr_last] = init_info->msec[0];
47 mstr->exist[*mstr_last] = 1;
48 mstr->qual[*mstr_last] = init_info->qual[0];
49 mstr->ds_num[*mstr_last] = ds_num;
50 mstr->scan[*mstr_last] = (int32_t) st_scan;
54 nscan = en_scan - in_st_scan;
61 step = (init_info->msec[in_st_scan] - mstr->msec[*mstr_last] + 60) /
69 if ((step > 900) || (step <= 0)) {
70 printf(
"fill_mstr: Unrealistic time gap found at scan %d\n",
72 printf(
" Gap of %d lines. Skipping this line\n",
77 "fill_mstr: gap of %d lines found in filling master at scan # %d\n",
79 for (
j = 0;
j < step - 1;
j++) {
80 mstr->exist[ *mstr_last + 1 ] = 0;
81 mstr->msec[ *mstr_last + 1 ] = mstr->msec[ *mstr_last ] + 124;
89 mstr->msec[*mstr_last] = init_info->msec[in_st_scan];
90 mstr->exist[*mstr_last] = 1;
91 mstr->qual[*mstr_last] = init_info->qual[in_st_scan];
92 mstr->ds_num[*mstr_last] = ds_num;
93 mstr->scan[*mstr_last] = (int32_t) in_st_scan;
void fill_mstr(int *mstr_last, mstr_struc *mstr, timqual_struc *init_info, int ds_num, int st_scan, int en_scan)