|
X-shooter Pipeline Reference Manual 3.8.15
|
Functions | |
| static int | xsh_remove_cr (cpl_imagelist *datalist, cpl_imagelist *errslist, cpl_image *median, cpl_image *errs, cpl_mask *mask, xsh_clipping_param *crh_clipping) |
| static void | add_qc_crh (xsh_pre *pre, int nbcrh, int nframes) |
| static cpl_error_code | xsh_find_cosmics (cpl_frameset *rawFrames, xsh_pre *pre, xsh_clipping_param *crh_clipping, cpl_imagelist *dataList, cpl_imagelist *errsList, cpl_mask *badpix_mask, xsh_instrument *instr, cpl_mask **crh_mask) |
| cpl_error_code | xsh_flag_cosmic_debug (xsh_pre *pre, cpl_imagelist *dataList) |
| static cpl_frame * | xsh_remove_cosmics (cpl_frameset *rawFrames, const char *result_tag, xsh_stack_param *stack_par, xsh_clipping_param *crh_clipping, xsh_instrument *instr, cpl_imagelist **list, cpl_image **crh_ima, const int save_tmp) |
| Creates median, error and bad pixel map images from a set of frames. | |
| cpl_frame * | xsh_remove_crh_multiple (cpl_frameset *rawFrames, const char *result_tag, xsh_stack_param *stack_par, xsh_clipping_param *crh_clipping, xsh_instrument *instrument, cpl_imagelist **list, cpl_image **crh_ima, const int save_tmp) |
| cpl_frame * | xsh_combine_offset (cpl_frameset *rawFrames, const char *result_tag, xsh_stack_param *stack_par, xsh_instrument *instrument, cpl_imagelist **list, cpl_image **crh_ima, const int save_tmp) |
Suppress Cosmic Rays by analysing multiple files.
|
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 184 of file xsh_remove_crh_multi.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(), xsh_pfits_set_qc_ncrh_mean(), and xsh_pfits_set_qc_ncrh_tot().
Referenced by xsh_find_cosmics().
| cpl_frame * xsh_combine_offset | ( | cpl_frameset * | rawFrames, |
| const char * | result_tag, | ||
| xsh_stack_param * | stack_par, | ||
| xsh_instrument * | instrument, | ||
| cpl_imagelist ** | list, | ||
| cpl_image ** | crh_ima, | ||
| const int | save_tmp | ||
| ) |
Definition at line 549 of file xsh_remove_crh_multi.c.
References check, instrument, XSH_ASSURE_NOT_NULL, and xsh_remove_cosmics().
Referenced by xsh_scired_ifu_offset().
|
static |
Definition at line 219 of file xsh_remove_crh_multi.c.
References add_qc_crh(), check, crh_clipping, xsh_pre::data, xsh_pre::errs, xsh_pre::exptime, xsh_clipping_param::frac, niter, xsh_clipping_param::niter, xsh_pre::nx, xsh_pre::ny, xsh_pre::qual, size, xsh_bpmap_collapse_median(), xsh_collapse_errs(), xsh_image_flag_bp(), xsh_msg, xsh_msg_dbg_medium, and xsh_remove_cr().
Referenced by xsh_remove_cosmics().
| cpl_error_code xsh_flag_cosmic_debug | ( | xsh_pre * | pre, |
| cpl_imagelist * | dataList | ||
| ) |
Definition at line 294 of file xsh_remove_crh_multi.c.
References xsh_pre::nx, xsh_pre::ny, and size.
|
static |
Creates median, error and bad pixel map images from a set of frames.
| rawFrames | Pointer to the frameset (returned from xsh_prepare) |
| result_tag | Tag of resulting file |
| stack_par | parameter to control frame stacking |
| instr | instrument containing the arm , mode and lamp in use |
| list | Pointer to created image list |
| crh_ima | Pointer to created crh image map |
| save_tmp | parameter to control temporary products saving |
Definition at line 341 of file xsh_remove_crh_multi.c.
References check, check_msg, crh_clipping, xsh_pre::data, xsh_pre::data_header, xsh_pre::errs, xsh_stack_param::khigh, xsh_stack_param::klow, QFLAG_COSMIC_RAY_REMOVED, xsh_pre::qual, size, xsh_stack_param::stack_method, XSH_ASSURE_NOT_ILLEGAL, XSH_ASSURE_NOT_NULL, xsh_badpixel_flag_rejected(), xsh_badpixelmap_image_coadd(), xsh_bpmap_mask_bad_pixel(), xsh_collapse_errs(), XSH_CRH_MAP, xsh_find_cosmics(), xsh_free_frame(), xsh_free_image(), xsh_free_imagelist(), xsh_free_mask(), XSH_GET_TAG_FROM_ARM, xsh_image_flag_bp(), xsh_imagelist_collapse_median_create(), xsh_msg, xsh_msg_dbg_high, xsh_pfits_get_qc_ncrh(), xsh_pfits_set_qc_ncrh_mean(), xsh_pfits_set_qc_ncrh_tot(), xsh_pre_free(), xsh_pre_get_bpmap(), xsh_pre_load(), xsh_pre_save(), XSH_QC_CRH_NUMBER, XSH_QC_CRH_NUMBER_MEAN, and XSH_QC_CRH_NUMBER_TOT.
Referenced by xsh_combine_offset(), and xsh_remove_crh_multiple().
|
static |
Definition at line 70 of file xsh_remove_crh_multi.c.
References assure, check, crh_clipping, nx, ny, xsh_clipping_param::sigma, xsh_msg, xsh_msg_dbg_high, and xsh_msg_dbg_low.
Referenced by xsh_find_cosmics().
| cpl_frame * xsh_remove_crh_multiple | ( | cpl_frameset * | rawFrames, |
| const char * | result_tag, | ||
| xsh_stack_param * | stack_par, | ||
| xsh_clipping_param * | crh_clipping, | ||
| xsh_instrument * | instrument, | ||
| cpl_imagelist ** | list, | ||
| cpl_image ** | crh_ima, | ||
| const int | save_tmp | ||
| ) |
Definition at line 527 of file xsh_remove_crh_multi.c.
References check, crh_clipping, instrument, XSH_ASSURE_NOT_NULL, and xsh_remove_cosmics().
Referenced by main(), xsh_check_remove_crh_multiple(), xsh_linear(), xsh_mdark(), xsh_nod_group_by_reloff(), xsh_nod_group_by_reloff2(), and xsh_scired_ifu_stare().