Defines | |
| #define | MODULE_ID "XSH_MERGE_ORD" |
Enumerations | |
| enum | { SLITLET_OPT, METHOD_OPT, DEBUG_OPT } |
Functions | |
| static void | Help (void) |
| static void | HandleOptions (int argc, char **argv, xsh_merge_param *merge_par, int *slitlet) |
| static void | analyse_merge_ord (cpl_frame *spectrum_frame, xsh_instrument *instr) |
| int | main (int argc, char **argv) |
| Unit test of xsh_merge_ord. | |
Variables | |
| static struct option | long_options [] |
| #define MODULE_ID "XSH_MERGE_ORD" |
Definition at line 61 of file test-xsh_merge_ord.c.
| anonymous enum |
Definition at line 76 of file test-xsh_merge_ord.c.
| static void analyse_merge_ord | ( | cpl_frame * | spectrum_frame, | |
| xsh_instrument * | instr | |||
| ) | [static] |
Definition at line 131 of file test-xsh_merge_ord.c.
References check, xsh_spectrum::lambda_min, xsh_spectrum::lambda_step, xsh_spectrum::size, XSH_ASSURE_NOT_NULL, xsh_msg, xsh_spectrum_free(), xsh_spectrum_get_flux(), and xsh_spectrum_load().
Referenced by main().
| static void HandleOptions | ( | int | argc, | |
| char ** | argv, | |||
| xsh_merge_param * | merge_par, | |||
| int * | slitlet | |||
| ) | [static] |
Definition at line 88 of file test-xsh_merge_ord.c.
References DEBUG_OPT, Help(), long_options, MEAN_MERGE_METHOD, MERGE_METHOD_PRINT, xsh_merge_param::method, METHOD_OPT, SLITLET_OPT, WEIGHTED_MERGE_METHOD, XSH_DEBUG_LEVEL_HIGH, XSH_DEBUG_LEVEL_LOW, xsh_debug_level_set(), and xsh_msg.
Referenced by main().
| static void Help | ( | void | ) | [static] |
Definition at line 63 of file test-xsh_merge_ord.c.
References TEST_END.
Referenced by HandleOptions(), and main().
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Unit test of xsh_merge_ord.
Definition at line 168 of file test-xsh_merge_ord.c.
References analyse_merge_ord(), check, HandleOptions(), Help(), instrument, MEAN_MERGE_METHOD, MERGE_METHOD_PRINT, xsh_merge_param::method, MODULE_ID, TEST_END, TESTS_INIT, TESTS_XSH_FRAME_CREATE, XSH_ARM_NIR, XSH_ARM_UNDEFINED, XSH_ARM_UVB, XSH_ARM_VIS, XSH_DEBUG_LEVEL_MEDIUM, xsh_debug_level_set(), xsh_error_dump, xsh_free_frame(), xsh_free_propertylist(), xsh_instrument_arm_tostring(), xsh_instrument_free(), xsh_instrument_new(), xsh_instrument_set_arm(), xsh_instrument_set_decode_bp(), xsh_instrument_set_mode(), xsh_merge_ord_slitlet(), XSH_MODE_IFU, XSH_MODE_SLIT, xsh_msg, and xsh_pfits_get_arm().
struct option long_options[] [static] |
{
{"slitlet", required_argument, 0, SLITLET_OPT},
{"method", required_argument, 0, METHOD_OPT},
{"debug", required_argument, 0, DEBUG_OPT},
{0,0,0,0}
}
Definition at line 81 of file test-xsh_merge_ord.c.
Referenced by HandleOptions().
1.6.1