Defines | |
#define | MODULE_ID "XSH_DETECT_CONTINUUM" |
Functions | |
static void | verify_order_table (cpl_frame *result) |
int | main (void) |
Variables | |
static const double | poly0_coeff [] |
Unit test of XSH_DETECT_CONTINUUM. | |
static const double | step = 40. |
static int | nx = 400 |
static int | ny = 400 |
static int | starty = 10 |
static int | endy = 380 |
static int | dimension = 1 |
static int | degree = 2 |
static int | width = 10 |
static int | norder = 3 |
static double | exptime = 1. |
static const char * | img_name = "dtc_img.fits" |
static const char * | tbl_name = "dtc_tbl.fits" |
static const char * | dtc_pre_name = "dtc_img_pre.fits" |
#define MODULE_ID "XSH_DETECT_CONTINUUM" |
Definition at line 55 of file test-xsh_detect_continuum.c.
int main | ( | void | ) |
Definition at line 112 of file test-xsh_detect_continuum.c.
References add_to_order_list(), check, check_msg, create_order_image(), create_order_list(), degree, dimension, dtc_pre_name, endy, exptime, xsh_detect_continuum_param::fit_threshold, xsh_detect_continuum_param::fit_window, xsh_clipping_param::frac, img_name, instrument, mkHeader(), MODULE_ID, xsh_clipping_param::niter, norder, nx, ny, XSH_INSTRCONFIG::orders, poly0_coeff, xsh_detect_continuum_param::poly_degree, xsh_detect_continuum_param::poly_step, xsh_instrument::recipe_id, xsh_clipping_param::res_max, xsh_detect_continuum_param::running_window, xsh_detect_continuum_param::search_window, xsh_clipping_param::sigma, starty, step, tbl_name, TESTS_INIT, verify_order_table(), width, XSH_ARM_VIS, XSH_DEBUG_LEVEL_LOW, xsh_debug_level_set(), xsh_detect_continuum(), xsh_error_dump, xsh_free_frame(), xsh_free_image(), xsh_free_polynomial(), xsh_free_propertylist(), 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_UNDEFINED, XSH_MODE_SLIT, xsh_msg, xsh_order_list_dump(), xsh_order_list_free(), xsh_order_list_save(), xsh_pre_create(), xsh_pre_free(), xsh_pre_save(), and xsh_test_create_bias_image().
static void verify_order_table | ( | cpl_frame * | result | ) | [static] |
Definition at line 87 of file test-xsh_detect_continuum.c.
References assure, check, QC_ORD_ORDERPOS_RESIDAVG, xsh_free_propertylist(), xsh_get_property_value(), and xsh_msg.
Referenced by main().
int degree = 2 [static] |
Definition at line 80 of file test-xsh_detect_continuum.c.
Referenced by derivative_cpl_polynomial(), main(), xsh_detect_continuum(), xsh_detmon_pernoise_rm_bg(), xsh_order_list_dump(), xsh_order_table_from_fmtchk(), xsh_polynomial_add_2d(), xsh_polynomial_collapse(), xsh_polynomial_convert_to_table(), and xsh_polynomial_derivative_2d().
int dimension = 1 [static] |
Definition at line 80 of file test-xsh_detect_continuum.c.
Referenced by derivative_cpl_polynomial(), main(), xsh_polynomial_collapse(), xsh_polynomial_derivative(), xsh_polynomial_duplicate(), xsh_polynomial_get_coeff_1d(), and xsh_polynomial_get_coeff_2d().
const char* dtc_pre_name = "dtc_img_pre.fits" [static] |
Definition at line 85 of file test-xsh_detect_continuum.c.
Referenced by main().
int endy = 380 [static] |
Definition at line 79 of file test-xsh_detect_continuum.c.
Referenced by main(), xsh_cfg_recover_measure_line_xy(), xsh_crea_grid_from_mask(), xsh_crea_grid_from_samples(), xsh_create_master_flat_with_mask(), xsh_dispersol_list_to_slitmap(), xsh_dispersol_list_to_wavemap(), xsh_model_reduce(), and xsh_order_list_save().
double exptime = 1. [static] |
Definition at line 82 of file test-xsh_detect_continuum.c.
Referenced by irplib_pfits_get_exptime(), main(), xsh_2dmap(), xsh_create_master_dark(), xsh_efficiency_compute(), xsh_mdark_compute_fpn(), xsh_mdark_measure_fpn(), xsh_normalize_spectrum(), xsh_normalize_spectrum_ord(), xsh_obs_std_correct(), xsh_predict(), xsh_respon_slit_nod(), xsh_respon_slit_offset(), xsh_respon_slit_stare(), xsh_subtract_dark(), xsh_util_compute_response(), xsh_util_efficiency(), xsh_util_efficiency2d(), xsh_util_integrate(), xsh_utils_compute_airm(), xsh_utils_compute_airm_eff(), and xsh_utils_efficiency().
const char* img_name = "dtc_img.fits" [static] |
Definition at line 83 of file test-xsh_detect_continuum.c.
Referenced by main().
int norder = 3 [static] |
Definition at line 81 of file test-xsh_detect_continuum.c.
Referenced by main(), and xsh_order_list_save().
int nx = 400 [static] |
Definition at line 78 of file test-xsh_detect_continuum.c.
int ny = 400 [static] |
Definition at line 78 of file test-xsh_detect_continuum.c.
const double poly0_coeff[] [static] |
{ 280., 0.3, -0.0025 }
Unit test of XSH_DETECT_CONTINUUM.
Test the Data Reduction Library function XSH_DETECT_CONTINUUM
Definition at line 74 of file test-xsh_detect_continuum.c.
Referenced by main().
int starty = 10 [static] |
Definition at line 79 of file test-xsh_detect_continuum.c.
Referenced by main(), xsh_cfg_recover_measure_line_xy(), xsh_crea_grid_from_mask(), xsh_crea_grid_from_samples(), xsh_create_master_flat_with_mask(), xsh_detect_continuum(), xsh_dispersol_list_to_slitmap(), xsh_dispersol_list_to_wavemap(), xsh_model_reduce(), and xsh_order_list_save().
const double step = 40. [static] |
Definition at line 76 of file test-xsh_detect_continuum.c.
Referenced by adjust_lambdas(), create_rectify_nod_list(), main(), xsh_detect_continuum(), xsh_function1d_xcorrelate(), and xsh_function1d_xcorrelate2().
const char* tbl_name = "dtc_tbl.fits" [static] |
Definition at line 84 of file test-xsh_detect_continuum.c.
Referenced by main().
int width = 10 [static] |
Definition at line 80 of file test-xsh_detect_continuum.c.
Referenced by main(), xsh_follow_arclines(), xsh_generate_tanh_kernel(), xsh_image_create_gaussian_image(), xsh_localize_ifu_slitlet(), and xsh_localize_obj_auto().