OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
AfrtOptions.cpp File Reference
#include <iostream>
#include <string>
#include <cstdlib>
#include <algorithm>
#include <libgen.h>
#include <vector>
#include <map>
#include <AfrtConstants.h>
#include <AfrtOptions.h>
Include dependency graph for AfrtOptions.cpp:

Go to the source code of this file.

Functions

void afrt_set_optionList (clo_optionList_t *list)
 
clo_optionList_tafrt_get_optionList ()
 
std::string afrt_get_option (const std::string &name)
 
int * afrt_get_option_ints (const std::string &name, int &count)
 
double * afrt_get_option_doubles (const std::string &name, int &count)
 
double afrt_get_option_double (const std::string &name)
 
int afrt_get_option_int (const std::string &name)
 
bool afrt_get_option_bool (const std::string &name)
 
void afrt_add_options (clo_optionList_t *list)
 
string afrt_get_source ()
 
string afrt_get_history (int argc, char *argv[])
 

Variables

const std::string INPUT_PHS_NC4 = "nc4_phs"
 
const std::string INPUT_PHS = "ifile_phs"
 
const std::string INPUT_OCN = "ifile_ocn"
 
const std::string INPUT_RT1 = "ifile_rt1"
 
const std::string INPUT_RT2 = "ifile_rt2"
 
const std::string INPUT_OZONE_RT1 = "ozone_rt1"
 
const std::string INPUT_ATM_RT1 = "atm_rt1"
 
const std::string INPUT_COEFF_RT1 = "coeff_rt1"
 
const std::string ODIR_PHS = "odir_phs"
 
const std::string ODIR_OCN = "odir_ocn"
 
const std::string ODIR_RT1 = "odir_rt1"
 
const std::string ODIR_RT2 = "odir_rt2"
 
const std::string ODIR_NC4 = "odir_nc4"
 
const std::string OFILE_PHS = "ofile_phs"
 
const std::string OFILE_OCN = "ofile_ocn"
 
const std::string OFILE_RT1 = "ofile_rt1"
 
const std::string OFILE_RT2 = "ofile_rt2"
 
const std::string OFILE_ALL = "ofile_all"
 
const std::string OFILE_NC4 = "ofile"
 
const std::string INPUT_WL_INDEX = "wave_id"
 
const std::string INPUT_SD_INDEX = "model_id"
 
const std::string INPUT_TAU_INDEX = "tau_id"
 
const std::string INPUT_WIND_INDEX = "wind_id"
 
const std::string INPUT_SEA_SLOPE_STDEV = "sea_slope_stdev"
 
const std::string INPUT_WIND_SPEED = "wind_speed"
 
const std::string INPUT_DELTA_TAU = "delta_tau"
 
const std::string INPUT_SURF_PRESSURE = "surface_pressure"
 
const std::string INPUT_DUST_HEIGHT = "dust_height"
 
const std::string INPUT_DUST_SIGMA = "dust_sigma"
 
const std::string INPUT_CLOUD_TOP = "cloud_top"
 
const std::string INPUT_CLOUD_BOTTOM = "cloud_bottom"
 
const std::string INPUT_AOD = "optical_thickness"
 
const std::string INPUT_HUMIDITY = "humidity"
 
const std::string INPUT_WAVELENGTHS = "wavelengths"
 
const std::string INPUT_HUMIDITIES = "humidities"
 
const std::string INPUT_WINDSPEEDS = "rms_slopes"
 
const std::string INPUT_ANGLES = "theta_angles"
 
const std::string INPUT_OPTDEPTHS = "optical_depths"
 
const std::string INPUT_DELTA_THETA = "dtheta"
 
const std::string INPUT_DELTA_PHI = "dphi"
 
const std::string INPUT_SEA_NR = "sea_nr"
 
const std::string INPUT_SEA_NI = "sea_ni"
 
const std::string INPUT_SALINITY = "salinity"
 
const std::string INPUT_THETA_CELL = "theta_cell"
 
const std::string INPUT_PHI_CELL = "phi_cell"
 
const std::string INPUT_PSUDO = "psudo"
 
const std::string INPUT_RAYLEIGH = "rayleigh"
 
const std::string INPUT_AEROSOLS = "aerosols"
 
const std::string INPUT_GASES = "gases"
 
const std::string INPUT_IAIR = "iair"
 
const std::string INPUT_KSET = "kset"
 
const std::string INPUT_IREF = "iref"
 
const std::string INPUT_ISET = "iset"
 
const std::string INPUT_PRIN = "prin"
 
const std::string INPUT_ITRANS = "trans"
 
const std::string INPUT_POL = "pol"
 
const std::string INPUT_CRFT = "crft"
 
const std::string INPUT_ACTFLX = "actflx"
 
const std::string INPUT_SURF = "surf"
 
const std::string INPUT_GLINT = "glint"
 
const std::string INPUT_IOCN = "ocn"
 
const std::string INPUT_FOAM = "foam"
 
const std::string INPUT_WATR = "watr"
 
const std::string INPUT_CONC = "conc"
 
const std::string INPUT_IPROB = "iprob"
 

Function Documentation

◆ afrt_add_options()

void afrt_add_options ( clo_optionList_t list)

Definition at line 199 of file AfrtOptions.cpp.

◆ afrt_get_history()

string afrt_get_history ( int  argc,
char *  argv[] 
)

Definition at line 300 of file AfrtOptions.cpp.

◆ afrt_get_option()

std::string afrt_get_option ( const std::string name)

Definition at line 119 of file AfrtOptions.cpp.

◆ afrt_get_option_bool()

bool afrt_get_option_bool ( const std::string name)

Definition at line 187 of file AfrtOptions.cpp.

◆ afrt_get_option_double()

double afrt_get_option_double ( const std::string name)

Definition at line 163 of file AfrtOptions.cpp.

◆ afrt_get_option_doubles()

double* afrt_get_option_doubles ( const std::string name,
int &  count 
)

Definition at line 151 of file AfrtOptions.cpp.

◆ afrt_get_option_int()

int afrt_get_option_int ( const std::string name)

Definition at line 175 of file AfrtOptions.cpp.

◆ afrt_get_option_ints()

int* afrt_get_option_ints ( const std::string name,
int &  count 
)

Definition at line 139 of file AfrtOptions.cpp.

◆ afrt_get_optionList()

clo_optionList_t* afrt_get_optionList ( )

Definition at line 111 of file AfrtOptions.cpp.

◆ afrt_get_source()

string afrt_get_source ( )

Definition at line 285 of file AfrtOptions.cpp.

◆ afrt_set_optionList()

void afrt_set_optionList ( clo_optionList_t list)

Definition at line 107 of file AfrtOptions.cpp.

Variable Documentation

◆ INPUT_ACTFLX

const std::string INPUT_ACTFLX = "actflx"

Definition at line 95 of file AfrtOptions.cpp.

◆ INPUT_AEROSOLS

const std::string INPUT_AEROSOLS = "aerosols"

Definition at line 85 of file AfrtOptions.cpp.

◆ INPUT_ANGLES

const std::string INPUT_ANGLES = "theta_angles"

Definition at line 72 of file AfrtOptions.cpp.

◆ INPUT_AOD

const std::string INPUT_AOD = "optical_thickness"

Definition at line 66 of file AfrtOptions.cpp.

◆ INPUT_ATM_RT1

const std::string INPUT_ATM_RT1 = "atm_rt1"

Definition at line 39 of file AfrtOptions.cpp.

◆ INPUT_CLOUD_BOTTOM

const std::string INPUT_CLOUD_BOTTOM = "cloud_bottom"

Definition at line 65 of file AfrtOptions.cpp.

◆ INPUT_CLOUD_TOP

const std::string INPUT_CLOUD_TOP = "cloud_top"

Definition at line 64 of file AfrtOptions.cpp.

◆ INPUT_COEFF_RT1

const std::string INPUT_COEFF_RT1 = "coeff_rt1"

Definition at line 40 of file AfrtOptions.cpp.

◆ INPUT_CONC

const std::string INPUT_CONC = "conc"

Definition at line 101 of file AfrtOptions.cpp.

◆ INPUT_CRFT

const std::string INPUT_CRFT = "crft"

Definition at line 94 of file AfrtOptions.cpp.

◆ INPUT_DELTA_PHI

const std::string INPUT_DELTA_PHI = "dphi"

Definition at line 76 of file AfrtOptions.cpp.

◆ INPUT_DELTA_TAU

const std::string INPUT_DELTA_TAU = "delta_tau"

Definition at line 60 of file AfrtOptions.cpp.

◆ INPUT_DELTA_THETA

const std::string INPUT_DELTA_THETA = "dtheta"

Definition at line 75 of file AfrtOptions.cpp.

◆ INPUT_DUST_HEIGHT

const std::string INPUT_DUST_HEIGHT = "dust_height"

Definition at line 62 of file AfrtOptions.cpp.

◆ INPUT_DUST_SIGMA

const std::string INPUT_DUST_SIGMA = "dust_sigma"

Definition at line 63 of file AfrtOptions.cpp.

◆ INPUT_FOAM

const std::string INPUT_FOAM = "foam"

Definition at line 99 of file AfrtOptions.cpp.

◆ INPUT_GASES

const std::string INPUT_GASES = "gases"

Definition at line 86 of file AfrtOptions.cpp.

◆ INPUT_GLINT

const std::string INPUT_GLINT = "glint"

Definition at line 97 of file AfrtOptions.cpp.

◆ INPUT_HUMIDITIES

const std::string INPUT_HUMIDITIES = "humidities"

Definition at line 70 of file AfrtOptions.cpp.

◆ INPUT_HUMIDITY

const std::string INPUT_HUMIDITY = "humidity"

Definition at line 67 of file AfrtOptions.cpp.

◆ INPUT_IAIR

const std::string INPUT_IAIR = "iair"

Definition at line 87 of file AfrtOptions.cpp.

◆ INPUT_IOCN

const std::string INPUT_IOCN = "ocn"

Definition at line 98 of file AfrtOptions.cpp.

◆ INPUT_IPROB

const std::string INPUT_IPROB = "iprob"

Definition at line 102 of file AfrtOptions.cpp.

◆ INPUT_IREF

const std::string INPUT_IREF = "iref"

Definition at line 89 of file AfrtOptions.cpp.

◆ INPUT_ISET

const std::string INPUT_ISET = "iset"

Definition at line 90 of file AfrtOptions.cpp.

◆ INPUT_ITRANS

const std::string INPUT_ITRANS = "trans"

Definition at line 92 of file AfrtOptions.cpp.

◆ INPUT_KSET

const std::string INPUT_KSET = "kset"

Definition at line 88 of file AfrtOptions.cpp.

◆ INPUT_OCN

const std::string INPUT_OCN = "ifile_ocn"

Definition at line 35 of file AfrtOptions.cpp.

◆ INPUT_OPTDEPTHS

const std::string INPUT_OPTDEPTHS = "optical_depths"

Definition at line 73 of file AfrtOptions.cpp.

◆ INPUT_OZONE_RT1

const std::string INPUT_OZONE_RT1 = "ozone_rt1"

Definition at line 38 of file AfrtOptions.cpp.

◆ INPUT_PHI_CELL

const std::string INPUT_PHI_CELL = "phi_cell"

Definition at line 81 of file AfrtOptions.cpp.

◆ INPUT_PHS

const std::string INPUT_PHS = "ifile_phs"

Definition at line 34 of file AfrtOptions.cpp.

◆ INPUT_PHS_NC4

const std::string INPUT_PHS_NC4 = "nc4_phs"

Definition at line 33 of file AfrtOptions.cpp.

◆ INPUT_POL

const std::string INPUT_POL = "pol"

Definition at line 93 of file AfrtOptions.cpp.

◆ INPUT_PRIN

const std::string INPUT_PRIN = "prin"

Definition at line 91 of file AfrtOptions.cpp.

◆ INPUT_PSUDO

const std::string INPUT_PSUDO = "psudo"

Definition at line 83 of file AfrtOptions.cpp.

◆ INPUT_RAYLEIGH

const std::string INPUT_RAYLEIGH = "rayleigh"

Definition at line 84 of file AfrtOptions.cpp.

◆ INPUT_RT1

const std::string INPUT_RT1 = "ifile_rt1"

Definition at line 36 of file AfrtOptions.cpp.

◆ INPUT_RT2

const std::string INPUT_RT2 = "ifile_rt2"

Definition at line 37 of file AfrtOptions.cpp.

◆ INPUT_SALINITY

const std::string INPUT_SALINITY = "salinity"

Definition at line 79 of file AfrtOptions.cpp.

◆ INPUT_SD_INDEX

const std::string INPUT_SD_INDEX = "model_id"

Definition at line 54 of file AfrtOptions.cpp.

◆ INPUT_SEA_NI

const std::string INPUT_SEA_NI = "sea_ni"

Definition at line 78 of file AfrtOptions.cpp.

◆ INPUT_SEA_NR

const std::string INPUT_SEA_NR = "sea_nr"

Definition at line 77 of file AfrtOptions.cpp.

◆ INPUT_SEA_SLOPE_STDEV

const std::string INPUT_SEA_SLOPE_STDEV = "sea_slope_stdev"

Definition at line 58 of file AfrtOptions.cpp.

◆ INPUT_SURF

const std::string INPUT_SURF = "surf"

Definition at line 96 of file AfrtOptions.cpp.

◆ INPUT_SURF_PRESSURE

const std::string INPUT_SURF_PRESSURE = "surface_pressure"

Definition at line 61 of file AfrtOptions.cpp.

◆ INPUT_TAU_INDEX

const std::string INPUT_TAU_INDEX = "tau_id"

Definition at line 55 of file AfrtOptions.cpp.

◆ INPUT_THETA_CELL

const std::string INPUT_THETA_CELL = "theta_cell"

Definition at line 80 of file AfrtOptions.cpp.

◆ INPUT_WATR

const std::string INPUT_WATR = "watr"

Definition at line 100 of file AfrtOptions.cpp.

◆ INPUT_WAVELENGTHS

const std::string INPUT_WAVELENGTHS = "wavelengths"

Definition at line 69 of file AfrtOptions.cpp.

◆ INPUT_WIND_INDEX

const std::string INPUT_WIND_INDEX = "wind_id"

Definition at line 56 of file AfrtOptions.cpp.

◆ INPUT_WIND_SPEED

const std::string INPUT_WIND_SPEED = "wind_speed"

Definition at line 59 of file AfrtOptions.cpp.

◆ INPUT_WINDSPEEDS

const std::string INPUT_WINDSPEEDS = "rms_slopes"

Definition at line 71 of file AfrtOptions.cpp.

◆ INPUT_WL_INDEX

const std::string INPUT_WL_INDEX = "wave_id"

Definition at line 53 of file AfrtOptions.cpp.

◆ ODIR_NC4

const std::string ODIR_NC4 = "odir_nc4"

Definition at line 45 of file AfrtOptions.cpp.

◆ ODIR_OCN

const std::string ODIR_OCN = "odir_ocn"

Definition at line 42 of file AfrtOptions.cpp.

◆ ODIR_PHS

const std::string ODIR_PHS = "odir_phs"

Definition at line 41 of file AfrtOptions.cpp.

◆ ODIR_RT1

const std::string ODIR_RT1 = "odir_rt1"

Definition at line 43 of file AfrtOptions.cpp.

◆ ODIR_RT2

const std::string ODIR_RT2 = "odir_rt2"

Definition at line 44 of file AfrtOptions.cpp.

◆ OFILE_ALL

const std::string OFILE_ALL = "ofile_all"

Definition at line 50 of file AfrtOptions.cpp.

◆ OFILE_NC4

const std::string OFILE_NC4 = "ofile"

Definition at line 51 of file AfrtOptions.cpp.

◆ OFILE_OCN

const std::string OFILE_OCN = "ofile_ocn"

Definition at line 47 of file AfrtOptions.cpp.

◆ OFILE_PHS

const std::string OFILE_PHS = "ofile_phs"

Definition at line 46 of file AfrtOptions.cpp.

◆ OFILE_RT1

const std::string OFILE_RT1 = "ofile_rt1"

Definition at line 48 of file AfrtOptions.cpp.

◆ OFILE_RT2

const std::string OFILE_RT2 = "ofile_rt2"

Definition at line 49 of file AfrtOptions.cpp.