Go to the documentation of this file.
10 PGSt_IO_L0_VirtualDataSet *L0_file,
11 PGSt_double *start_time,
12 PGSt_double *stop_time)
93 char *routine =
"get_valid_L0_file";
94 PGSt_SMF_status returnStatus;
95 PGSt_SMF_status PGS_status;
97 PGSt_integer version_num;
98 char file_name[PGSd_PC_VALUE_LENGTH_MAX];
99 PGSt_double scan_rate;
100 char scan_rate_string[PGSd_PC_VALUE_LENGTH_MAX];
110 if (PGS_SMF_TestSuccessLevel(PGS_status) != PGS_TRUE) {
111 sprintf(
msg,
"Unable to retrieve L0 file name. LUN: %u Version: %d",
124 start_time, stop_time);
126 if (PGS_SMF_TestSuccessLevel(PGS_status) != PGS_TRUE) {
128 sprintf(
msg,
"PGS_IO_L0_Open could not open the L0 file successfully LUN: %u",
135 if (PGS_SMF_TestSuccessLevel(PGS_status) == PGS_TRUE)
136 scan_rate = (PGSt_double) atof(scan_rate_string);
140 "The scan rate could not be retrieved from pcf file");
147 sprintf(
msg,
"L0 data set does not correspond with granule times\n"
148 "L0 Start/Stop: %f %f\nPCF Start/Stop: %f %f", *start_time, *stop_time,
162 return (returnStatus);
#define MODIS_E_GET_VALID_L0_FILE
PGSt_PC_Logical global_L0_logical
char global_input_pointer[MAX_INPUTS][PGSd_PC_VALUE_LENGTH_MAX]
#define PC_CURRENT_L0_PCF_ID
PGSt_SMF_status get_valid_L0_file(PGSt_tag spacecraft_tag, PGSt_IO_L0_VirtualDataSet *L0_file, PGSt_double *start_time, PGSt_double *stop_time)
#define MODIS_E_GETCONFIG_FAILED
void log_fmt_msg(PGSt_SMF_status code, const char *routine, const char *msg_fmt,...)
PGSt_double global_last_gran_stop_time
PGSt_double global_first_gran_start_time
How many dimensions is the output array Default is Not sure if anything above will work correctly strcpy(l2prod->title, "no title yet")