Defines | |
| #define | MODULE_ID "XSH_DETECT_ORDER" |
| #define | MODULE_ID "XSH_RECTIFY" |
Enumerations | |
| enum | { SEARCH_WINDOW_HSIZE_OPT, FLUX_THRESH_OPT, MIN_SN_OPT, MIN_ORDER_SIZE_X_OPT, CHUNK_HSIZE_OPT, SLITLET_LOW_FACTOR_OPT, SLITLET_UP_FACTOR_OPT, FIXED_SLICE_OPT, METHOD_OPT, HELP_OPT } |
| enum | { KERNEL_OPT, RADIUS_OPT, BIN_LAMBDA_OPT, BIN_SPACE_OPT, HELP_OPT, MIN_ORDER_OPT, MAX_ORDER_OPT, SLIT_MIN_OPT, NSLIT_OPT } |
Functions | |
| static void | Help (void) |
| static void | HandleOptions (int argc, char **argv, xsh_detect_order_param *detectorder_par) |
| int | main (int argc, char **argv) |
| Unit test of xsh_rectify. Needs the PRE frame, order table, wave solution, instrument, rectify parameters, the map. | |
| static void | HandleOptions (int argc, char **argv, xsh_rectify_param *rectify_par, int *order_min, int *order_max, double *slit_min, int *nslit) |
Variables | |
| static const char * | Options = "" |
| static struct option | long_options [] |
| static const char * | Options = "" |
| static struct option | long_options [] |
| #define MODULE_ID "XSH_RECTIFY" |
Definition at line 67 of file test-xsh_rectify.c.
| #define MODULE_ID "XSH_DETECT_ORDER" |
Definition at line 67 of file test-xsh_detect_order.c.
| anonymous enum |
| SEARCH_WINDOW_HSIZE_OPT | |
| FLUX_THRESH_OPT | |
| MIN_SN_OPT | |
| MIN_ORDER_SIZE_X_OPT | |
| CHUNK_HSIZE_OPT | |
| SLITLET_LOW_FACTOR_OPT | |
| SLITLET_UP_FACTOR_OPT | |
| FIXED_SLICE_OPT | |
| METHOD_OPT | |
| HELP_OPT |
Definition at line 72 of file test-xsh_detect_order.c.
| anonymous enum |
| KERNEL_OPT | |
| RADIUS_OPT | |
| BIN_LAMBDA_OPT | |
| BIN_SPACE_OPT | |
| HELP_OPT | |
| MIN_ORDER_OPT | |
| MAX_ORDER_OPT | |
| SLIT_MIN_OPT | |
| NSLIT_OPT |
Definition at line 72 of file test-xsh_rectify.c.
| static void HandleOptions | ( | int | argc, | |
| char ** | argv, | |||
| xsh_rectify_param * | rectify_par, | |||
| int * | order_min, | |||
| int * | order_max, | |||
| double * | slit_min, | |||
| int * | nslit | |||
| ) | [static] |
Definition at line 113 of file test-xsh_rectify.c.
References BIN_LAMBDA_OPT, BIN_SPACE_OPT, Help(), KERNEL_OPT, xsh_rectify_param::kernel_type, long_options, MAX_ORDER_OPT, MIN_ORDER_OPT, NSLIT_OPT, Options, RADIUS_OPT, xsh_rectify_param::rectif_bin_lambda, xsh_rectify_param::rectif_bin_space, xsh_rectify_param::rectif_kernel, xsh_rectify_param::rectif_radius, RECTIFY_KERNEL_PRINT, SLIT_MIN_OPT, and xsh_msg.
Referenced by main().
| static void HandleOptions | ( | int | argc, | |
| char ** | argv, | |||
| xsh_detect_order_param * | detectorder_par | |||
| ) | [static] |
Definition at line 116 of file test-xsh_detect_order.c.
References xsh_detect_order_param::chunk_hsize, CHUNK_HSIZE_OPT, xsh_detect_order_param::fixed_slice, FIXED_SLICE_OPT, xsh_detect_order_param::flux_thresh, FLUX_THRESH_OPT, Help(), long_options, xsh_detect_order_param::method, METHOD_OPT, xsh_detect_order_param::min_order_size_x, MIN_ORDER_SIZE_X_OPT, xsh_detect_order_param::min_sn, MIN_SN_OPT, Options, xsh_detect_order_param::search_window_hsize, SEARCH_WINDOW_HSIZE_OPT, xsh_detect_order_param::slitlet_low_factor, SLITLET_LOW_FACTOR_OPT, xsh_detect_order_param::slitlet_up_factor, and SLITLET_UP_FACTOR_OPT.
| static void Help | ( | void | ) | [static] |
Definition at line 92 of file test-xsh_rectify.c.
References TEST_END.
Referenced by HandleOptions().
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Unit test of xsh_rectify. Needs the PRE frame, order table, wave solution, instrument, rectify parameters, the map.
Definition at line 185 of file test-xsh_rectify.c.
References check, xsh_rectify_param::conserve_flux, HandleOptions(), Help(), instrument, xsh_rectify_param::kernel_type, MEAN_MERGE_METHOD, mode, MODULE_ID, xsh_rectify_param::rectif_bin_lambda, xsh_rectify_param::rectif_bin_space, xsh_rectify_param::rectif_kernel, xsh_rectify_param::rectif_radius, xsh_rectify_param::rectify_full_slit, RECTIFY_KERNEL_PRINT, xsh_order_list::size, size, sof_to_frameset(), TEST_END, TESTS_INIT, TESTS_XSH_FRAME_CREATE, XSH_DEBUG_LEVEL_MEDIUM, xsh_debug_level_set(), xsh_dfs_set_groups(), xsh_error_dump, xsh_find_frame_with_tag(), xsh_find_model_config_tab(), xsh_find_order_tab_edges(), xsh_find_slitmap(), xsh_find_spectral_format(), xsh_find_wave_tab_2d(), xsh_find_wave_tab_ifu(), xsh_free_frame(), xsh_free_frameset(), XSH_GET_TAG_FROM_ARM, xsh_instrument_free(), xsh_instrument_get_mode(), xsh_merge_ord(), XSH_MODE_SLIT, xsh_msg, XSH_ORDER2D, xsh_order_list_free(), xsh_order_list_get_index_by_absorder(), xsh_order_list_load(), xsh_rec_slit_size(), xsh_rectify_orders(), xsh_rectify_orders_ifu(), and XSH_SLICE_OFFSET.
struct option long_options[] [static] |
{
{"kernel", required_argument, 0, KERNEL_OPT},
{"radius", required_argument, 0, RADIUS_OPT},
{"bin-lambda", required_argument, 0, BIN_LAMBDA_OPT},
{"bin-space", required_argument, 0, BIN_SPACE_OPT},
{"order-min", required_argument, 0, MIN_ORDER_OPT},
{"order-max", required_argument, 0, MAX_ORDER_OPT},
{"slit-min",required_argument, 0, SLIT_MIN_OPT},
{"slit-n",required_argument, 0, NSLIT_OPT},
{"help", 0, 0, HELP_OPT},
{0, 0, 0, 0}
}
Definition at line 79 of file test-xsh_rectify.c.
Referenced by HandleOptions().
struct option long_options[] [static] |
{
{"search-window-hsize", required_argument, 0, SEARCH_WINDOW_HSIZE_OPT},
{"flux-thresh", required_argument, 0, FLUX_THRESH_OPT},
{"min-sn", required_argument, 0, MIN_SN_OPT},
{"min-order-size-x", required_argument, 0, MIN_ORDER_SIZE_X_OPT},
{"chunk-hsize", required_argument, 0, CHUNK_HSIZE_OPT},
{"slitlet-low-factor", required_argument, 0, SLITLET_LOW_FACTOR_OPT},
{"slitlet-up-factor",required_argument, 0, SLITLET_UP_FACTOR_OPT},
{"fixed-slice",required_argument, 0, FIXED_SLICE_OPT},
{"method",required_argument, 0, METHOD_OPT},
{"help", 0, 0, HELP_OPT},
{0, 0, 0, 0}
}
Definition at line 80 of file test-xsh_detect_order.c.
Referenced by HandleOptions().
const char* Options = "" [static] |
Definition at line 77 of file test-xsh_rectify.c.
Referenced by HandleOptions().
const char* Options = "" [static] |
Definition at line 78 of file test-xsh_detect_order.c.
Referenced by HandleOptions().
1.6.1