Go to the documentation of this file.
108 afrt_global_optionList =
list;
112 if(afrt_global_optionList ==
NULL) {
113 cerr <<
"afrt_get_optionList: optionList pointer needs to be set before accessing." << endl;
116 return afrt_global_optionList;
120 if(afrt_global_optionList ==
NULL) {
121 cerr <<
"afrt_get_option: optionList pointer needs to be set before accessing." << endl;
128 char *ocdataroot_str = getenv(
"OCDATAROOT");
129 if (ocdataroot_str == 0x0) {
130 printf(
"Environment variable OCDATAROOT not defined.\n");
134 if (
result.compare(0, 10,
"$OCDATAROOT") == 0)
135 result.replace(0, 10, ocdataroot_str);
140 if(afrt_global_optionList ==
NULL) {
141 cerr <<
"afrt_get_option: optionList pointer needs to be set before accessing." << endl;
152 if(afrt_global_optionList ==
NULL) {
153 cerr <<
"afrt_get_option: optionList pointer needs to be set before accessing." << endl;
164 if(afrt_global_optionList ==
NULL) {
165 cerr <<
"afrt_get_option: optionList pointer needs to be set before accessing." << endl;
176 if(afrt_global_optionList ==
NULL) {
177 cerr <<
"afrt_get_option: optionList pointer needs to be set before accessing." << endl;
188 if(afrt_global_optionList ==
NULL) {
189 cerr <<
"afrt_get_option: optionList pointer needs to be set before accessing." << endl;
200 if(afrt_global_optionList ==
NULL)
201 afrt_global_optionList =
list;
278 desc +=
"This program can also accept a PCF file. The PCF file option names take\n";
279 desc +=
"precedence over the standard option parameters even if the standard option\n";
280 desc +=
"is on the command line. To over ride an option in a PCF file, use the PCF\n";
281 desc +=
"option name on the command line.\n";
286 vector<string> sourcesList;
290 for(vector<string>::iterator it = sourcesList.begin(); it < sourcesList.end(); it++) {
302 for (
int i=1;
i<argc;
i++) {
const std::string INPUT_CLOUD_BOTTOM
clo_option_t * clo_addOption(clo_optionList_t *list, const char *key, enum clo_dataType_t dataType, const char *defaultVal, const char *desc)
void afrt_set_optionList(clo_optionList_t *list)
const std::string INPUT_HUMIDITY
const std::string INPUT_ATM_RT1
const std::string ODIR_PHS
const std::string INPUT_ITRANS
list(APPEND LIBS ${PGSTK_LIBRARIES}) add_executable(atteph_info_modis atteph_info_modis.c) target_link_libraries(atteph_info_modis $
double clo_getOptionDouble(clo_option_t *option)
const std::string INPUT_ISET
double * clo_getOptionDoubles(clo_option_t *option, int *count)
const std::string INPUT_WAVELENGTHS
double afrt_get_option_double(const std::string &name)
const std::string INPUT_IPROB
const std::string INPUT_SEA_NR
const std::string ODIR_RT1
const std::string INPUT_TAU_INDEX
const std::string OFILE_NC4
const std::string INPUT_RAYLEIGH
const std::string INPUT_ACTFLX
const std::string OFILE_RT2
const std::string INPUT_DELTA_TAU
double * afrt_get_option_doubles(const std::string &name, int &count)
clo_option_t * clo_findOption(clo_optionList_t *list, const char *key)
const std::string INPUT_AEROSOLS
const std::string INPUT_OPTDEPTHS
int clo_getOptionInt(clo_option_t *option)
const std::string INPUT_PHI_CELL
const std::string INPUT_RT2
const std::string INPUT_ANGLES
const std::string INPUT_GLINT
const std::string OFILE_RT1
const std::string INPUT_CLOUD_TOP
const std::string INPUT_PSUDO
int clo_isOptionSet(clo_option_t *option)
const std::string ODIR_OCN
const std::string OFILE_ALL
const std::string INPUT_SEA_SLOPE_STDEV
const std::string INPUT_SEA_NI
const std::string INPUT_GASES
const std::string INPUT_OCN
const std::string OFILE_OCN
const std::string INPUT_IOCN
const std::string INPUT_WINDSPEEDS
std::string afrt_get_option(const std::string &name)
char * clo_getOptionString(clo_option_t *option)
int * clo_getOptionInts(clo_option_t *option, int *count)
const std::string INPUT_SD_INDEX
int afrt_get_option_int(const std::string &name)
const std::string INPUT_FOAM
const std::string INPUT_WIND_SPEED
const std::string INPUT_SURF
const std::string INPUT_DUST_SIGMA
const std::string INPUT_WL_INDEX
const std::string INPUT_RT1
const std::string INPUT_DUST_HEIGHT
const std::string OFILE_PHS
const std::string INPUT_WIND_INDEX
const std::string INPUT_IAIR
const std::string INPUT_CONC
const std::string INPUT_CRFT
const std::string INPUT_THETA_CELL
string afrt_get_history(int argc, char *argv[])
const std::string INPUT_COEFF_RT1
const std::string INPUT_AOD
int * afrt_get_option_ints(const std::string &name, int &count)
const std::string INPUT_POL
const std::string INPUT_OZONE_RT1
const std::string INPUT_PRIN
const std::string INPUT_SURF_PRESSURE
const std::string INPUT_KSET
const std::string INPUT_PHS
const std::string ODIR_RT2
bool afrt_get_option_bool(const std::string &name)
const std::string INPUT_WATR
const std::string INPUT_IREF
clo_optionList_t * afrt_get_optionList()
const std::string INPUT_PHS_NC4
const std::string INPUT_DELTA_THETA
void afrt_add_options(clo_optionList_t *list)
const std::string ODIR_NC4
const std::string INPUT_HUMIDITIES
const std::string INPUT_DELTA_PHI
int clo_getOptionBool(clo_option_t *option)
const std::string INPUT_SALINITY