Defines | |
#define | XSH_FLOAT_PRECISION 0.000001 |
#define | MODULE_ID "XSH_DATA_ORDER" |
#define | SYNTAX |
#define | MODULE_ID "XSH_DATA_STAR_FLUX" |
#define | SYNTAX |
#define | XSH_FLOAT_PRECISION 0.000001 |
#define | MODULE_ID "XSH_DATA_WAVE_TAB_2D" |
#define | XSH_FLOAT_PRECISION 0.000001 |
#define | MODULE_ID "XSH_DATA_WAVE_TAB_2D" |
#define | SYNTAX |
Enumerations | |
enum | { POINT_OPT, SIZE_OPT, STEP_OPT, C_COLOR_OPT, BINX_OPT, BINY_OPT } |
enum | { LAMBDA_STEP_OPT, SLIT_STEP_OPT, BINX_OPT, BINY_OPT, DEBUG_OPT, HELP_OPT } |
enum | { SLIT_STEP_OPT } |
Functions | |
static void | HandleOptions (int argc, char **argv) |
int | main (int argc, char **argv) |
Unit test of xsh_data_order. | |
static void | Help (void) |
Variables | |
static const char * | Options = "?" |
static struct option | LongOptions [] |
static char | PointType [16] |
static char | PointSize [8] |
static int | PointStep = 8 |
static char | CentralColor [32] |
int | binx = 1 |
int | biny = 1 |
static float | lambda_step = 0.5 |
static float | slit_step = 1.458 |
int | binx = 1 |
int | biny = 1 |
static struct option | LongOptions [] |
static const char * | Options = "" |
static float | slit_step = 1.4 |
static struct option | LongOptions [] |
#define MODULE_ID "XSH_DATA_WAVE_TAB_2D" |
Definition at line 63 of file test-xsh_data_wave_tab_2d_sample.c.
#define MODULE_ID "XSH_DATA_WAVE_TAB_2D" |
Definition at line 63 of file test-xsh_data_wave_tab_2d.c.
#define MODULE_ID "XSH_DATA_STAR_FLUX" |
Definition at line 58 of file test-xsh_data_star_flux.c.
#define MODULE_ID "XSH_DATA_ORDER" |
Definition at line 60 of file test-xsh_data_order.c.
#define SYNTAX |
"Test the wave tab 2d\n"\ "usage : ./the_xsh_data_wave_tab_2d [OPTIONS] WAVE_TAB_2D ARC_LIST SPECTRAL_FORMAT\n"\ "WAVE_TAB_2D => The wave tab 2d\n"\ "ARC_LIST => An arclist\n"\ "SPECTRAL_FORMAT => The spectral format\n"\ "OPTIONS => :\n"\ " --slit-step=<nn> : Step in slit. Default 0.2 \n"
Definition at line 65 of file test-xsh_data_wave_tab_2d_sample.c.
#define SYNTAX |
"Test the order table\n"\ "usage : test_xsh_data_star_flux std_star_flux_table \n"\ "std_star_flux_table => the Standard Star Flux tabe FITS file\n"
Definition at line 60 of file test-xsh_data_star_flux.c.
#define SYNTAX |
"Test the order table\n"\ "usage : ./the_xsh_data_order [options] ORDER_TAB \n"\ "ORDER_TAB => the order table\n"\ "Options:\n"\ " --binx=<n> : binning in X (default 1)\n"\ " --biny=<n> : binning in Y (default 1)\n"\ " --point=<str> : Point Type (cross, x, diamond, ...)\n"\ " Default is 'cross'\n"\ " --size=<n> : Point size (pixels). Default is default DS9 value\n"\ " --step=<nn> : Step in pixels. Default '8'\n"
Definition at line 62 of file test-xsh_data_order.c.
#define XSH_FLOAT_PRECISION 0.000001 |
Definition at line 62 of file test-xsh_data_wave_tab_2d_sample.c.
#define XSH_FLOAT_PRECISION 0.000001 |
Definition at line 62 of file test-xsh_data_wave_tab_2d.c.
#define XSH_FLOAT_PRECISION 0.000001 |
Definition at line 59 of file test-xsh_data_order.c.
Referenced by main().
anonymous enum |
Definition at line 76 of file test-xsh_data_order.c.
anonymous enum |
Definition at line 65 of file test-xsh_data_wave_tab_2d.c.
anonymous enum |
Definition at line 76 of file test-xsh_data_wave_tab_2d_sample.c.
static void HandleOptions | ( | int | argc, | |
char ** | argv | |||
) | [static] |
Definition at line 92 of file test-xsh_data_wave_tab_2d_sample.c.
References LongOptions, Options, slit_step, SLIT_STEP_OPT, and SYNTAX.
static void Help | ( | void | ) | [static] |
Definition at line 85 of file test-xsh_data_wave_tab_2d.c.
References TEST_END.
int main | ( | int | argc, | |
char ** | argv | |||
) |
Unit test of xsh_data_order.
Unit test of xsh_data_wave_tab_2d.
Unit test of xsh_data_star_flux.
Definition at line 118 of file test-xsh_data_wave_tab_2d_sample.c.
References check, HandleOptions(), instrument, xsh_wavesol::max_lambda, xsh_wavesol::max_order, xsh_wavesol::max_slit, xsh_wavesol::min_lambda, xsh_wavesol::min_order, xsh_wavesol::min_slit, MODULE_ID, xsh_arclist::size, slit_step, SYNTAX, TESTS_INIT, x, xsh_arclist_get_wavelength(), xsh_arclist_load(), XSH_ASSURE_NOT_NULL, XSH_DEBUG_LEVEL_MEDIUM, xsh_debug_level_set(), xsh_error_dump, xsh_instrument_new(), xsh_msg, xsh_spectralformat_list_get_orders(), xsh_spectralformat_list_load(), xsh_wavesol_eval_polx(), xsh_wavesol_eval_poly(), xsh_wavesol_load(), and y.
int binx = 1 |
Definition at line 71 of file test-xsh_data_wave_tab_2d.c.
int binx = 1 |
Definition at line 94 of file test-xsh_data_order.c.
Referenced by HandleOptions(), main(), xsh_build_ifu_cube(), xsh_check_input_is_unbinned(), xsh_check_load_master_bpmap(), xsh_compute_noise_map(), xsh_create_dispersol_physmod(), xsh_create_master_bias(), xsh_create_poly_wavemap(), xsh_ifu_trace_object_calibrate(), xsh_image_mflat_detect_blemishes(), xsh_image_mflat_detect_hotcold(), xsh_mbias(), xsh_mdark(), xsh_model_maps_create(), xsh_monitor_flux(), xsh_normalize_spectrum(), xsh_normalize_spectrum_ord(), xsh_params_bin_scale(), xsh_response_calculate(), xsh_scired_slit_nod(), xsh_slit_stare_get_calibs(), xsh_subtract_bias(), xsh_util_guess_xy(), xsh_util_ifu_build_cube(), xsh_util_ima_oversample(), xsh_util_ima_rebin(), xsh_util_ima_subsample(), and xsh_util_physmod().
int biny = 1 |
Definition at line 72 of file test-xsh_data_wave_tab_2d.c.
int biny = 1 |
Definition at line 95 of file test-xsh_data_order.c.
Referenced by HandleOptions(), main(), xsh_build_ifu_cube(), xsh_check_input_is_unbinned(), xsh_compute_noise_map(), xsh_create_dispersol_physmod(), xsh_create_master_bias(), xsh_create_poly_wavemap(), xsh_efficiency_compute(), xsh_ifu_trace_object_calibrate(), xsh_image_mflat_detect_blemishes(), xsh_image_mflat_detect_hotcold(), xsh_mbias(), xsh_mdark(), xsh_model_maps_create(), xsh_monitor_flux(), xsh_params_bin_scale(), xsh_response_calculate(), xsh_scired_slit_nod(), xsh_slit_stare_get_calibs(), xsh_subtract_bias(), xsh_util_efficiency2d(), xsh_util_guess_xy(), xsh_util_ifu_build_cube(), xsh_util_ima_oversample(), xsh_util_ima_rebin(), xsh_util_ima_subsample(), and xsh_util_physmod().
char CentralColor[32] [static] |
Definition at line 93 of file test-xsh_data_order.c.
float lambda_step = 0.5 [static] |
Definition at line 69 of file test-xsh_data_wave_tab_2d.c.
Referenced by do_calib_spectrum(), xsh_combine_nod(), xsh_create_dispersol_physmod(), xsh_create_poly_wavemap(), xsh_format(), xsh_localize_obj_auto(), xsh_merge_ord_with_tag(), xsh_opt_extract_orders(), xsh_util_multiply_by_response(), and xsh_util_multiply_by_response_ord().
struct option LongOptions[] [static] |
{ {"slit-step", required_argument, 0, SLIT_STEP_OPT}, {NULL, 0, 0, 0} }
Definition at line 83 of file test-xsh_data_wave_tab_2d_sample.c.
Referenced by HandleOptions().
struct option LongOptions[] [static] |
{ {"lambda-step", required_argument, 0, LAMBDA_STEP_OPT}, {"slit-step", required_argument, 0, SLIT_STEP_OPT}, {"binx", required_argument, 0, BINX_OPT}, {"biny", required_argument, 0, BINY_OPT}, {"debug", required_argument, 0, DEBUG_OPT}, {"help", 0, 0, HELP_OPT}, {NULL, 0, 0, 0} }
Definition at line 74 of file test-xsh_data_wave_tab_2d.c.
struct option LongOptions[] [static] |
{ {"point", required_argument, 0, POINT_OPT}, {"size", required_argument, 0, SIZE_OPT}, {"step", required_argument, 0, STEP_OPT}, {"c-color", required_argument, 0, C_COLOR_OPT}, {"binx", required_argument, 0, BINX_OPT}, {"biny", required_argument, 0, BINY_OPT}, {NULL, 0, 0, 0} }
Definition at line 80 of file test-xsh_data_order.c.
const char* Options = "" [static] |
Definition at line 74 of file test-xsh_data_wave_tab_2d_sample.c.
Referenced by HandleOptions().
const char* Options = "?" [static] |
Definition at line 74 of file test-xsh_data_order.c.
char PointSize[8] [static] |
Definition at line 91 of file test-xsh_data_order.c.
int PointStep = 8 [static] |
Definition at line 92 of file test-xsh_data_order.c.
Referenced by xsh_order_list_save().
char PointType[16] [static] |
Definition at line 90 of file test-xsh_data_order.c.
float slit_step = 1.4 [static] |
Definition at line 80 of file test-xsh_data_wave_tab_2d_sample.c.
Referenced by HandleOptions(), and main().
float slit_step = 1.458 [static] |
Definition at line 70 of file test-xsh_data_wave_tab_2d.c.
Referenced by xsh_combine_nod(), xsh_create_dispersol_physmod(), xsh_create_poly_wavemap(), xsh_extract_with_tag(), xsh_localize_obj_auto(), xsh_merge_ord_with_tag(), and xsh_rec_slit_size().