Functions for calibrations

Functions

cpl_vector * xsh_irplib_imagelist_get_clean_mean_levels (const cpl_imagelist *iml, const double kappa, const int nclip, const double tolerance)
 find out the character string associated to the DIT keyword in a propertylist
static cpl_error_code irplib_imagelist_subtract_values (cpl_imagelist **iml, cpl_vector *values)
 Subtract from input imagelist values specified in input vector.
static double irplib_vector_ksigma (cpl_vector *values, const double klow, const double khigh, int kiter)
 Perform kappa-sigma clip.
static cpl_image * irplib_imagelist_ksigma_stack (const cpl_imagelist *imlist, double klow, double khigh, int kiter)
 Stack images using k-sigma clipping.
cpl_image * xsh_irplib_mkmaster_mean (cpl_imagelist *images, const double kappa, const int nclip, const double tolerance, const double klow, const double khigh)
 Computes master frame by clean stack mean of the input imagelist.
cpl_image * xsh_irplib_mkmaster_median (cpl_imagelist *images, const double kappa, const int nclip, const double tolerance)
 Computes master frame by clean stack median of the input imagelist.
cpl_imagelist * xsh_irplib_mkmaster_dark_fill_imagelist (const cpl_imagelist *raw_images, cpl_propertylist **raw_headers, const cpl_image *master_bias, double *mean_exptime)

Function Documentation

static cpl_image* irplib_imagelist_ksigma_stack ( const cpl_imagelist *  imlist,
double  klow,
double  khigh,
int  kiter 
) [static]

Stack images using k-sigma clipping.

Parameters:
imlist List of images to stack
klow Number of sigmas for rejection of lowest values
khigh Number of sigmas for rejection of highest values
kiter Max number of iterations
Returns:
Stacked image.

At the first iteration the value of sigma is computed relatively to the median value of all pixels at a given image position. For the next iterations the sigma is computed in the standard way. If at some iteration all points would be rejected, the mean computed at the previous iteration is returned.

Definition at line 233 of file xsh_irplib_mkmaster.c.

References irplib_vector_ksigma(), nx, and ny.

static cpl_error_code irplib_imagelist_subtract_values ( cpl_imagelist **  iml,
cpl_vector *  values 
) [static]

Subtract from input imagelist values specified in input vector.

Parameters:
iml input imagelist
values value to be subtracted
Returns:
corrected imagelist

Definition at line 119 of file xsh_irplib_mkmaster.c.

References size.

Referenced by xsh_irplib_mkmaster_mean(), and xsh_irplib_mkmaster_median().

static double irplib_vector_ksigma ( cpl_vector *  values,
const double  klow,
const double  khigh,
int  kiter 
) [static]

Perform kappa-sigma clip.

Author:
C. Izzo
Parameters:
values values to be checked
klow kappa to clip too low level values
khigh kappa to clip too high values
kiter number of iterations
Note:
In first iteration a median is the reference value for robustness
Returns:

Definition at line 154 of file xsh_irplib_mkmaster.c.

References n, and sigma.

Referenced by irplib_imagelist_ksigma_stack().

cpl_vector* xsh_irplib_imagelist_get_clean_mean_levels ( const cpl_imagelist *  iml,
const double  kappa,
const int  nclip,
const double  tolerance 
)

find out the character string associated to the DIT keyword in a propertylist

Parameters:
plist propertylist
Returns:
dit value Computes kappa-sigma clean mean (free bad pixels) for each input image of the input imagelist.
Parameters:
iml input imagelist
kappa value for kappa-sigma clip
nclip Number of clipping iterations
tolerance tolerance on range between two successive clip iterations
Returns:
vector with computed values for each image of the list

The returned vector must be deallocated.

Definition at line 72 of file xsh_irplib_mkmaster.c.

References size, and xsh_ksigma_clip().

Referenced by xsh_irplib_mkmaster_mean(), xsh_irplib_mkmaster_median(), and xsh_preoverscan_corr().

cpl_imagelist* xsh_irplib_mkmaster_dark_fill_imagelist ( const cpl_imagelist *  raw_images,
cpl_propertylist **  raw_headers,
const cpl_image *  master_bias,
double *  mean_exptime 
)

Definition at line 393 of file xsh_irplib_mkmaster.c.

References xsh_pfits_get_exptime().

Referenced by xsh_create_master_dark2().

cpl_image* xsh_irplib_mkmaster_mean ( cpl_imagelist *  images,
const double  kappa,
const int  nclip,
const double  tolerance,
const double  klow,
const double  khigh 
)

Computes master frame by clean stack mean of the input imagelist.

Parameters:
images input imagelist
kappa value for kappa-sigma clip
nclip Number of clipping iterations
tolerance tolerance on range between two successive clip iterations
klow kappa value applied to kappa sigma clip low pix values
khigh kappa value applied to kappa sigma clip low pix values
Returns:
master image

The returned image must be deallocated.

Definition at line 317 of file xsh_irplib_mkmaster.c.

References irplib_imagelist_subtract_values(), and xsh_irplib_imagelist_get_clean_mean_levels().

Referenced by xsh_create_master_bias2(), and xsh_create_master_dark2().

cpl_image* xsh_irplib_mkmaster_median ( cpl_imagelist *  images,
const double  kappa,
const int  nclip,
const double  tolerance 
)

Computes master frame by clean stack median of the input imagelist.

Parameters:
images input imagelist
kappa value for kappa-sigma clip
nclip Number of clipping iterations
tolerance tolerance on range between two successive clip iterations
Returns:
master image

The returned image must be deallocated.

Definition at line 361 of file xsh_irplib_mkmaster.c.

References irplib_imagelist_subtract_values(), xsh_imagelist_collapse_median_create(), and xsh_irplib_imagelist_get_clean_mean_levels().

Referenced by xsh_create_master_bias2(), and xsh_create_master_dark2().


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