Defines | |
#define | MAX_ITERATIONS 6 |
#define | REGDEBUG_FULL 0 |
Functions | |
static void | add_qc_crh (xsh_pre *pre, int nbcrh, int nframes, xsh_instrument *instrument) |
cpl_frame * | xsh_abs_remove_crh_single (cpl_frame *sci_frame, cpl_frame *wavemap_frame, xsh_instrument *instrument, xsh_remove_crh_single_param *single_par, const char *res_tag) |
cpl_frame * | xsh_remove_crh_single (cpl_frame *in_sci_frame, cpl_frame *wavemap, xsh_instrument *instrument, xsh_remove_crh_single_param *single_par, const char *res_tag) |
Remove cosmic rays from a single frame. |
Suppress Cosmic Rays by analysing on files
#define MAX_ITERATIONS 6 |
Definition at line 67 of file xsh_remove_crh_single.c.
Referenced by xsh_remove_crh_single().
#define REGDEBUG_FULL 0 |
Definition at line 68 of file xsh_remove_crh_single.c.
static void add_qc_crh | ( | xsh_pre * | pre, | |
int | nbcrh, | |||
int | nframes, | |||
xsh_instrument * | instrument | |||
) | [static] |
Calculates and set the QC parameters relevant for Cosmic Rays.
pre | Pointer to XSH_PRE Structure | |
nbcrh | Total umber of cosmics found | |
nframes | Number of frames used to remove cosmics | |
instrument | Pointer to indstrument description structure |
< Average of cosmics per frame
Definition at line 81 of file xsh_remove_crh_single.c.
References check, xsh_pre::data_header, xsh_pre::exptime, xsh_pre::nx, xsh_pre::ny, xsh_pre::pszx, xsh_pre::pszy, xsh_pre::qual_header, XSH_ASSURE_NOT_ILLEGAL, XSH_ASSURE_NOT_NULL, xsh_msg_dbg_medium, xsh_pfits_set_qc_crrate(), xsh_pfits_set_qc_ncrh(), and xsh_pfits_set_qc_ncrh_mean().
Referenced by xsh_remove_crh_single().
cpl_frame* xsh_abs_remove_crh_single | ( | cpl_frame * | sci_frame, | |
cpl_frame * | wavemap_frame, | |||
xsh_instrument * | instrument, | |||
xsh_remove_crh_single_param * | single_par, | |||
const char * | res_tag | |||
) |
Definition at line 120 of file xsh_remove_crh_single.c.
References check, XSH_ASSURE_NOT_NULL, xsh_frame_abs(), xsh_frame_mult(), xsh_free_frame(), xsh_free_propertylist(), xsh_msg, xsh_pfits_get_qc_ncrh(), XSH_QC_CRH_NUMBER, and xsh_remove_crh_single().
Referenced by xsh_scired_slit_nod_accurate(), and xsh_scired_slit_nod_fast().
cpl_frame* xsh_remove_crh_single | ( | cpl_frame * | in_sci_frame, | |
cpl_frame * | wavemap, | |||
xsh_instrument * | instrument, | |||
xsh_remove_crh_single_param * | single_par, | |||
const char * | res_tag | |||
) |
Remove cosmic rays from a single frame.
[in] | in_sci_frame | The science Frame |
[in] | wavemap | The wave map Frame |
[in] | instrument | Pointer to instrument description |
[in] | single_par | Parameters for remove crh single |
[in] | res_tag | Parameters for result tag |
< Input PRE
< Result PRE
< Result image
Definition at line 184 of file xsh_remove_crh_single.c.
References add_qc_crh(), check, xsh_pre::conad, xsh_remove_crh_single_param::crh_frac_max, xsh_remove_crh_single_param::f_lim, m, MAX_ITERATIONS, xsh_remove_crh_single_param::nb_iter, xsh_pre::nx, xsh_pre::ny, QFLAG_COSMIC_RAY_REMOVED, xsh_pre::qual, xsh_pre::ron, xsh_remove_crh_single_param::sigma_lim, XSH_ARM_NIR, XSH_ASSURE_NOT_NULL_MSG, xsh_debug_level_get(), XSH_DEBUG_LEVEL_MEDIUM, XSH_FREE, xsh_free_image(), xsh_free_matrix(), xsh_free_vector(), xsh_image_filter_linear(), xsh_image_filter_median(), xsh_instrument_get_arm(), xsh_msg_dbg_high, xsh_msg_dbg_low, xsh_msg_dbg_medium, xsh_pre_duplicate(), xsh_pre_free(), xsh_pre_get_data(), xsh_pre_load(), xsh_pre_save(), and xsh_stringcat_any().
Referenced by main(), xsh_abs_remove_crh_single(), xsh_check_remove_crh_single(), xsh_respon_slit_offset(), xsh_scired_ifu_offset(), xsh_scired_slit_offset(), and xsh_util_crh_single().