|
X-shooter Pipeline Reference Manual 3.8.15
|
Macros | |
| #define | MODULE_ID "XSH_REMOVE_CRH_MULTIPLE" |
| #define | CR_PIX_VALUE 32000. |
| #define | CR_PLACE_X 5 |
| #define | CR_PLACE_Y 5 |
Enumerations | |
| enum | { NIMG_OPT , NBCR_OPT , DEBUG_OPT , SIZE_OPT , BGMIN_OPT , BGMAX_OPT , SIGMA_OPT , HELP_OPT } |
Functions | |
| static void | Help (void) |
| static void | HandleOptions (int argc, char **argv) |
| static cpl_frameset * | createFakeFrames (XSH_INSTRCONFIG *iconfig) |
| static int | verifCr (cpl_frame *medframe) |
| int | main (int argc, char **argv) |
| Unit test of xsh_remove_crh_multiple. | |
Variables | |
| static struct option | long_options [] |
| static xsh_instrument * | instrument = NULL |
| static xsh_clipping_param | crh_clipping |
| static int | nbImages = 4 |
| static int | nbCr = 1 |
| static int | totCr = 0 |
| static int | imgSize = 10 |
| static double | bgMin = 80. |
| static double | bgMax = 90. |
| static double | sigma = 4.0 |
| #define CR_PIX_VALUE 32000. |
Definition at line 71 of file test-xsh_remove_crh_multiple.c.
| #define CR_PLACE_X 5 |
Definition at line 109 of file test-xsh_remove_crh_multiple.c.
| #define CR_PLACE_Y 5 |
Definition at line 110 of file test-xsh_remove_crh_multiple.c.
| #define MODULE_ID "XSH_REMOVE_CRH_MULTIPLE" |
Definition at line 68 of file test-xsh_remove_crh_multiple.c.
| anonymous enum |
| Enumerator | |
|---|---|
| NIMG_OPT | |
| NBCR_OPT | |
| DEBUG_OPT | |
| SIZE_OPT | |
| BGMIN_OPT | |
| BGMAX_OPT | |
| SIGMA_OPT | |
| HELP_OPT | |
Definition at line 75 of file test-xsh_remove_crh_multiple.c.
|
static |
Definition at line 123 of file test-xsh_remove_crh_multiple.c.
References bgMax, bgMin, CR_PIX_VALUE, CR_PLACE_X, CR_PLACE_Y, imgSize, mkHeader(), nbCr, nbImages, totCr, xsh_free_image(), xsh_free_propertylist(), and xsh_msg.
Referenced by main().
|
static |
Definition at line 276 of file test-xsh_remove_crh_multiple.c.
References bgMax, BGMAX_OPT, bgMin, BGMIN_OPT, DEBUG_OPT, Help(), imgSize, long_options, nbCr, NBCR_OPT, nbImages, NIMG_OPT, sigma, SIGMA_OPT, SIZE_OPT, XSH_DEBUG_LEVEL_HIGH, XSH_DEBUG_LEVEL_LOW, and xsh_debug_level_set().
Referenced by main().
|
static |
Definition at line 258 of file test-xsh_remove_crh_multiple.c.
References MODULE_ID, TEST_END, and TESTS_CLEAN_WORKSPACE.
Referenced by HandleOptions().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Unit test of xsh_remove_crh_multiple.
Test behaviour of xsh_remove_crh_multiple function. Create fake frames including predefined Cosmic rays. Call xsh_prepare. Then in turn call xsh_remove_crh_multi and verify that the output is compatible with the CR created.
< Median frame, result of remove_crh
Definition at line 326 of file test-xsh_remove_crh_multiple.c.
References assure, check, check_msg, createFakeFrames(), crh_clipping, xsh_clipping_param::frac, HandleOptions(), instrument, MODULE_ID, xsh_clipping_param::niter, xsh_clipping_param::res_max, sigma, xsh_clipping_param::sigma, sof_to_frameset(), TEST_END, TESTS_CLEAN_WORKSPACE, TESTS_INIT, TESTS_INIT_WORKSPACE, verifCr(), XSH_ARM_UVB, XSH_DEBUG_LEVEL_MEDIUM, xsh_debug_level_set(), xsh_dfs_set_groups(), xsh_dfs_split_in_group(), xsh_error_dump, xsh_free_frame(), xsh_free_frameset(), xsh_instrument_free(), xsh_instrument_get_config(), xsh_instrument_new(), xsh_instrument_set_arm(), xsh_instrument_set_decode_bp(), xsh_instrument_set_lamp(), xsh_instrument_set_mode(), xsh_instrument_set_recipe_id(), XSH_LAMP_QTH, XSH_MODE_IFU, xsh_msg, XSH_NEW_FRAMESET, xsh_prepare(), and xsh_remove_crh_multiple().
|
static |
Definition at line 179 of file test-xsh_remove_crh_multiple.c.
References assure, check_msg, imgSize, instrument, totCr, xsh_bpmap_count(), xsh_msg, xsh_pre_free(), and xsh_pre_load().
Referenced by main().
|
static |
Definition at line 106 of file test-xsh_remove_crh_multiple.c.
Referenced by createFakeFrames(), and HandleOptions().
|
static |
Definition at line 105 of file test-xsh_remove_crh_multiple.c.
Referenced by createFakeFrames(), and HandleOptions().
|
static |
Definition at line 99 of file test-xsh_remove_crh_multiple.c.
Referenced by main(), xsh_find_cosmics(), xsh_linear(), xsh_mdark(), xsh_remove_cosmics(), xsh_remove_cr(), and xsh_remove_crh_multiple().
|
static |
Definition at line 104 of file test-xsh_remove_crh_multiple.c.
Referenced by createFakeFrames(), HandleOptions(), and verifCr().
|
static |
Definition at line 98 of file test-xsh_remove_crh_multiple.c.
Referenced by add_noisy_pixels(), calc_curve_qc(), calc_resp_qc(), calculate_qc_parameters(), clean_arclist_data(), compute_abs_order(), create_frame(), create_input_product_frame(), create_order_list(), create_resid_tab(), create_sky_mask(), do_compute(), fill_rectified(), get_average_qc_from_raws(), get_max_pos(), irplib_paf_init(), main(), save_pre_frame(), set_masterdark_qc(), set_pickup_noise_pixels_qc(), set_qc_parameters(), shift_with_kw(), verifCr(), verify_noisy(), xsh_2dmap(), xsh_abs_remove_crh_single(), xsh_absorp(), xsh_add_product(), xsh_add_product_bpmap(), xsh_add_product_image(), xsh_add_product_imagelist(), xsh_add_product_table(), xsh_add_product_vector(), xsh_add_sdp_product_spectrum(), xsh_add_sky_model(), xsh_arcsec_get(), xsh_begin(), xsh_blaze_image(), xsh_bspline_smooth_non_uniform2(), xsh_build_ifu_cube(), xsh_build_ifu_map(), xsh_calibrate_flux(), xsh_center_cube(), xsh_cfg_recover_driver(), xsh_cfg_recover_last_step(), xsh_cfg_recover_model_THE_create(), xsh_check_afc(), xsh_check_divide_flat(), xsh_check_get_map(), xsh_check_remove_crh_single(), xsh_check_subtract_bias(), xsh_check_subtract_dark(), xsh_check_subtract_sky_single(), xsh_combine_flats_and_detect_edges(), xsh_combine_nod(), xsh_combine_offset(), xsh_compute_flat_edges(), xsh_compute_linearity(), xsh_compute_resampling_accuracy(), xsh_compute_response(), xsh_compute_response2(), xsh_compute_response_ord(), xsh_compute_shift_ifu(), xsh_compute_slice_dist(), xsh_compute_wavelength_resampling_accuracy(), xsh_create_blaze(), xsh_create_dispersol_physmod(), xsh_create_map(), xsh_create_model_map(), xsh_create_order_table(), xsh_create_poly_wavemap(), xsh_cube(), xsh_cube_qc_trace_window(), xsh_decode_bp_set(), xsh_detect_order_edge(), xsh_dfs_set_groups(), xsh_dispersol_list_load(), xsh_dispersol_list_new(), xsh_divide_by_blaze(), xsh_efficiency_compute(), xsh_ensure_raws_input_offset_recipe_is_proper(), xsh_evaluate_tell_model(), xsh_extract(), xsh_extract_clean(), xsh_extract_clean_slice(), xsh_extract_clean_with_tag(), xsh_extract_ifu(), xsh_extract_local_clean(), xsh_extract_obj_and_sky_pairs(), xsh_extract_points_to_fit(), xsh_extract_ranges_to_fit(), xsh_extract_with_tag(), xsh_fill_high_abs_regions(), xsh_fill_tell_compute_resid_regions(), xsh_fill_tell_fit_regions(), xsh_find_wave_tab_ifu(), xsh_fit_gaussian(), xsh_flat_merge_qth_d2(), xsh_flat_merge_qth_d2_smooth(), xsh_flat_merge_qth_d2_tabs(), xsh_flexcomp(), xsh_follow_arclines(), xsh_follow_arclines_ifu(), xsh_follow_arclines_slit(), xsh_format(), xsh_frame_check_is_right_afcatt(), xsh_frame_check_model_cfg_is_proper_for_sci(), xsh_frame_image_ext_qc_trace_window(), xsh_frame_image_qc_trace_window(), xsh_frame_sci_get_gain_airmass_exptime_naxis1_biny(), xsh_frame_table_monitor_flux_qc(), xsh_frame_table_monitor_flux_qc_ext(), xsh_frameset_crh_single(), xsh_frameset_mflat_divide(), xsh_frameset_uniform_bin(), xsh_geom_ifu(), xsh_get_calibs_to_flux_calibrate(), xsh_get_central_xy(), xsh_get_crh_frame(), xsh_get_dispersion_calibs(), xsh_get_master_dark_nir_via_noise(), xsh_get_master_dark_opt(), xsh_get_normal_calibs(), xsh_get_response_calibs(), xsh_get_slit_edges(), xsh_get_slit_stare_calibs(), xsh_get_systematic_spatial_accuracy(), xsh_get_systematic_wave_accuracy(), xsh_hdrl_remove_crh_single(), xsh_image_get_hot_cold_pixs(), xsh_image_mflat_detect_blemishes(), xsh_instrument_free(), xsh_instrument_get_binx(), xsh_instrument_get_biny(), xsh_instrument_new(), xsh_instrument_set_binx(), xsh_instrument_set_biny(), xsh_instrument_set_recipe_id(), xsh_interpolate_atm_ext(), xsh_linear(), xsh_linear_group_by_exptime(), xsh_lingain(), xsh_lingain_set_saturation_limit(), xsh_load_ref_table(), xsh_localization_save(), xsh_localize_ifu(), xsh_localize_ifu_slitlet(), xsh_localize_obj(), xsh_localize_obj_auto(), xsh_localize_obj_ifu(), xsh_localize_obj_manual(), xsh_mbias(), xsh_mbias_fpn(), xsh_mdark(), xsh_mdark_compute_fpn(), xsh_mdark_measure_fpn(), xsh_merge_ord(), xsh_merge_ord_ifu(), xsh_merge_ord_slitlet(), xsh_merge_ord_with_tag(), xsh_mflat(), xsh_mflat_combine_flats(), xsh_mode_is_physmod(), xsh_mode_set(), xsh_model(), xsh_model_anneal(), xsh_model_first_anneal(), xsh_model_reduce(), xsh_model_temperature_update_frame(), xsh_model_temperature_update_structure(), xsh_monitor_flux(), xsh_monitor_spectrum1D_extra_qc(), xsh_monitor_spectrum1D_flux(), xsh_monitor_spectrum3D_flux(), xsh_nod_group_by_reloff(), xsh_nod_group_by_reloff2(), xsh_nod_rectify_and_shift_with_key(), xsh_normalize_spectrum(), xsh_normalize_spectrum_ord(), xsh_obs_std_correct(), xsh_opt_extract(), xsh_opt_extract_orders(), xsh_order_list_save(), xsh_order_table_from_fmtchk(), xsh_orderpos(), xsh_paf_save(), xsh_pfits_get_slit_value(), xsh_pfits_get_slit_width(), xsh_pfits_set_qc(), xsh_pfits_set_qc_multi(), xsh_pfits_set_qc_slit_width(), xsh_pre_init(), xsh_predict(), xsh_qc_flats_raw(), xsh_qc_in_recipe(), xsh_qc_write_to_flat(), xsh_rec_list_duplicate(), xsh_rec_list_frame_invert(), xsh_rec_list_load(), xsh_rec_list_load_eso(), xsh_rec_list_load_eso_1d(), xsh_recipe_params_check(), xsh_recipe_params_drs_check(), xsh_rectify(), xsh_rectify_and_shift(), xsh_rectify_ifu(), xsh_rectify_orders(), xsh_rectify_orders_ifu(), xsh_remove_crh_multiple(), xsh_remove_crh_single(), xsh_resid_order_2tab(), xsh_resid_order_save(), xsh_resolution_get(), xsh_respon_slit_nod(), xsh_respon_slit_nod_get_calibs(), xsh_respon_slit_offset(), xsh_respon_slit_stare(), xsh_save_sky_model(), xsh_scired_get_proper_maps(), xsh_scired_ifu_offset(), xsh_scired_ifu_stare(), xsh_scired_nod_get_parameters(), xsh_scired_slit_nod(), xsh_scired_slit_nod_accurate(), xsh_scired_slit_nod_fast(), xsh_scired_slit_nod_get_calibs(), xsh_scired_slit_offset(), xsh_scired_slit_stare(), xsh_sdp_spectrum_create(), xsh_shift(), xsh_shift_rectified(), xsh_shift_tab_create(), xsh_slice_offset_save(), xsh_slit_offset_get_calibs(), xsh_slit_stare_correct_crh_and_sky(), xsh_slit_stare_get_calibs(), xsh_slit_stare_get_calibs2(), xsh_slit_stare_get_maps(), xsh_subtract_on_off(), xsh_subtract_sky_nod(), xsh_subtract_sky_offset(), xsh_subtract_sky_single(), xsh_telluric_model_eval(), xsh_test_create_bias_image(), xsh_test_create_frame(), xsh_util_afc(), xsh_util_apply_response(), xsh_util_bpmap_coadd(), xsh_util_bpmap_nl_raw2pre(), xsh_util_compute_qc_residuals(), xsh_util_compute_response(), xsh_util_crh_single(), xsh_util_efficiency(), xsh_util_efficiency1d(), xsh_util_efficiency2d(), xsh_util_frameset_collapse_mean(), xsh_util_guess_xy(), xsh_util_ifu_build_cube(), xsh_util_ima_arith(), xsh_util_integrate(), xsh_util_model_SPF_create(), xsh_util_physmod(), xsh_util_physmod_model_THE_create(), xsh_wavecal(), xsh_wavelist_subtract_sky(), xsh_wavemap_list_new(), xsh_wavesol_create(), and xsh_wavesol_load().
|
static |
Definition at line 86 of file test-xsh_remove_crh_multiple.c.
Referenced by HandleOptions().
|
static |
Definition at line 101 of file test-xsh_remove_crh_multiple.c.
Referenced by createFakeFrames(), and HandleOptions().
|
static |
Definition at line 100 of file test-xsh_remove_crh_multiple.c.
Referenced by createFakeFrames(), and HandleOptions().
|
static |
Definition at line 107 of file test-xsh_remove_crh_multiple.c.
Referenced by calc_curve_qc(), calc_resp_qc(), create_gaussian_profile(), data_wavesol_fit_with_sigma(), esp_fit_ngauss(), expb_df(), expb_f(), fitngauss(), flag_noisy_pixels(), HandleOptions(), main(), test_combine_ima_gauss(), test_combine_ima_gauss2(), test_combine_ima_gauss3(), test_create_ima_gauss(), test_gsl_example(), xsh_array_clip_mean(), xsh_array_clip_median(), xsh_array_clip_poly1d(), xsh_bspline_fit_smooth(), xsh_bspline_fit_smooth_data(), xsh_bspline_fit_smooth_data2(), xsh_center_cube(), xsh_define_gauss_profile(), xsh_detmon_gain_compute_qc(), xsh_detmon_gain_table_fill_row(), xsh_gauss_gen(), xsh_get_xcorrel_peak(), xsh_gsl_bspline_non_uniform(), xsh_gsl_fit_gaussian(), xsh_image_extract_optimal(), xsh_image_gaussian_fit_y(), xsh_localize_ifu_slitlet(), xsh_localize_obj_auto(), and xsh_model_refining_detect().
|
static |
Definition at line 102 of file test-xsh_remove_crh_multiple.c.
Referenced by createFakeFrames(), and verifCr().