Compute Noise Map (xsh_compute_noise_map)
[DRL Functions]

Functions

static void add_noisy_pixel_to_ascii_file (int x, int y)
static int flag_noisy_pixels (cpl_imagelist *raws, cpl_image *bpmap, cpl_image *noisymap, int nx, int ny, xsh_clipping_param *noise_clipping, xsh_instrument *inst)
static void set_pickup_noise_pixels_qc (cpl_propertylist *header, int nbad, xsh_instrument *instrument)
cpl_frame * xsh_compute_noise_map (cpl_imagelist *dataList, cpl_frame *medFrame, xsh_clipping_param *noise_clipping, xsh_instrument *instr, cpl_frame **noisyFrame)

Function Documentation

static void add_noisy_pixel_to_ascii_file ( int  x,
int  y 
) [static]

Definition at line 67 of file xsh_compute_noise_map.c.

Referenced by flag_noisy_pixels().

static int flag_noisy_pixels ( cpl_imagelist *  raws,
cpl_image *  bpmap,
cpl_image *  noisymap,
int  nx,
int  ny,
xsh_clipping_param noise_clipping,
xsh_instrument inst 
) [static]

Flag the noisy pixels and add to the bad pixel map

Parameters:
raws List of dark images
bpmap Bad pixel map
nx X size
ny Y size
noise_clipping Clipping parameters structure
Returns:
Nb of noisy pixels found

< Array of pointers to the images

< Median of the sigmas

< Average of the sigmas

< Array of the Sigmas per pixel (all pixels)

< Same as Stackv, but without bad pixels

Definition at line 90 of file xsh_compute_noise_map.c.

References add_noisy_pixel_to_ascii_file(), assure, xsh_instrument::decode_bp, QFLAG_ELECTRONIC_PICKUP, xsh_clipping_param::sigma, sigma, xsh_bpmap_set_bad_pixel(), xsh_debug_level_get(), XSH_DEBUG_LEVEL_LOW, XSH_FREE, XSH_MALLOC, xsh_msg, xsh_msg_dbg_low, xsh_msg_dbg_medium, and xsh_tools_get_median_double().

Referenced by xsh_compute_noise_map().

static void set_pickup_noise_pixels_qc ( cpl_propertylist *  header,
int  nbad,
xsh_instrument instrument 
) [static]

Definition at line 287 of file xsh_compute_noise_map.c.

References xsh_pfits_set_qc(), and XSH_QC_BP_MAP_PICKUP_NOISE_PIX.

Referenced by xsh_compute_noise_map().

cpl_frame* xsh_compute_noise_map ( cpl_imagelist *  dataList,
cpl_frame *  medFrame,
xsh_clipping_param noise_clipping,
xsh_instrument instr,
cpl_frame **  noisyFrame 
)

Calculates the noisy bad pixel map from dark frames (equal exposures)

Parameters:
dataList List of images (from remove_crh_multiple)
medFrame Median Frame (PRE format) created by xsh_remove_crh_multi
noise_clipping Noise clipping parameters pointer
instr Pointer to instrument description structure
Returns:
Final master dark frame (PRE format)

Definition at line 305 of file xsh_compute_noise_map.c.

References binx, biny, check, xsh_pre::data, xsh_pre::data_header, xsh_instrument::decode_bp, xsh_pre::errs, xsh_pre::errs_header, flag_noisy_pixels(), xsh_clipping_param::niter, xsh_pre::nx, nx, xsh_pre::ny, ny, xsh_pre::qual_header, set_pickup_noise_pixels_qc(), xsh_add_temporary_file(), XSH_ARM_NIR, XSH_ASSURE_NOT_NULL, XSH_BP_MAP_PN, xsh_frame_product(), xsh_free_image(), xsh_free_propertylist(), XSH_GET_TAG_FROM_ARM, xsh_instrument_arm_tostring(), xsh_instrument_get_arm(), xsh_msg, xsh_pfits_get_binx(), xsh_pfits_get_biny(), xsh_pfits_set_extname(), xsh_pfits_set_qc_nhpix(), XSH_PRE_DATA_BPP, xsh_pre_free(), xsh_pre_get_qual(), xsh_pre_load(), and xsh_set_image_cpl_bpmap().

Referenced by main(), and xsh_get_master_dark_nir_via_noise().


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