X-shooter Pipeline Reference Manual 3.8.15
Macros | Enumerations | Functions | Variables
Test Remove Crh Multi function(s)

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_instrumentinstrument = 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
 

Detailed Description

Macro Definition Documentation

◆ CR_PIX_VALUE

#define CR_PIX_VALUE   32000.

Definition at line 71 of file test-xsh_remove_crh_multiple.c.

◆ CR_PLACE_X

#define CR_PLACE_X   5

Definition at line 109 of file test-xsh_remove_crh_multiple.c.

◆ CR_PLACE_Y

#define CR_PLACE_Y   5

Definition at line 110 of file test-xsh_remove_crh_multiple.c.

◆ MODULE_ID

#define MODULE_ID   "XSH_REMOVE_CRH_MULTIPLE"

Definition at line 68 of file test-xsh_remove_crh_multiple.c.

Enumeration Type Documentation

◆ anonymous enum

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.

Function Documentation

◆ createFakeFrames()

static cpl_frameset * createFakeFrames ( XSH_INSTRCONFIG iconfig)
static

◆ HandleOptions()

static void HandleOptions ( int  argc,
char **  argv 
)
static

◆ Help()

static void Help ( void  )
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().

◆ main()

int main ( int  argc,
char **  argv 
)

◆ verifCr()

static int verifCr ( cpl_frame *  medframe)
static

Variable Documentation

◆ bgMax

double bgMax = 90.
static

Definition at line 106 of file test-xsh_remove_crh_multiple.c.

Referenced by createFakeFrames(), and HandleOptions().

◆ bgMin

double bgMin = 80.
static

Definition at line 105 of file test-xsh_remove_crh_multiple.c.

Referenced by createFakeFrames(), and HandleOptions().

◆ crh_clipping

xsh_clipping_param crh_clipping
static

◆ imgSize

int imgSize = 10
static

Definition at line 104 of file test-xsh_remove_crh_multiple.c.

Referenced by createFakeFrames(), HandleOptions(), and verifCr().

◆ instrument

xsh_instrument* instrument = NULL
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().

◆ long_options

struct option long_options[]
static
Initial value:
= {
{"nimg", required_argument, 0, NIMG_OPT},
{"nbcr", required_argument, 0, NBCR_OPT},
{"size", required_argument, 0, SIZE_OPT},
{"bgmin", required_argument, 0, BGMIN_OPT},
{"bgmax", required_argument, 0, BGMAX_OPT},
{"sigma", required_argument, 0, SIGMA_OPT},
{"debug", required_argument, 0, DEBUG_OPT},
{"help", 0, 0, HELP_OPT},
{0, 0, 0, 0}
}

Definition at line 86 of file test-xsh_remove_crh_multiple.c.

Referenced by HandleOptions().

◆ nbCr

int nbCr = 1
static

Definition at line 101 of file test-xsh_remove_crh_multiple.c.

Referenced by createFakeFrames(), and HandleOptions().

◆ nbImages

int nbImages = 4
static

Definition at line 100 of file test-xsh_remove_crh_multiple.c.

Referenced by createFakeFrames(), and HandleOptions().

◆ sigma

double sigma = 4.0
static

◆ totCr

int totCr = 0
static

Definition at line 102 of file test-xsh_remove_crh_multiple.c.

Referenced by createFakeFrames(), and verifCr().