76 char *routine =
"write_scan_metadata";
78 PGSt_SMF_status returnStatus;
80 long int dimsize[2] = {1,0};
81 long int dimsize_1[1] = {1};
118 if (putMODISarray(L1A_file_ptr, M01SCAN_NUMBER ,
NULL,
start, dimsize_1,
121 sprintf(
msg,
"The Scan number could not be written to the L1A granule %s ",
122 L1A_file_ptr->filename);
155 if (putMODISarray(L1A_file_ptr, M01FRAME_COUNT_ARRAY,
NULL,
start, dimsize,
158 sprintf(
msg,
"The Frame count array could not be written to the L1A granule: %s ",
159 L1A_file_ptr->filename);
191 if (putMODISarray(L1A_file_ptr, M01SCAN_TYPE,
NULL,
start, dimsize,
194 sprintf(
msg,
"The Scan Type could not be written to the L1A granule %s",
195 L1A_file_ptr->filename);
225 if (putMODISarray(L1A_file_ptr, M01SD_START_TIME,
NULL,
start, dimsize_1,
228 sprintf(
msg,
"The SD start time could not be written to the L1A granule %s",
229 L1A_file_ptr->filename);
260 if (putMODISarray(L1A_file_ptr, M01SRCA_START_TIME,
NULL,
start, dimsize_1,
263 sprintf(
msg,
"The SRCA start time could not be written to the L1A granule %s",
264 L1A_file_ptr->filename);
294 if (putMODISarray(L1A_file_ptr, M01BB_START_TIME,
NULL,
start, dimsize_1,
297 sprintf(
msg,
"The BB start time could not be written to the L1A granule %s",
298 L1A_file_ptr->filename);
328 if (putMODISarray(L1A_file_ptr, M01SV_START_TIME,
NULL,
start, dimsize_1,
331 sprintf(
msg,
"The SV start time could not be written to the L1A granule %s",
332 L1A_file_ptr->filename);
362 if (putMODISarray(L1A_file_ptr, M01EV_START_TIME,
NULL,
start, dimsize_1,
365 sprintf(
msg,
"The EV start time could not be written to the L1A granule %s",
366 L1A_file_ptr->filename);
397 if (putMODISarray(L1A_file_ptr, M01SRCA_CALIBRATION_MODE,
NULL,
start, dimsize_1,
400 sprintf(
msg,
"The SRCA calibration mode could not be written to the L1A granule %s",
401 L1A_file_ptr->filename);
432 if (putMODISarray(L1A_file_ptr, M01PACKET_SCAN_COUNT,
NULL,
start, dimsize_1,
435 sprintf(
msg,
"The Packet scan count could not be written to the L1A granule %s",
436 L1A_file_ptr->filename);
470 if (putMODISarray(L1A_file_ptr, M01CCSDS_APID,
NULL,
start, dimsize,
473 sprintf(
msg,
"The CCSDS Application Identifiers could not be written to the L1A granule %s",
474 L1A_file_ptr->filename);
506 if (putMODISarray(L1A_file_ptr, M01PACKET_QL,
NULL,
start, dimsize_1,
509 sprintf(
msg,
"The Packet expedited data flag could not be written to the L1A granule %s",
510 L1A_file_ptr->filename);
540 if (putMODISarray(L1A_file_ptr, M01MIRROR_SIDE,
NULL,
start, dimsize_1,
543 sprintf(
msg,
"The Mirror side could not be written to the L1A granule %s",
544 L1A_file_ptr->filename);
577 if (putMODISarray(L1A_file_ptr, M01SCAN_QUALITY_ARRAY,
NULL,
start, dimsize,
580 sprintf(
msg,
"The Scan quality array could not be written to the L1A granule %s",
581 L1A_file_ptr->filename);
593 return (returnStatus);