|
X-shooter Pipeline Reference Manual 3.8.15
|
Macros | |
| #define | MODULE_ID "XSH_BUILD_CUBE" |
| #define | MODULE_ID "XSH_DATA_CUBE" |
| #define | MODULE_ID "XSH_GEOM_IFU" |
Enumerations | |
| enum | { SLITBIN_OPT , CENTER_IFU_OPT , DEBUG_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 , MERGE_METHOD_OPT , LAMBDA_REF_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 , MERGE_METHOD_OPT , LAMBDA_REF_OPT } |
Functions | |
| static void | Help (void) |
| static void | HandleOptions (int argc, char **argv, double *slit_bin, int *ifu_center) |
| static void | create_gaussian_profile (int nslit, double slitmin, double slitcen, double slit_bin, double height, double sigma, double offset, const char *filename, cpl_vector **x_vect, cpl_vector **y_vect) |
| int | main (int argc, char **argv) |
| Unit test of xsh_build_cube. | |
| static void | HandleOptions (int argc, char **argv, xsh_rectify_param *rectify_par, xsh_merge_param *merge_par, int *order_min, int *order_max, double *slit_min, int *nslit, double *lambda_ref) |
| static void | HandleOptions (int argc, char **argv, xsh_rectify_param *rectify_par, xsh_localize_obj_param *locobj_par, int *order_min, int *order_max, double *slit_min, int *nslit, double *lambda_ref) |
Variables | |
| static struct option | long_options [] |
| static const char * | Options = "" |
| static struct option | long_options [] |
| static const char * | Options = "" |
| static struct option | long_options [] |
| #define MODULE_ID "XSH_BUILD_CUBE" |
Definition at line 69 of file test-xsh_build_cube.c.
| #define MODULE_ID "XSH_DATA_CUBE" |
Definition at line 68 of file test-xsh_data_cube.c.
| #define MODULE_ID "XSH_GEOM_IFU" |
Definition at line 68 of file test-xsh_geom_ifu.c.
| anonymous enum |
| Enumerator | |
|---|---|
| KERNEL_OPT | |
| RADIUS_OPT | |
| BIN_LAMBDA_OPT | |
| BIN_SPACE_OPT | |
| HELP_OPT | |
| MIN_ORDER_OPT | |
| MAX_ORDER_OPT | |
| SLIT_MIN_OPT | |
| NSLIT_OPT | |
| MERGE_METHOD_OPT | |
| LAMBDA_REF_OPT | |
Definition at line 73 of file test-xsh_data_cube.c.
| anonymous enum |
| Enumerator | |
|---|---|
| KERNEL_OPT | |
| RADIUS_OPT | |
| BIN_LAMBDA_OPT | |
| BIN_SPACE_OPT | |
| HELP_OPT | |
| MIN_ORDER_OPT | |
| MAX_ORDER_OPT | |
| SLIT_MIN_OPT | |
| NSLIT_OPT | |
| MERGE_METHOD_OPT | |
| LAMBDA_REF_OPT | |
Definition at line 73 of file test-xsh_geom_ifu.c.
| anonymous enum |
| Enumerator | |
|---|---|
| SLITBIN_OPT | |
| CENTER_IFU_OPT | |
| DEBUG_OPT | |
| HELP_OPT | |
Definition at line 74 of file test-xsh_build_cube.c.
|
static |
Definition at line 134 of file test-xsh_build_cube.c.
References s, sigma, x, XSH_ASSURE_NOT_NULL, xsh_free_vector(), XSH_MATH_SQRT_2, and y.
Referenced by main().
|
static |
Definition at line 102 of file test-xsh_build_cube.c.
References CENTER_IFU_OPT, DEBUG_OPT, Help(), HELP_OPT, long_options, SLITBIN_OPT, XSH_DEBUG_LEVEL_HIGH, XSH_DEBUG_LEVEL_LOW, and xsh_debug_level_set().
Referenced by main().
|
static |
Definition at line 118 of file test-xsh_geom_ifu.c.
References BIN_LAMBDA_OPT, BIN_SPACE_OPT, Help(), KERNEL_OPT, xsh_rectify_param::kernel_type, LAMBDA_REF_OPT, 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.
|
static |
Definition at line 119 of file test-xsh_data_cube.c.
References BIN_LAMBDA_OPT, BIN_SPACE_OPT, Help(), KERNEL_OPT, xsh_rectify_param::kernel_type, LAMBDA_REF_OPT, long_options, MAX_ORDER_OPT, MEAN_MERGE_METHOD, MERGE_METHOD_OPT, MERGE_METHOD_PRINT, xsh_merge_param::method, 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, WEIGHTED_MERGE_METHOD, and xsh_msg.
|
static |
Definition at line 86 of file test-xsh_build_cube.c.
References TEST_END.
Referenced by HandleOptions(), and main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Unit test of xsh_build_cube.
Unit test of xsh_rectify. Needs the PRE frame, order table, wave solution, instrument, rectify parameters, the map.
Definition at line 183 of file test-xsh_build_cube.c.
References check, create_gaussian_profile(), xsh_spectrum::flux_header, HandleOptions(), Help(), instrument, MODULE_ID, s, sigma, size, sof_to_frameset(), TEST_END, TESTS_INIT, xsh_compute_slitlet_limits(), xsh_cube(), XSH_DEBUG_LEVEL_MEDIUM, xsh_debug_level_set(), xsh_dfs_set_groups(), xsh_error_dump, xsh_find_offset_tab_ifu(), xsh_find_slitmap(), xsh_free_frame(), xsh_free_frameset(), xsh_get_slit_edges(), xsh_instrument_free(), xsh_msg, xsh_spectrum_2D_create(), xsh_spectrum_free(), xsh_spectrum_get_flux(), xsh_spectrum_get_size_lambda(), xsh_spectrum_get_size_slit(), and xsh_spectrum_save().
|
static |
Definition at line 78 of file test-xsh_build_cube.c.
Referenced by HandleOptions().
|
static |
Definition at line 81 of file test-xsh_data_cube.c.
Referenced by HandleOptions().
|
static |
Definition at line 81 of file test-xsh_geom_ifu.c.
Referenced by HandleOptions().
|
static |
Definition at line 79 of file test-xsh_data_cube.c.
Referenced by HandleOptions().
|
static |
Definition at line 79 of file test-xsh_geom_ifu.c.
Referenced by HandleOptions().