117 char *routine =
"write_scan_data";
119 PGSt_SMF_status returnStatus;
120 long int start[3] = {0, 0, 0};
121 long int start_250[3] = {0, 0, 0};
122 long int start_500[3] = {0, 0, 0};
123 long int start_day[3] = {0, 0, 0};
124 long int start_night[3] = {0, 0, 0};
144 start[0] = scan_num - 1;
183 if (putMODISarray(L1A_file_ptr,M01SD_250M,
NULL,start_250,dimsize_cal_250,
186 sprintf(
msg,
"The SD 250m data could not be written to the L1A granule %s",
187 L1A_file_ptr->filename);
217 if (putMODISarray(L1A_file_ptr,M01SD_500M,
NULL,start_500,dimsize_cal_500,
220 sprintf(
msg,
"The SD 500m data could not be written to the L1A granule %s",
221 L1A_file_ptr->filename);
252 if (putMODISarray(L1A_file_ptr,M01SD_1KM_DAY,
NULL,start_day,dimsize_cal_day,
255 sprintf(
msg,
"The SD 1km day data could not be written to the L1A granule %s",
256 L1A_file_ptr->filename);
287 if (putMODISarray(L1A_file_ptr,M01SD_1KM_NITE,
NULL,start_night,dimsize_cal_night,
290 sprintf(
msg,
"The SD 1km_night data could not be written to the L1A granule %s",
291 L1A_file_ptr->filename);
322 if (putMODISarray(L1A_file_ptr,M01SRCA_250M,
NULL,start_250,dimsize_cal_250,
325 sprintf(
msg,
"The SRCA 250m data could not be written to the L1A granule %s",
326 L1A_file_ptr->filename);
357 if (putMODISarray(L1A_file_ptr,M01SRCA_500M,
NULL,start_500,dimsize_cal_500,
360 sprintf(
msg,
"The SRCA 500m data could not be written to the L1A granule %s",
361 L1A_file_ptr->filename);
392 if (putMODISarray(L1A_file_ptr,M01SRCA_1KM_DAY,
NULL,start_day,dimsize_cal_day,
395 sprintf(
msg,
"The SRCA 1km day data could not be written to the L1A granule %s",
396 L1A_file_ptr->filename);
427 if (putMODISarray(L1A_file_ptr,M01SRCA_1KM_NITE,
NULL,start_night,dimsize_cal_night,
430 sprintf(
msg,
"The SRCA 1km night data could not be written to the L1A granule %s",
431 L1A_file_ptr->filename);
461 if (putMODISarray(L1A_file_ptr,M01BB_250M,
NULL,start_250,dimsize_cal_250,
464 sprintf(
msg,
"The BB 250m data could not be written to the L1A granule %s",
465 L1A_file_ptr->filename);
495 if (putMODISarray(L1A_file_ptr,M01BB_500M,
NULL,start_500,dimsize_cal_500,
498 sprintf(
msg,
"The BB 500m data could not be written to the L1A granule %s",
499 L1A_file_ptr->filename);
530 if (putMODISarray(L1A_file_ptr,M01BB_1KM_DAY,
NULL,start_day,dimsize_cal_day,
533 sprintf(
msg,
"The BB 1km day data could not be written to the L1A granule %s",
534 L1A_file_ptr->filename);
565 if (putMODISarray(L1A_file_ptr,M01BB_1KM_NITE,
NULL,start_night,dimsize_cal_night,
568 sprintf(
msg,
"The BB 1km night data could not be written to the L1A granule %s",
569 L1A_file_ptr->filename);
599 if (putMODISarray(L1A_file_ptr,M01SV_250M,
NULL,start_250,dimsize_cal_250,
602 sprintf(
msg,
"The SV 250m data could not be written to the L1A granule %s",
603 L1A_file_ptr->filename);
633 if (putMODISarray(L1A_file_ptr,M01SV_500M,
NULL,start_500,dimsize_cal_500,
636 sprintf(
msg,
"The SV 500m data could not be written to the L1A granule %s",
637 L1A_file_ptr->filename);
668 if (putMODISarray(L1A_file_ptr,M01SV_1KM_DAY,
NULL,start_day,dimsize_cal_day,
671 sprintf(
msg,
"The SV 1km day data could not be written to the L1A granule %s",
672 L1A_file_ptr->filename);
703 if (putMODISarray(L1A_file_ptr,M01SV_1KM_NITE,
NULL,start_night,dimsize_cal_night,
706 sprintf(
msg,
"The SV 1km night data could not be written to the L1A granule %s",
707 L1A_file_ptr->filename);
746 if (putMODISarray(L1A_file_ptr, M01EV_250M,
NULL, start_250, dimsize,
749 sprintf(
msg,
"The EV 250m data could not be written to the L1A granule %s",
750 L1A_file_ptr->filename);
785 if (putMODISarray(L1A_file_ptr, M01EV_500M,
NULL, start_500, dimsize,
788 sprintf(
msg,
"The EV 500m data could not be written to the L1A granule %s",
789 L1A_file_ptr->filename);
825 if (putMODISarray(L1A_file_ptr, M01EV_1KM_DAY,
NULL, start_day, dimsize,
828 sprintf(
msg,
"The EV 1km day data could not be written to the L1A granule %s",
829 L1A_file_ptr->filename);
864 if (putMODISarray(L1A_file_ptr,M01EV_1KM_NITE,
NULL,start_night,dimsize,
867 sprintf(
msg,
"The EV 1km night data could not be written to the L1A granule %s",
868 L1A_file_ptr->filename);
903 if (putMODISarray(L1A_file_ptr,M01FPA_AEM_CONFIG,
NULL,
start,dimsize,
906 sprintf(
msg,
"The FPA/AEM Config data could not be written to the L1A granule %s",
907 L1A_file_ptr->filename);
939 if (putMODISarray(L1A_file_ptr,M01SCIENCE_STATE,
NULL,
start,dimsize
942 sprintf(
msg,
"The Science State data could not be written to the L1A granule %s",
943 L1A_file_ptr->filename);
974 if (putMODISarray(L1A_file_ptr,M01SCIENCE_ABNORM,
NULL,
start,dimsize,
977 sprintf(
msg,
"The Science Abnorm data could not be written to the L1A granule %s",
978 L1A_file_ptr->filename);
1012 if (putMODISarray(L1A_file_ptr,M01FPA_DCR_OFFSET,
NULL,
start,dimsize,
1015 sprintf(
msg,
"The PV & PC DCR Offset data could not be written to the L1A granule %s",
1016 L1A_file_ptr->filename);
1050 if (putMODISarray(L1A_file_ptr, M01RAW_MIR_ENC,
NULL,
start, dimsize,
1053 sprintf(
msg,
"The Mirror Encoder Times data could not be written to the L1A granule %s",
1054 L1A_file_ptr->filename);
1090 sprintf(
msg,
"The View Sector Definitions data could not be written to the L1A granule %s",
1091 L1A_file_ptr->filename);
1128 sprintf(
msg,
"The View Sector Actuals data could not be written to the L1A granule %s",
1129 L1A_file_ptr->filename);
1164 sprintf(
msg,
"The Raw Science Eng Data could not be written to the L1A granule %s",
1165 L1A_file_ptr->filename);
1202 sprintf(
msg,
"The Current/Prior HK Tlmy data could not be written to the L1A granule %s",
1203 L1A_file_ptr->filename);
1240 sprintf(
msg,
"The Current/Prior S/C Ancill data could not be written to the L1A granule %s",
1241 L1A_file_ptr->filename);
1278 sprintf(
msg,
"The Command Parameters data could not be written to the L1A granule %s",
1279 L1A_file_ptr->filename);
1314 sprintf(
msg,
"The PV Gains data could not be written to the L1A granule %s",
1315 L1A_file_ptr->filename);
1327 return (returnStatus);