Go to the documentation of this file.
12 MODFILE **L1A_file_ptr)
71 char *routine =
"create_L1A_granule";
73 PGSt_SMF_status returnStatus;
74 PGSt_SMF_status PGS_status;
75 PGSt_integer L1A_version_num;
76 static PGSt_integer
version = 0;
77 char L1A_filename[256];
215 if (PGS_SMF_TestSuccessLevel(PGS_status) != PGS_TRUE)
219 "The L1A filename could not be retrieved from the PCF file");
224 *L1A_file_ptr = openMODISfile(L1A_filename,
"w");
225 if (*L1A_file_ptr ==
NULL)
228 sprintf(
msg,
"The L1A filename %s could not be opened", L1A_filename);
237 sprintf(
msg,
"The L1A HDF vdatas could not be created for file: %s",
240 if (completeMODISfile(L1A_file_ptr,
NULL,
NULL,
244 sprintf(
msg,
"The L1A file: %s could not be closed properly",
255 sprintf(
msg,
"The L1A HDF sdss could not be created for file: %s",
258 if (completeMODISfile(L1A_file_ptr,
NULL,
NULL,
262 sprintf(
msg,
"The L1A file: %s could not be closed properly",
274 return (returnStatus);
PGSt_SMF_status create_L1A_granule(EN_VDATA_TYPE_t *eng_data, int16 nscans, MODFILE **L1A_file_ptr)
#define MODIS_E_CREATE_L1A_GRANULE
PGSt_SMF_status init_L1A_HDF_vdatas(EN_VDATA_TYPE_t *eng_data, MODFILE *L1A_file)
#define PC_L1A_PROD_PCF_ID
void log_fmt_msg(PGSt_SMF_status code, const char *routine, const char *msg_fmt,...)
PGSt_SMF_status init_L1A_HDF_sdss(MODFILE *L1A_file_ptr, int16 nscans)