Functions | |
static cpl_vector * | 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, const int niter) |
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) |
static cpl_vector* irplib_imagelist_get_clean_mean_levels | ( | const cpl_imagelist * | iml, | |
const double | kappa, | |||
const int | nclip, | |||
const double | tolerance | |||
) | [static] |
find out the character string associated to the DIT keyword in a propertylist
plist | propertylist |
iml | input imagelist | |
kappa | value for kappa-sigma clip | |
nclip | Number of clipping iterations | |
tolerance | tolerance on range between two successive clip iterations |
The returned vector must be deallocated.
Definition at line 71 of file xsh_irplib_mkmaster.c.
References size, and xsh_ksigma_clip().
Referenced by xsh_irplib_mkmaster_mean(), and xsh_irplib_mkmaster_median().
static cpl_image* irplib_imagelist_ksigma_stack | ( | const cpl_imagelist * | imlist, | |
double | klow, | |||
double | khigh, | |||
int | kiter | |||
) | [static] |
Stack images using k-sigma clipping.
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 |
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 232 of file xsh_irplib_mkmaster.c.
References irplib_vector_ksigma(), nx, and ny.
Referenced by xsh_irplib_mkmaster_mean().
static cpl_error_code irplib_imagelist_subtract_values | ( | cpl_imagelist ** | iml, | |
cpl_vector * | values | |||
) | [static] |
Subtract from input imagelist values specified in input vector.
iml | input imagelist | |
values | value to be subtracted |
Definition at line 118 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.
values | values to be checked | |
klow | kappa to clip too low level values | |
khigh | kappa to clip too high values | |
kiter | number of iterations |
Definition at line 153 of file xsh_irplib_mkmaster.c.
Referenced by irplib_imagelist_ksigma_stack().
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 386 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, | |||
const int | niter | |||
) |
Computes master frame by clean stack mean of the input imagelist.
images | input imagelist | |
kappa | value for kappa-sigma clip | |
nclip | Number of clipping iterations | |
tolerance | tolerance on range between two successive clip iterations |
The returned image must be deallocated.
Definition at line 314 of file xsh_irplib_mkmaster.c.
References irplib_imagelist_get_clean_mean_levels(), irplib_imagelist_ksigma_stack(), and irplib_imagelist_subtract_values().
Referenced by xsh_create_master_bias2(), xsh_create_master_dark2(), and xsh_remove_cosmics().
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.
images | input imagelist | |
kappa | value for kappa-sigma clip | |
nclip | Number of clipping iterations | |
tolerance | tolerance on range between two successive clip iterations |
The returned image must be deallocated.
Definition at line 357 of file xsh_irplib_mkmaster.c.
References irplib_imagelist_get_clean_mean_levels(), and irplib_imagelist_subtract_values().
Referenced by xsh_create_master_bias2(), and xsh_remove_cosmics().