X-shooter Pipeline Reference Manual 3.8.15
Functions
xsh_badpixelmap.c File Reference
#include <xsh_dfs.h>
#include <xsh_utils.h>
#include <xsh_data_pre.h>
#include <xsh_qc_definition.h>
#include <xsh_error.h>
#include <xsh_msg.h>
#include <xsh_ksigma_clip.h>
#include <cpl.h>
#include <string.h>
#include <xsh_badpixelmap.h>
#include <xsh_detmon.h>
#include <xsh_pfits.h>

Go to the source code of this file.

Functions

void xsh_badpixelmap_or (xsh_pre *self, const xsh_pre *right)
 
cpl_frame * xsh_badpixelmap_crea_master_from_bpmap (cpl_frame *bpmap, xsh_instrument *inst)
 
static cpl_error_code xsh_flag_ima_bad_pix (cpl_image **image, int *bppix, const int decode_bp)
 
cpl_mask * xsh_bpm_filter (const cpl_mask *input_mask, cpl_size kernel_nx, cpl_size kernel_ny, cpl_filter_mode filter)
 Allows the growing and shrinking of bad pixel masks. It can be used to e.g. set pixels to bad if the pixel is surrounded by other bad pixels.
 
cpl_mask * xsh_code_is_in_qual (cpl_image *qual, const int code)
 
cpl_mask * xsh_qual_to_cpl_mask (cpl_image *qual, const int decode_bp)
 
void xsh_set_image_cpl_bpmap (cpl_image *image, cpl_image *bpmap, const int decode_bp)
 
void xsh_image_flag_bp (cpl_image *image, cpl_image *bpmap, xsh_instrument *inst)
 
void xsh_bpmap_bitwise_to_flag (cpl_image *bpmap, int flag)
 
void xsh_bpmap_mask_bad_pixel (cpl_image *bpmap, cpl_mask *mask, int flag)
 
void xsh_bpmap_set_bad_pixel (cpl_image *bpmap, int ix, int iy, int flag)
 
cpl_image * xsh_bpmap_collapse_bpmap_create (cpl_imagelist *liste, const int decode_bp)
 
int xsh_bpmap_count (cpl_image *bpmap, int nx, int ny)
 
void xsh_bpmap_collapse_median (cpl_image *median, cpl_imagelist *list, cpl_mask *bpmap)
 
void xsh_bpmap_collapse_mean (cpl_image *mean, cpl_imagelist *list, cpl_mask *bpmap)
 
cpl_error_code xsh_badpixel_flag_rejected (cpl_image *qual, cpl_image *image)
 
cpl_error_code xsh_badpixelmap_image_coadd (cpl_image **self, const cpl_image *right, const int mode)
 
cpl_error_code xsh_badpixelmap_coadd (cpl_frame *self, const cpl_frame *right, const int mode)
 
cpl_error_code xsh_frame_qual_update (cpl_frame *frame, const cpl_frame *bpmap, xsh_instrument *inst)
 
static cpl_error_code xsh_image_get_hot_cold_maps (cpl_image *masterbias, const double kappa_low, const double kappa_high, const int low_niter, const int high_niter, cpl_mask **bpmhot, int *hotpix_nb, cpl_mask **bpmcold, int *coldpix_nb, cpl_propertylist **hplist, cpl_propertylist **cplist)
 
cpl_error_code xsh_image_get_hot_cold_pixs (cpl_frame *frame_image, xsh_instrument *instrument, const double ks_low, const int cold_niter, const double ks_high, const int hot_niter, cpl_frame **cpix_frm, cpl_frame **hpix_frm)
 
cpl_frame * xsh_image_local_cold_pixs (cpl_image *ima, const double kappa, const int r, xsh_instrument *instr)
 
cpl_frame * xsh_image_local_hot_pixs (cpl_image *ima, const double kappa, const int r, xsh_instrument *instr)
 
cpl_error_code xsh_image_clean_mask_pixs (cpl_image **ima, cpl_image *msk, const int r)
 
static cpl_error_code xsh_image_coadd (cpl_image **self, const cpl_image *add)
 
cpl_image * xsh_image_flag_bptype_with_crox (cpl_image *ima)
 
cpl_error_code xsh_count_crh (xsh_pre *pre, xsh_instrument *instr, const int datancom)
 
cpl_error_code xsh_count_satpix (xsh_pre *pre, xsh_instrument *instr, const int datancom)
 
cpl_error_code xsh_badpixelmap_flag_saturated_pixels (xsh_pre *pre, xsh_instrument *instr, const double cor_val, const int flag, const int is_flat, int *nsat)
 
cpl_error_code xsh_badpixelmap_count_range_pixels (xsh_pre *pre, const double thresh_min, const double thresh_max, const double cor_val, int *nrange, double *frange)
 
cpl_error_code xsh_badpixelmap_count_sat_pixels (xsh_pre *pre, const double sat_thresh, const double cor_val, int *nsat, double *frac_sat)
 
cpl_error_code xsh_badpixelmap_fill_bp_pattern_holes (cpl_frame *frm)
 
cpl_frame * xsh_badpixelmap_extract (cpl_frame *frame, int xmin, int ymin, int xmax, int ymax)
 This function create a sub bad pixel map frame from input bad pixel map frame. the sub frame is described by a box.