Go to the documentation of this file.
95 char *routine =
"get_pcf_config_data";
96 char buffer[PGSd_PC_VALUE_LENGTH_MAX] =
"";
97 const char *env_var[] = {
"OSTYPE",
"HOST",
"REVISION",
"MACHINE"};
98 #define ENVSTRS (sizeof env_var/sizeof env_var[0])
103 PGSt_SMF_status tempStatus;
105 if (pcf_config ==
NULL) {
112 if (PGS_SMF_TestSuccessLevel(tempStatus)) {
114 if (PGS_SMF_TestStatusLevel(tempStatus) >= PGS_SMF_MASK_LEV_E) {
116 strcat(buffer,
"could not be converted");
123 "The first granule start time could not be retrieved");
128 if (PGS_SMF_TestSuccessLevel(tempStatus)) {
130 if (PGS_SMF_TestStatusLevel(tempStatus) >= PGS_SMF_MASK_LEV_E) {
132 strcat(buffer,
"could not be converted");
139 "The last granule stop time could not be retrieved");
144 if (PGS_SMF_TestSuccessLevel(tempStatus))
149 "The granule time length could not be retrieved");
154 if (PGS_SMF_TestSuccessLevel(tempStatus))
155 pcf_config->
scan_rate = (PGSt_double) atof(buffer);
159 "The scan rate could not be retrieved");
164 if (!PGS_SMF_TestSuccessLevel(tempStatus)) {
167 "The L1A product version could not be retrieved");
172 if (!PGS_SMF_TestSuccessLevel(tempStatus)) {
175 "The MOD_PR01 LUT RCS Revision number could not be retrieved");
180 if (!PGS_SMF_TestSuccessLevel(tempStatus)) {
183 "The PGE version could not be retrieved");
188 if (!PGS_SMF_TestSuccessLevel(tempStatus)) {
192 "The satellite instrument string could not be retrieved");
204 if (tempStatus == PGSPC_W_NO_CONFIG_FOR_ID){
215 env_str = getenv(env_var[
i]);
224 strncat(
p, env_str, (
int)(pend-
p) );
229 else if (tempStatus != PGS_S_SUCCESS) {
232 "The ProcessingEnvironment string could not be retrieved");
238 if (!PGS_SMF_TestSuccessLevel(tempStatus)) {
241 "The ReprocessingActual string could not be retrieved");
247 if (!PGS_SMF_TestSuccessLevel(tempStatus)) {
250 "The ReprocessingPlanned string could not be retrieved");
#define PC_L1A_FIRST_GRAN_START_TIME
char pgeversion[PGSd_PC_VALUE_LENGTH_MAX]
char processingenvironment[PGSd_PC_VALUE_LENGTH_MAX]
char localversionid[PGSd_PC_VALUE_LENGTH_MAX]
#define PC_L1A_REPROCESS_ACTUAL
#define MODIS_E_GETCONFIG_FAILED
PGSt_double first_gran_start_time
#define PC_L1A_PGE_VERSION
void log_fmt_msg(PGSt_SMF_status code, const char *routine, const char *msg_fmt,...)
char reprocessingplanned[PGSd_PC_VALUE_LENGTH_MAX]
#define PC_L1A_PROCESSING_ENVIRONMENT
#define PC_L1A_REPROCESS_PLANNED
#define MODIS_E_UTC_TO_TAI_FAILED
#define PC_L1A_LUT_REVISION
PGSt_double last_gran_stop_time
char lutrevision[PGSd_PC_VALUE_LENGTH_MAX]
PGSt_double gran_time_length
#define PC_L1A_LAST_GRAN_STOP_TIME
PGSt_SMF_status get_pcf_config_data(PCF_CONFIG_t *pcf_config)
char reprocessingactual[PGSd_PC_VALUE_LENGTH_MAX]
#define MODIS_E_NULL_POINTER
#define PC_L1A_GRAN_TIME_LENGTH