Remove Cosmic Rays single (xsh_remove_crh_single)
[DRL Functions]

Defines

#define REGDEBUG_FULL   0

Functions

static void add_qc_crh (xsh_pre *pre, int nbcrh, int nframes)
cpl_frame * xsh_abs_remove_crh_single (cpl_frame *sci_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, xsh_instrument *instrument, xsh_remove_crh_single_param *single_par, const char *res_tag)
 Remove cosmic rays from a single frame.

Detailed Description

Suppress Cosmic Rays by analysing on files


Define Documentation

#define REGDEBUG_FULL   0

Definition at line 67 of file xsh_remove_crh_single.c.


Function Documentation

static void add_qc_crh ( xsh_pre pre,
int  nbcrh,
int  nframes 
) [static]

Calculates and set the QC parameters relevant for Cosmic Rays.

Parameters:
pre Pointer to XSH_PRE Structure
nbcrh Total umber of cosmics found
nframes Number of frames used to remove cosmics

< Average of cosmics per frame

Definition at line 79 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,
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,
xsh_instrument instrument,
xsh_remove_crh_single_param single_par,
const char *  res_tag 
)

Remove cosmic rays from a single frame.

Parameters:
[in] in_sci_frame The science Frame
[in] instrument Pointer to instrument description
[in] single_par Parameters for remove crh single
[in] res_tag Parameters for result tag
Returns:
The science frame after removal of Cosmics

< Input PRE

< Result PRE

< Result image

< Result image

< Result image

< Result image

Definition at line 178 of file xsh_remove_crh_single.c.

References add_qc_crh(), check, xsh_remove_crh_single_param::f_lim, m, xsh_remove_crh_single_param::nb_iter, xsh_pre::nx, nx, xsh_pre::ny, ny, QFLAG_COSMIC_RAY_UNREMOVED, xsh_remove_crh_single_param::sigma_lim, XSH_ASSURE_NOT_NULL_MSG, XSH_FREE, xsh_free_image(), xsh_free_matrix(), xsh_free_vector(), xsh_image_filter_linear(), xsh_image_filter_median(), xsh_msg_dbg_high, xsh_msg_dbg_low, xsh_msg_dbg_medium, xsh_pre_duplicate(), xsh_pre_free(), xsh_pre_get_data(), xsh_pre_get_errs(), xsh_pre_get_qual(), xsh_pre_load(), xsh_pre_save(), and xsh_stringcat_any().

Referenced by main(), xsh_abs_remove_crh_single(), xsh_check_remove_crh_single(), xsh_frameset_crh_single(), xsh_respon_slit_stare(), xsh_scired_ifu_offset(), and xsh_util_crh_single().


Generated on 13 Mar 2013 for X-shooter Pipeline Reference Manual by  doxygen 1.6.1