Defines | |
| #define | MODULE_ID "XSH_LOCALIZE_OBJ" |
| #define | MODULE_ID "XSH_REMOVE_CRH_SINGLE" |
Enumerations | |
| enum | { NBCHUNK_OPT, TRESHOLD_OPT, DEG_POLY_OPT, METHOD_OPT, SLIT_POS_OPT, SLIT_HHEIGHT_OPT, KAPPA_OPT, NITER_OPT, SKYMASK_OPT, HELP_OPT } |
| enum | { SIGMA_LIM_OPT, F_LIM_OPT, ITER_OPT, FRAC_MAX_OPT, DEBUG_OPT, HELP_OPT } |
Functions | |
| static void | Help (void) |
| static void | HandleOptions (int argc, char **argv, xsh_localize_obj_param *loc_par, char **skymask_name) |
| static void | analyse_localization (cpl_frame *merge_frame, cpl_frame *loc_frame, xsh_instrument *instr) |
| int | main (int argc, char **argv) |
| Unit test of xsh_localize_obj. | |
| static void | HandleOptions (int argc, char **argv, xsh_remove_crh_single_param *single_par) |
Variables | |
| static struct option | long_options [] |
| static struct option | long_options [] |
| #define MODULE_ID "XSH_REMOVE_CRH_SINGLE" |
Definition at line 63 of file test-xsh_remove_crh_single.c.
| #define MODULE_ID "XSH_LOCALIZE_OBJ" |
Definition at line 66 of file test-xsh_localize_obj.c.
| anonymous enum |
| NBCHUNK_OPT | |
| TRESHOLD_OPT | |
| DEG_POLY_OPT | |
| METHOD_OPT | |
| SLIT_POS_OPT | |
| SLIT_HHEIGHT_OPT | |
| KAPPA_OPT | |
| NITER_OPT | |
| SKYMASK_OPT | |
| HELP_OPT |
Definition at line 68 of file test-xsh_localize_obj.c.
| anonymous enum |
Definition at line 84 of file test-xsh_remove_crh_single.c.
| static void analyse_localization | ( | cpl_frame * | merge_frame, | |
| cpl_frame * | loc_frame, | |||
| xsh_instrument * | instr | |||
| ) | [static] |
Definition at line 183 of file test-xsh_localize_obj.c.
References xsh_localization::cenpoly, check, xsh_localization::edglopoly, xsh_localization::edguppoly, xsh_spectrum::lambda_min, xsh_spectrum::lambda_step, MEAN_MERGE_METHOD, xsh_spectrum::size_lambda, XSH_ASSURE_NOT_NULL, xsh_free_frame(), xsh_localization_free(), xsh_localization_load(), xsh_merge_ord(), xsh_msg, xsh_spectrum_free(), and xsh_spectrum_load().
| static void HandleOptions | ( | int | argc, | |
| char ** | argv, | |||
| xsh_remove_crh_single_param * | single_par | |||
| ) | [static] |
Definition at line 103 of file test-xsh_remove_crh_single.c.
References xsh_remove_crh_single_param::crh_frac_max, DEBUG_OPT, xsh_remove_crh_single_param::f_lim, F_LIM_OPT, FRAC_MAX_OPT, Help(), ITER_OPT, long_options, xsh_remove_crh_single_param::nb_iter, xsh_remove_crh_single_param::sigma_lim, SIGMA_LIM_OPT, XSH_DEBUG_LEVEL_HIGH, XSH_DEBUG_LEVEL_LOW, and xsh_debug_level_set().
Referenced by main().
| static void HandleOptions | ( | int | argc, | |
| char ** | argv, | |||
| xsh_localize_obj_param * | loc_par, | |||
| char ** | skymask_name | |||
| ) | [static] |
Definition at line 114 of file test-xsh_localize_obj.c.
References DEG_POLY_OPT, Help(), xsh_localize_obj_param::kappa, KAPPA_OPT, xsh_localize_obj_param::loc_chunk_nb, xsh_localize_obj_param::loc_deg_poly, LOC_GAUSSIAN_METHOD, LOC_MANUAL_METHOD, LOC_MAXIMUM_METHOD, xsh_localize_obj_param::loc_thresh, LOCALIZE_METHOD_PRINT, long_options, xsh_localize_obj_param::method, METHOD_OPT, NBCHUNK_OPT, xsh_localize_obj_param::niter, NITER_OPT, SKYMASK_OPT, xsh_localize_obj_param::slit_hheight, SLIT_HHEIGHT_OPT, SLIT_POS_OPT, xsh_localize_obj_param::slit_position, TRESHOLD_OPT, xsh_localize_obj_param::use_skymask, and xsh_msg.
| static void Help | ( | void | ) | [static] |
Definition at line 65 of file test-xsh_remove_crh_single.c.
References TEST_END.
Referenced by HandleOptions().
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Unit test of xsh_localize_obj.
Unit test of xsh_remove_crh_single.
Test behaviour of xsh_remove_crh_single function.
Definition at line 152 of file test-xsh_remove_crh_single.c.
References check, xsh_remove_crh_single_param::crh_frac_max, xsh_remove_crh_single_param::f_lim, HandleOptions(), instrument, mkHeader(), MODULE_ID, xsh_remove_crh_single_param::nb_iter, xsh_remove_crh_single_param::sigma_lim, sof_to_frameset(), TEST_END, TESTS_INIT, TESTS_XSH_FRAME_CREATE, XSH_ARM_UVB, XSH_DEBUG_LEVEL_MEDIUM, xsh_debug_level_set(), xsh_dfs_set_groups(), xsh_error_dump, xsh_find_wavemap(), xsh_free_frame(), xsh_free_frameset(), xsh_free_image(), xsh_free_propertylist(), xsh_instrument_arm_tostring(), xsh_instrument_free(), xsh_instrument_get_config(), xsh_instrument_new(), xsh_instrument_set_arm(), xsh_instrument_set_lamp(), xsh_instrument_set_mode(), xsh_instrument_set_recipe_id(), XSH_LAMP_QTH, XSH_MODE_IFU, xsh_msg, xsh_prepare(), and xsh_remove_crh_single().
struct option long_options[] [static] |
{
{"sigma_lim", required_argument, 0, SIGMA_LIM_OPT},
{"f_lim", required_argument, 0, F_LIM_OPT},
{"iter", required_argument, 0, ITER_OPT},
{"frac_max", required_argument, 0, FRAC_MAX_OPT},
{"debug", required_argument, 0, DEBUG_OPT},
{"help", 0, 0,HELP_OPT},
{0, 0, 0, 0}
}
Definition at line 93 of file test-xsh_remove_crh_single.c.
Referenced by HandleOptions().
struct option long_options[] [static] |
{
{"nbchunk", required_argument, 0, NBCHUNK_OPT},
{"threshold", required_argument, 0, TRESHOLD_OPT},
{"deg_poly", required_argument, 0, DEG_POLY_OPT},
{"method", required_argument, 0, METHOD_OPT},
{"slit_position", required_argument, 0, SLIT_POS_OPT},
{"slit_hheight", required_argument, 0, SLIT_HHEIGHT_OPT},
{"kappa", required_argument, 0, KAPPA_OPT},
{"niter", required_argument, 0, NITER_OPT},
{"skymask", required_argument, 0, SKYMASK_OPT},
{"help", 0, 0, HELP_OPT},
{0, 0, 0, 0}
}
Definition at line 73 of file test-xsh_localize_obj.c.
Referenced by HandleOptions().
1.6.1