98 char *routine =
"init_L1A_scan_meta_HDF_sdss";
100 char data_type[14][DATATYPELENMAX] = {I16,I16,TXT,R64,R64,R64,R64,
101 R64,I16,I16,I16,I16,I16,I32};
102 long int rank[14] = {1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2};
103 long int dimsizes[14][2] ={{0,0},{0,6},{0,10},{0,0},{0,0},{0,0},{0,0},
104 {0,0},{0,0},{0,0},{0,3},{0,0},{0,0},{0,4}};
105 char array_name[14][256] = {M01SCAN_NUMBER, M01FRAME_COUNT_ARRAY,
106 M01SCAN_TYPE, M01SD_START_TIME,
107 M01SRCA_START_TIME, M01BB_START_TIME,
108 M01SV_START_TIME, M01EV_START_TIME,
109 M01SRCA_CALIBRATION_MODE,
110 M01PACKET_SCAN_COUNT, M01CCSDS_APID,
111 M01PACKET_QL, M01MIRROR_SIDE,
112 M01SCAN_QUALITY_ARRAY};
114 PGSt_SMF_status returnStatus;
151 dimsizes[0][0] = dimsizes[1][0] = dimsizes[2][0] = dimsizes[3][0] = dimsizes[4][0] =
152 dimsizes[5][0] = dimsizes[6][0] = dimsizes[7][0] = dimsizes[8][0] = dimsizes[9][0] =
153 dimsizes[10][0] = dimsizes[11][0] = dimsizes[12][0] = dimsizes[13][0] = nscans;
179 for (
i=0;
i<14;
i++) {
180 if (createMODISarray(mfile, array_name[
i],
NULL, data_type[
i],
rank[
i],
181 dimsizes[
i]) == MFAIL)
184 sprintf(
msg,
"SDS Name: %s", array_name[
i]);
189 case 0:
if (putMODISarinfo(mfile, array_name[
i],
NULL, MFILL_VALUE,
190 data_type[
i], 1, &fill_zero) != MAPIOK)
193 sprintf(
msg,
"Could not initialize SDS to 0 for SDS Name: %s", array_name[
i]);
201 case 7:
if (putMODISarinfo(mfile, array_name[
i],
NULL, MFILL_VALUE,
202 data_type[
i], 1, &fill_time) != MAPIOK)
205 sprintf(
msg,
"Could not initialize SDS to 0 for SDS Name: %s", array_name[
i]);
213 case 12:
if (putMODISarinfo(mfile, array_name[
i],
NULL, MFILL_VALUE,
214 data_type[
i], 1, &fill_neg_one) != MAPIOK)
217 sprintf(
msg,
"Could not initialize SDS to 0 for SDS Name: %s", array_name[
i]);