Go to the documentation of this file.
12 static const char *help_optionKeys[] = {
16 "dump_options_paramfile",
17 "dump_options_xmlfile",
23 "land_water_mask_path",
26 "NETCDF_LUT_PATH_LUN",
27 "CMNGEO_PARAM_LUT_LUN",
30 "SOLAR_DIFF_VOLT_LUT_LUN",
31 "SOLAR_DIFF_ROT_MAT_LUT_LUN",
32 "SDR_BB_TEMP_CONSTANTS_LUN",
33 "SDR_COEFF_A_LUT_LUN",
34 "SDR_COEFF_B_LUT_LUN",
35 "SDR_DELTA_C_LUT_LUN",
36 "SDR_DG_ANOMALY_DN_LIMITS_LUT_LUN",
38 "SDR_EMISSIVE_LUT_LUN",
43 "SDR_OBS_TO_PIXELS_LUT_LUN",
45 "SDR_RADIOMETRIC_PARAMS_LUN",
46 "SDR_REFLECTIVE_LUT_LUN",
49 "SDR_SOLAR_IRAD_LUT_LUN",
50 "SDR_TELEM_COEFFS_LUN",
51 "DNB_FRAME_TO_ZONE_LUN",
53 "SDR_F_PREDICTED_LUT_LUN",
54 "SDR_RELATIVE_SPECTRAL_RESPONSE_LUT_LUN",
55 "SDR_DNB_LGS_GAINS_LUT_LUN",
56 "SDR_DNB_GAIN_RATIOS_LUT_LUN",
58 "SDR_DNB_STRAY_LIGHT_CORRECTION_LUT_LUN",
59 "GEOLOCATION_DNB_PARAMS_LUN",
60 "GEOLOCATION_IMG_PARAMS_LUN",
61 "GEOLOCATION_MOD_PARAMS_LUN",
75 sprintf(tmpStr,
"Usage: generate_nc4luts argument-list\n\n");
77 strcat(tmpStr,
" This program takes a list of binary LUT files and generates a netcdf LUT.\n\n");
79 strcat(tmpStr,
" The argument-list is a set of keyword=value pairs. The arguments can\n");
80 strcat(tmpStr,
" be specified on the commandline, or put into a parameter file, or the\n");
81 strcat(tmpStr,
" two methods can be used together, with commandline over-riding.\n\n");
82 strcat(tmpStr,
"The list of valid keywords follows:\n");
106 char tmpStr[FILENAME_MAX];
111 if ((dataRoot = getenv(
"OCDATAROOT")) ==
NULL) {
112 fprintf(
stderr,
"-E- OCDATAROOT environment variable is not defined.\n");
120 sprintf(tmpStr,
"%s/common/generate_nc4luts_defaults.par", dataRoot);
128 fprintf(
stderr,
"-E- Too many command line parameters. Only one par file name allowed.\n");
142 if (sensorDir ==
NULL) {
143 fprintf(
stderr,
"-E- %s:%d - Could not find sensor directory for file %s\n",
149 if (subsensorDir ==
NULL) {
150 fprintf(
stderr,
"-E- %s:%d - Could not find subsensor directory for sensor %s\n",
156 sprintf(tmpStr,
"%s/%s/%s/instrument_defaults.par", dataRoot, sensorDir, subsensorDir);
clo_option_t * clo_addOption(clo_optionList_t *list, const char *key, enum clo_dataType_t dataType, const char *defaultVal, const char *desc)
const char * sensorId2SensorDir(int sensorId)
char * clo_getString(clo_optionList_t *list, const char *key)
void clo_readArgs(clo_optionList_t *list, int argc, char *argv[])
list(APPEND LIBS ${PGSTK_LIBRARIES}) add_executable(atteph_info_modis atteph_info_modis.c) target_link_libraries(atteph_info_modis $
int sensorId2SubsensorId(int sensorId)
void clo_setVersion2(const char *programName, const char *versionStr)
void clo_setSelectOptionKeys(char **keys)
void clo_setEnableDumpOptions(int val)
void clo_setHelpStr(const char *str)
void VL1_add_options(clo_optionList_t *list)
char * clo_getPositionString(clo_optionList_t *list, int pos)
void clo_addOptionAlias(clo_option_t *option, const char *alias)
void clo_readFile(clo_optionList_t *list, const char *fileName)
const char * sensorId2SensorName(int sensorId)
int VcstGetSensorId(const std::string &l1FileName)
int clo_getPositionNumOptions(clo_optionList_t *list)
const char * subsensorId2SubsensorDir(int subsensorId)