Defines | |
#define | MODULE_ID "XSH_DATA_WAVEMAP" |
#define | SYNTAX |
#define | MODULE_ID "XSH_LAMBDA_ERR" |
#define | MODULE_ID "XSH_OPT_EXTRACT" |
Enumerations | |
enum | { MIN_ORDER_OPT, MAX_ORDER_OPT, DEBUG_OPT, HELP_OPT } |
enum | { OVERSAMPLE_OPT, BOX_HSIZE_OPT, CHUNK_SIZE_OPT, LAMBDA_STEP_OPT, CLIP_KAPPA_OPT, CLIP_FRAC_OPT, CLIP_NITER_OPT, NITER_OPT, METHOD_OPT, MIN_ORDER_OPT, MAX_ORDER_OPT, DEBUG_OPT, HELP_OPT } |
Functions | |
int | main (int argc, char **argv) |
Unit test of xsh_data_wavemap. | |
static void | Help (void) |
static void | HandleOptions (int argc, char **argv, int *order_min, int *order_max) |
static void | HandleOptions (int argc, char **argv, xsh_opt_extract_param *opt_extract_par, int *order_min, int *order_max) |
Variables | |
static struct option | long_options [] |
static struct option | long_options [] |
#define MODULE_ID "XSH_OPT_EXTRACT" |
Definition at line 63 of file test-xsh_opt_extract.c.
#define MODULE_ID "XSH_LAMBDA_ERR" |
Definition at line 64 of file test-xsh_lambda_err.c.
#define MODULE_ID "XSH_DATA_WAVEMAP" |
Definition at line 62 of file test-xsh_data_wavemap.c.
#define SYNTAX |
"Test the wavemap (work only for vis for now)\n"\ "use : ./test_xsh_data_wavemap [OPTIONS] ORDER_TAB WAVESOL WAVEMAP"\ " SPECTRALFORMAT\n"\ "ORDER_TAB => the order table\n"\ "WAVESOL => the wavesolution table\n"\ "WAVEMAP => the wavemap frame\n"\ "SPECTRALFORMAT => the spectral format table\n"
Definition at line 64 of file test-xsh_data_wavemap.c.
anonymous enum |
Definition at line 66 of file test-xsh_lambda_err.c.
anonymous enum |
OVERSAMPLE_OPT | |
BOX_HSIZE_OPT | |
CHUNK_SIZE_OPT | |
LAMBDA_STEP_OPT | |
CLIP_KAPPA_OPT | |
CLIP_FRAC_OPT | |
CLIP_NITER_OPT | |
NITER_OPT | |
METHOD_OPT | |
MIN_ORDER_OPT | |
MAX_ORDER_OPT | |
DEBUG_OPT | |
HELP_OPT |
Definition at line 65 of file test-xsh_opt_extract.c.
static void HandleOptions | ( | int | argc, | |
char ** | argv, | |||
xsh_opt_extract_param * | opt_extract_par, | |||
int * | order_min, | |||
int * | order_max | |||
) | [static] |
Definition at line 115 of file test-xsh_opt_extract.c.
References xsh_opt_extract_param::box_hsize, BOX_HSIZE_OPT, xsh_opt_extract_param::chunk_size, CHUNK_SIZE_OPT, xsh_opt_extract_param::clip_frac, CLIP_FRAC_OPT, xsh_opt_extract_param::clip_kappa, CLIP_KAPPA_OPT, xsh_opt_extract_param::clip_niter, CLIP_NITER_OPT, DEBUG_OPT, GAUSS_METHOD, GENERAL_METHOD, Help(), xsh_opt_extract_param::lambda_step, LAMBDA_STEP_OPT, long_options, MAX_ORDER_OPT, xsh_opt_extract_param::method, METHOD_OPT, MIN_ORDER_OPT, xsh_opt_extract_param::niter, NITER_OPT, OPTEXTRACT_METHOD_PRINT, xsh_opt_extract_param::oversample, OVERSAMPLE_OPT, XSH_DEBUG_LEVEL_HIGH, XSH_DEBUG_LEVEL_LOW, XSH_DEBUG_LEVEL_NONE, and xsh_debug_level_set().
Referenced by main().
static void HandleOptions | ( | int | argc, | |
char ** | argv, | |||
int * | order_min, | |||
int * | order_max | |||
) | [static] |
Definition at line 96 of file test-xsh_lambda_err.c.
References DEBUG_OPT, Help(), long_options, MAX_ORDER_OPT, MIN_ORDER_OPT, XSH_DEBUG_LEVEL_HIGH, XSH_DEBUG_LEVEL_LOW, and xsh_debug_level_set().
static void Help | ( | void | ) | [static] |
Definition at line 88 of file test-xsh_opt_extract.c.
References TEST_END.
Referenced by HandleOptions().
int main | ( | int | argc, | |
char ** | argv | |||
) |
Unit test of xsh_data_wavemap.
Unit test of xsh_opt_extract.
Definition at line 193 of file test-xsh_opt_extract.c.
References xsh_opt_extract_param::box_hsize, check, xsh_opt_extract_param::chunk_size, xsh_opt_extract_param::clip_frac, xsh_opt_extract_param::clip_kappa, xsh_opt_extract_param::clip_niter, GAUSS_METHOD, HandleOptions(), Help(), instrument, xsh_opt_extract_param::lambda_step, xsh_opt_extract_param::method, MODULE_ID, xsh_opt_extract_param::niter, OPTEXTRACT_METHOD_PRINT, xsh_opt_extract_param::oversample, xsh_order_list::size, sof_to_frameset(), TEST_END, TESTS_INIT, TESTS_XSH_FRAME_CREATE, WEIGHTED_MERGE_METHOD, XSH_DEBUG_LEVEL_MEDIUM, xsh_debug_level_set(), xsh_dfs_set_groups(), xsh_error_dump, xsh_error_reset, xsh_find_frame_with_tag(), xsh_find_master_flat(), xsh_find_order_tab_edges(), xsh_find_slitmap(), xsh_find_spectral_format(), xsh_find_wave_tab_2d(), xsh_find_wavemap(), xsh_free_frame(), xsh_free_frameset(), xsh_instrument_free(), xsh_instrument_set_decode_bp(), xsh_merge_ord(), XSH_MOD_CFG_OPT_2D, XSH_MOD_CFG_TAB, xsh_model_temperature_update_frame(), xsh_msg, xsh_opt_extract_orders(), xsh_order_list_free(), xsh_order_list_get_index_by_absorder(), and xsh_order_list_load().
struct option long_options[] [static] |
{ {"oversample", required_argument, 0, OVERSAMPLE_OPT}, {"box-hsize", required_argument, 0, BOX_HSIZE_OPT}, {"chunk-size", required_argument, 0, CHUNK_SIZE_OPT}, {"lambda-step", required_argument, 0, LAMBDA_STEP_OPT}, {"clip-kappa", required_argument, 0, CLIP_KAPPA_OPT}, {"clip-frac", required_argument, 0, CLIP_FRAC_OPT}, {"clip-niter", required_argument, 0, CLIP_NITER_OPT}, {"niter", required_argument, 0, NITER_OPT}, {"method", required_argument, 0, METHOD_OPT}, {"order-min", required_argument, 0, MIN_ORDER_OPT}, {"order-max", required_argument, 0, MAX_ORDER_OPT}, {"debug", required_argument, 0, DEBUG_OPT}, {"help", 0, 0, HELP_OPT}, {0, 0, 0, 0} }
Definition at line 71 of file test-xsh_opt_extract.c.
Referenced by HandleOptions().
struct option long_options[] [static] |
{ {"order-min", required_argument, 0, MIN_ORDER_OPT}, {"order-max", required_argument, 0, MAX_ORDER_OPT}, {"debug", required_argument, 0, DEBUG_OPT}, {"help", 0, 0, HELP_OPT}, {0, 0, 0, 0} }
Definition at line 70 of file test-xsh_lambda_err.c.
Referenced by HandleOptions().