antaress.ANTARESS_corrections.ANTARESS_peaks module#
- corr_cosm(inst, gen_dic, data_inst, plot_dic, data_dic, coord_dic)[source]#
Main cosmics correction routine.
- Parameters:
TBD
- Returns:
TBD
- corr_cosm_vis(iexp_group, proc_DI_data_paths, hcosm_ncomp, n_in_visit, cosm_ncomp, dim_all, al_cosm, idx_ord_cc, cen_bins_all, cond_cc, flux_all, pix_size_v, data_type, rv_al_all, err2_all, edge_bins_all, ord_corr_list, resamp_mode, dim_exp, nspec, cosm_thresh, plot_cosm_corr, proc_DI_data_paths_new, cosm_n_wings, cosm_masked_vis)[source]#
Cosmics correction routine per visit.
- Parameters:
TBD
- Returns:
TBD
- MAIN_permpeak(inst, gen_dic, data_inst, plot_dic, data_dic, data_prop)[source]#
Main persistent peak routine.
Identifies and masks spectra for positive features that persists over time.
this routine identifies and masks hot pixels and telluric lines in emission
bad pixels on the detector and telluric lines are aligned in the Earth rest frame, so that exposures are compared in this referential
we use an estimate of the continuum to identify spurious features, using RASSINE approach (Cretignier+2020, A&A, 640, A42)
- Parameters:
TBD
- Returns:
TBD
- multithread_permpeak_flag(func_input, nthreads, n_elem, y_inputs, common_args)[source]#
Multithreading of permpeak_flag().
Specific implementation of MAIN_multithread()
- Parameters:
func_input (function) – multi-threaded function
nthreads (int) – number of threads
n_elem (int) – number of elements to thread
y_inputs (list) – threadable function inputs
common_args (tuple) – common function inputs
- Returns:
y_output (specific to func_input) – function outputs
- permpeak_flag(iexp_group, BERV_group, nord_corr_list, nspec, proc_DI_data_paths, ord_corr_list, permpeak_edges, inst, permpeak_range_corr, permpeak_outthresh, permpeak_peakwin, range_proc_ord, mean_flux_mast, nord, cont_func_dic)[source]#
Persistent peak flagging.
Flags pixels with spurious positive flux
- Parameters:
TBD
- Returns:
TBD
- permpeak_mask(iexp_group, cond_mask_all, proc_DI_data_paths, proc_DI_data_paths_new, ord_corr_list)[source]#
Persistent peak masking.
Masks pixels with spurious positive flux
- Parameters:
TBD
- Returns:
TBD
- corr_permpeak(inst, gen_dic, data_inst, plot_dic, data_dic, data_prop)[source]#
Main persistent peak routine.
Identifies and masks spectra for positive features that persists over time.
this routine identifies and masks hot pixels and telluric lines in emission
bad pixels on the detector and telluric lines are aligned in the Earth rest frame, so that exposures are compared in this referential
we use an estimate of the continuum to identify spurious features, using RASSINE approach (Cretignier+2020, A&A, 640, A42)
- Parameters:
TBD
- Returns:
TBD