#include <cpl.h>
#include <xsh_cpl_size.h>
Go to the source code of this file.
Defines | |
#define | NIR TRUE |
#define | OPT FALSE |
#define | DETMON_QC_FREQ "ESO QC FREQ" |
#define | DETMON_QC_FREQ_C "Spectrum frequency" |
#define | DETMON_QC_POW "ESO QC POW" |
#define | DETMON_QC_POW_C "Spectrum power" |
#define | DETMON_QC_DUTYCYCL "ESO QC DUTYCYCL" |
#define | DETMON_QC_DUTYCYCL_C "DUTYCYCL value (time to store a frame)" |
#define | DETMON_QC_MASTER_MEAN "ESO QC MASTER MEAN" |
#define | DETMON_QC_MASTER_MEAN_C "Master Mean value" |
#define | DETMON_QC_MASTER_RMS "ESO QC MASTER RMS" |
#define | DETMON_QC_MASTER_RMS_C "Master RMS value" |
#define | DETMON_QC_NBCOLDPIX "ESO QC NBCOLPIX" |
#define | DETMON_QC_NBCOLDPIX_C "Number of cold pixels" |
#define | DETMON_QC_NBHOTPIX "ESO QC NBHOTPIX" |
#define | DETMON_QC_NBHOTPIX_C "Number of hot pixels" |
#define | DETMON_QC_NBDEVPIX "ESO QC NBDEVPIX" |
#define | DETMON_QC_NBDEVPIX_C "Number of deviating pixels" |
#define | DETMON_QC_BIAS_RANDOM_VAL "ESO QC BIAS RANDOM VAL" |
#define | DETMON_QC_BIAS_RANDOM_VAL_C "Bias level (random sampling method) [ADU]" |
#define | DETMON_QC_BIAS_RANDOM_RON "ESO QC BIAS RANDOM RON" |
#define | DETMON_QC_BIAS_RANDOM_RON_C "Bias Read Out Noise (random sampling method) [ADU]" |
#define | DETMON_QC_BIAS_HISTO_VAL "ESO QC BIAS HISTO VAL" |
#define | DETMON_QC_BIAS_HISTO_VAL_C "Bias level (histogram method) [ADU]" |
#define | DETMON_QC_BIAS_HISTO_RON "ESO QC BIAS HISTO RON" |
#define | DETMON_QC_BIAS_HISTO_RON_C "Bias Read Out Noise (histogram method) [e- rms]" |
#define | DETMON_QC_BIAS_PRESCAN_MEAN "ESO QC BIAS PRESCAN MEAN" |
#define | DETMON_QC_BIAS_PRESCAN_MEAN_C "Bias mean level (on prescan region) [ADU]" |
#define | DETMON_QC_BIAS_PRESCAN_MED "ESO QC BIAS PRESCAN MED" |
#define | DETMON_QC_BIAS_PRESCAN_MED_C "Bias median level (on prescan region) [ADU]" |
#define | DETMON_QC_BIAS_PRESCAN_RON "ESO QC BIAS PRESCAN RON" |
#define | DETMON_QC_BIAS_PRESCAN_RON_C "Bias Read Out Noise (on prescan region) [e- rms]" |
#define | DETMON_QC_BIAS_OVERSCAN_MEAN "ESO QC BIAS OVERSCAN MEAN" |
#define | DETMON_QC_BIAS_OVERSCAN_MEAN_C "Bias mean level (on overscan region) [ADU]" |
#define | DETMON_QC_BIAS_OVERSCAN_MED "ESO QC BIAS OVERSCAN MED" |
#define | DETMON_QC_BIAS_OVERSCAN_MED_C "Bias median level (on overscan region) [ADU]" |
#define | DETMON_QC_BIAS_OVERSCAN_RON "ESO QC BIAS OVERSCAN RON" |
#define | DETMON_QC_BIAS_OVERSCAN_RON_C "Bias Read Out Noise (on overscan region) [e- rms]" |
#define | DETMON_QC_BIAS_REGION_VAL "ESO QC BIAS REGION VAL" |
#define | DETMON_QC_BIAS_REGION_VAL_C "Bias level (on user defined region) [ADU]" |
#define | DETMON_QC_BIAS_REGION_MED "ESO QC BIAS REGION MED" |
#define | DETMON_QC_BIAS_REGION_MED_C "Bias median level (on user defined region) [ADU]" |
#define | DETMON_QC_BIAS_REGION_RON "ESO QC BIAS REGION RON" |
#define | DETMON_QC_BIAS_REGION_RON_C "Bias Read Out Noise (on user defined region) [e- rms]" |
#define | DETMON_QC_DARK "ESO QC DARK" |
#define | DETMON_QC_DARK_C "Dark level [ADU]" |
#define | DETMON_QC_DARK_STDEV "ESO QC DARK STDEV" |
#define | DETMON_QC_DARK_STDEV_C "Dark stdev level [ADU]" |
#define | xsh_detmon_ronbias_get_description(RECIPE_NAME, PIPE_NAME,DETMON_RONBIAS_RAW) |
#define | xsh_detmon_pernoise_get_description(RECIPE_NAME, PIPE_NAME,DETMON_PERNOISE_RAW) |
#define | xsh_detmon_dark_get_description(RECIPE_NAME, PIPE_NAME,DETMON_DARK_RAW) |
#define | RANDOM ((irplib_ronbias_method) 1 << 1) |
#define | HISTO ((irplib_ronbias_method) 1 << 2) |
#define | PREOVERSCAN ((irplib_ronbias_method) 1 << 3) |
#define | REGION ((irplib_ronbias_method) 1 << 4) |
#define | REGEXP "ARCFILE|MJD-OBS|ESO TPL ID|DATE-OBS|ESO DET DIT|ESO DET NDIT" |
Typedefs | |
typedef unsigned long | irplib_ronbias_method |
Functions | |
cpl_image * | irplib_imagelist_collapse_stdev_create (const cpl_imagelist *imlist) |
Collapse an imagelist to the stdev of each pixel position. | |
cpl_error_code | xsh_detmon_ronbias (cpl_frameset *, const cpl_parameterlist *, const char *, const char *, const char *, const char *, const cpl_propertylist *, const cpl_propertylist *, const cpl_propertylist *, const cpl_propertylist *, const cpl_propertylist *, const cpl_propertylist *, const cpl_propertylist *, const char *, int(*)(const cpl_frame *, const cpl_frame *), cpl_boolean) |
cpl_propertylist * | xsh_detmon_fill_prolist (const char *, const char *, const char *, cpl_boolean) |
cpl_error_code | xsh_detmon_ronbias_fill_parlist_default (cpl_parameterlist *, const char *, const char *) |
cpl_error_code | xsh_detmon_darkron_fill_parlist_default (cpl_parameterlist *, const char *, const char *) |
cpl_error_code | xsh_detmon_ronbias_fill_parlist (cpl_parameterlist *, const char *, const char *, const char *, const char *, const int, const int, const int, const int, const int, const int, const int, const int, const int, const char *, const int, const int, const int, const int, const int, const int, const int, const int, const int, const int, cpl_boolean) |
cpl_error_code | xsh_detmon_ronbias_histo_reduce (const cpl_image *c_raw, double *bias, double *fwhm, double *max) |
cpl_image * | xsh_detmon_build_synthetic (cpl_image *, cpl_image *) |
cpl_error_code | xsh_flux_get_bias_window (const cpl_image *, const int *, int, int, double *, double *) |
cpl_error_code | xsh_detmon_fill_pernoise_params (cpl_parameterlist *, const char *, const char *, int mode, const char *direction, double speed, int llx, int lly, int urx, int ury, double kappa, int exts) |
int | xsh_detmon_fill_pernoise_params_default (cpl_parameterlist *, const char *, const char *) |
cpl_error_code | xsh_detmon_pernoise (cpl_frameset *, const cpl_parameterlist *, const char *, const char *, const char *, const char *, const char *, int(*)(const cpl_frame *, const cpl_frame *)) |
cpl_table * | xsh_detmon_pernoise_reduce (cpl_image *) |
cpl_error_code | xsh_detmon_dark (cpl_frameset *, const cpl_parameterlist *, const char *, const char *, const char *, const char *, const char *, const char *, const char *, int(*)(const cpl_frame *, const cpl_frame *)) |
cpl_error_code | xsh_detmon_fill_dark_params (cpl_parameterlist *parlist, const char *recipe_name, const char *pipeline_name, const char *ron_method, const char *dsnu_method, const char *optnir, int exts) |
int | xsh_detmon_fill_dark_params_default (cpl_parameterlist *parlist, const char *recipe_name, const char *pipeline_name) |
int | xsh_detmon_compare_dits (const cpl_frame *, const cpl_frame *) |
double | irplib_pfits_get_exptime (const cpl_propertylist *) |
cpl_error_code | xsh_detmon_fill_parlist (cpl_parameterlist *, const char *, const char *, int,...) |
cpl_error_code | xsh_ksigma_clip (const cpl_image *, const int, const int, const int, const int, const double, const int, const double, double *, double *) |
Apply kappa-sigma clipping on input image. | |
int | xsh_detmon_retrieve_par_int (const char *, const char *, const char *, const cpl_parameterlist *) |
double | xsh_detmon_retrieve_par_double (const char *, const char *, const char *, const cpl_parameterlist *) |
#define DETMON_QC_BIAS_HISTO_RON "ESO QC BIAS HISTO RON" |
Definition at line 78 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_histo().
#define DETMON_QC_BIAS_HISTO_RON_C "Bias Read Out Noise (histogram method) [e- rms]" |
Definition at line 79 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_histo().
#define DETMON_QC_BIAS_HISTO_VAL "ESO QC BIAS HISTO VAL" |
Definition at line 75 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_histo().
#define DETMON_QC_BIAS_HISTO_VAL_C "Bias level (histogram method) [ADU]" |
Definition at line 76 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_histo().
#define DETMON_QC_BIAS_OVERSCAN_MEAN "ESO QC BIAS OVERSCAN MEAN" |
Definition at line 91 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_preoverscan().
#define DETMON_QC_BIAS_OVERSCAN_MEAN_C "Bias mean level (on overscan region) [ADU]" |
Definition at line 92 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_preoverscan().
#define DETMON_QC_BIAS_OVERSCAN_MED "ESO QC BIAS OVERSCAN MED" |
Definition at line 94 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_preoverscan().
#define DETMON_QC_BIAS_OVERSCAN_MED_C "Bias median level (on overscan region) [ADU]" |
Definition at line 95 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_preoverscan().
#define DETMON_QC_BIAS_OVERSCAN_RON "ESO QC BIAS OVERSCAN RON" |
Definition at line 97 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_preoverscan().
#define DETMON_QC_BIAS_OVERSCAN_RON_C "Bias Read Out Noise (on overscan region) [e- rms]" |
Definition at line 98 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_preoverscan().
#define DETMON_QC_BIAS_PRESCAN_MEAN "ESO QC BIAS PRESCAN MEAN" |
Definition at line 81 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_preoverscan().
#define DETMON_QC_BIAS_PRESCAN_MEAN_C "Bias mean level (on prescan region) [ADU]" |
Definition at line 82 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_preoverscan().
#define DETMON_QC_BIAS_PRESCAN_MED "ESO QC BIAS PRESCAN MED" |
Definition at line 84 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_preoverscan().
#define DETMON_QC_BIAS_PRESCAN_MED_C "Bias median level (on prescan region) [ADU]" |
Definition at line 85 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_preoverscan().
#define DETMON_QC_BIAS_PRESCAN_RON "ESO QC BIAS PRESCAN RON" |
Definition at line 87 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_preoverscan().
#define DETMON_QC_BIAS_PRESCAN_RON_C "Bias Read Out Noise (on prescan region) [e- rms]" |
Definition at line 88 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_preoverscan().
#define DETMON_QC_BIAS_RANDOM_RON "ESO QC BIAS RANDOM RON" |
Definition at line 72 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_random().
#define DETMON_QC_BIAS_RANDOM_RON_C "Bias Read Out Noise (random sampling method) [ADU]" |
Definition at line 73 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_random().
#define DETMON_QC_BIAS_RANDOM_VAL "ESO QC BIAS RANDOM VAL" |
Definition at line 69 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_random().
#define DETMON_QC_BIAS_RANDOM_VAL_C "Bias level (random sampling method) [ADU]" |
Definition at line 70 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_random().
#define DETMON_QC_BIAS_REGION_MED "ESO QC BIAS REGION MED" |
Definition at line 103 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_region().
#define DETMON_QC_BIAS_REGION_MED_C "Bias median level (on user defined region) [ADU]" |
Definition at line 104 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_region().
#define DETMON_QC_BIAS_REGION_RON "ESO QC BIAS REGION RON" |
Definition at line 106 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_region().
#define DETMON_QC_BIAS_REGION_RON_C "Bias Read Out Noise (on user defined region) [e- rms]" |
Definition at line 107 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_region().
#define DETMON_QC_BIAS_REGION_VAL "ESO QC BIAS REGION VAL" |
Definition at line 100 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_region().
#define DETMON_QC_BIAS_REGION_VAL_C "Bias level (on user defined region) [ADU]" |
Definition at line 101 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_region().
#define DETMON_QC_DARK "ESO QC DARK" |
Definition at line 110 of file xsh_detmon.h.
Referenced by xsh_detmon_dark_qc().
#define DETMON_QC_DARK_C "Dark level [ADU]" |
Definition at line 111 of file xsh_detmon.h.
Referenced by xsh_detmon_dark_qc().
#define DETMON_QC_DARK_STDEV "ESO QC DARK STDEV" |
Definition at line 113 of file xsh_detmon.h.
Referenced by xsh_detmon_dark_qc().
#define DETMON_QC_DARK_STDEV_C "Dark stdev level [ADU]" |
Definition at line 114 of file xsh_detmon.h.
Referenced by xsh_detmon_dark_qc().
#define DETMON_QC_DUTYCYCL "ESO QC DUTYCYCL" |
Definition at line 51 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_dutycycl().
#define DETMON_QC_DUTYCYCL_C "DUTYCYCL value (time to store a frame)" |
Definition at line 52 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_dutycycl().
#define DETMON_QC_FREQ "ESO QC FREQ" |
Definition at line 45 of file xsh_detmon.h.
#define DETMON_QC_FREQ_C "Spectrum frequency" |
Definition at line 46 of file xsh_detmon.h.
Referenced by xsh_detmon_pernoise_qc().
#define DETMON_QC_MASTER_MEAN "ESO QC MASTER MEAN" |
Definition at line 54 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_master().
#define DETMON_QC_MASTER_MEAN_C "Master Mean value" |
Definition at line 55 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_master().
#define DETMON_QC_MASTER_RMS "ESO QC MASTER RMS" |
Definition at line 57 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_master().
#define DETMON_QC_MASTER_RMS_C "Master RMS value" |
Definition at line 58 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_master().
#define DETMON_QC_NBCOLDPIX "ESO QC NBCOLPIX" |
Definition at line 60 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_master().
#define DETMON_QC_NBCOLDPIX_C "Number of cold pixels" |
Definition at line 61 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_master().
#define DETMON_QC_NBDEVPIX "ESO QC NBDEVPIX" |
Definition at line 66 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_master().
#define DETMON_QC_NBDEVPIX_C "Number of deviating pixels" |
Definition at line 67 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_master().
#define DETMON_QC_NBHOTPIX "ESO QC NBHOTPIX" |
Definition at line 63 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_master().
#define DETMON_QC_NBHOTPIX_C "Number of hot pixels" |
Definition at line 64 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias_master().
#define DETMON_QC_POW "ESO QC POW" |
Definition at line 48 of file xsh_detmon.h.
#define DETMON_QC_POW_C "Spectrum power" |
Definition at line 49 of file xsh_detmon.h.
Referenced by xsh_detmon_pernoise_qc().
#define HISTO ((irplib_ronbias_method) 1 << 2) |
Definition at line 138 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias(), and xsh_detmon_ronbias_retrieve_parlist().
#define NIR TRUE |
Definition at line 42 of file xsh_detmon.h.
#define OPT FALSE |
Definition at line 43 of file xsh_detmon.h.
#define PREOVERSCAN ((irplib_ronbias_method) 1 << 3) |
Definition at line 139 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias(), xsh_detmon_ronbias_check_defaults(), xsh_detmon_ronbias_retrieve_parlist(), and xsh_detmon_ronbias_save().
#define RANDOM ((irplib_ronbias_method) 1 << 1) |
Definition at line 137 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias(), and xsh_detmon_ronbias_retrieve_parlist().
#define REGEXP "ARCFILE|MJD-OBS|ESO TPL ID|DATE-OBS|ESO DET DIT|ESO DET NDIT" |
Definition at line 145 of file xsh_detmon.h.
#define REGION ((irplib_ronbias_method) 1 << 4) |
Definition at line 140 of file xsh_detmon.h.
Referenced by xsh_detmon_ronbias(), and xsh_detmon_ronbias_retrieve_parlist().
#define xsh_detmon_dark_get_description | ( | RECIPE_NAME, | |||
PIPE_NAME, | |||||
DETMON_DARK_RAW | ) |
RECIPE_NAME " -- " PIPE_NAME " Dark Recipe.\n" \ "The files listed in the Set Of Frames must be tagged:\n" \ "raw-file.fits "DETMON_DARK_RAW"\n"
Definition at line 132 of file xsh_detmon.h.
#define xsh_detmon_pernoise_get_description | ( | RECIPE_NAME, | |||
PIPE_NAME, | |||||
DETMON_PERNOISE_RAW | ) |
RECIPE_NAME " -- " PIPE_NAME " Recipe for Periodic Noise Characterisation.\n" \ "The files listed in the Set Of Frames must be tagged:\n" \ "raw-file.fits "DETMON_PERNOISE_RAW"\n"
Definition at line 126 of file xsh_detmon.h.
#define xsh_detmon_ronbias_get_description | ( | RECIPE_NAME, | |||
PIPE_NAME, | |||||
DETMON_RONBIAS_RAW | ) |
RECIPE_NAME " -- " PIPE_NAME " ronbias recipe for OPT/IR.\n" \ "The files listed in the Set Of Frames must be tagged:\n" \ "raw-file.fits "DETMON_RONBIAS_RAW"\n"
Definition at line 120 of file xsh_detmon.h.
typedef unsigned long irplib_ronbias_method |
Definition at line 142 of file xsh_detmon.h.
cpl_image* irplib_imagelist_collapse_stdev_create | ( | const cpl_imagelist * | imlist | ) |
Collapse an imagelist to the stdev of each pixel position.
imlist | the input images list |
The returned image has to be deallocated with cpl_image_delete().
The bad pixel maps of the images in the input list are taken into account, the result image pixels are flagged as rejected for those where there were no good pixel at the same position in the input image list.
Possible _cpl_error_code_ set in this function:
Definition at line 5144 of file xsh_detmon.c.
Referenced by xsh_detmon_ronbias_master().
double irplib_pfits_get_exptime | ( | const cpl_propertylist * | ) |
Definition at line 886 of file xsh_detmon.c.
References exptime.
Referenced by xsh_detmon_compare_dits(), xsh_detmon_dark_dsnu(), and xsh_detmon_lg_reduce_dit().
cpl_image* xsh_detmon_build_synthetic | ( | cpl_image * | , | |
cpl_image * | ||||
) |
Definition at line 2878 of file xsh_detmon.c.
References detmon_ronbias_config, gauss_res::mse, x, and y.
Referenced by xsh_detmon_ronbias_preoverscan().
int xsh_detmon_compare_dits | ( | const cpl_frame * | , | |
const cpl_frame * | ||||
) |
Definition at line 825 of file xsh_detmon.c.
References irplib_pfits_get_exptime().
Referenced by xsh_detmon_dark().
cpl_error_code xsh_detmon_dark | ( | cpl_frameset * | , | |
const cpl_parameterlist * | , | |||
const char * | , | |||
const char * | , | |||
const char * | , | |||
const char * | , | |||
const char * | , | |||
const char * | , | |||
const char * | , | |||
int(*)(const cpl_frame *, const cpl_frame *) | ||||
) |
Definition at line 4342 of file xsh_detmon.c.
References detmon_dark_config, nb_extensions, OPT, xsh_detmon_compare_dits(), xsh_detmon_dark_dfs_set_groups(), xsh_detmon_dark_dsnu(), xsh_detmon_dark_qc(), xsh_detmon_dark_save(), and xsh_detmon_retrieve_dark_params().
cpl_error_code xsh_detmon_darkron_fill_parlist_default | ( | cpl_parameterlist * | , | |
const char * | , | |||
const char * | ||||
) |
Definition at line 437 of file xsh_detmon.c.
References NIR, and xsh_detmon_ronbias_fill_parlist().
cpl_error_code xsh_detmon_fill_dark_params | ( | cpl_parameterlist * | parlist, | |
const char * | recipe_name, | |||
const char * | pipeline_name, | |||
const char * | ron_method, | |||
const char * | dsnu_method, | |||
const char * | optnir, | |||
int | exts | |||
) |
Definition at line 4645 of file xsh_detmon.c.
References xsh_detmon_fill_parlist().
Referenced by xsh_detmon_fill_dark_params_default().
int xsh_detmon_fill_dark_params_default | ( | cpl_parameterlist * | parlist, | |
const char * | recipe_name, | |||
const char * | pipeline_name | |||
) |
Definition at line 4689 of file xsh_detmon.c.
References xsh_detmon_fill_dark_params().
cpl_error_code xsh_detmon_fill_parlist | ( | cpl_parameterlist * | , | |
const char * | , | |||
const char * | , | |||
int | , | |||
... | ||||
) |
Definition at line 686 of file xsh_detmon.c.
References insert_par.
Referenced by xsh_detmon_fill_dark_params(), xsh_detmon_fill_pernoise_params(), xsh_detmon_lg_fill_parlist(), and xsh_detmon_ronbias_fill_parlist().
cpl_error_code xsh_detmon_fill_pernoise_params | ( | cpl_parameterlist * | , | |
const char * | , | |||
const char * | , | |||
int | mode, | |||
const char * | direction, | |||
double | speed, | |||
int | llx, | |||
int | lly, | |||
int | urx, | |||
int | ury, | |||
double | kappa, | |||
int | exts | |||
) |
Definition at line 3758 of file xsh_detmon.c.
References xsh_detmon_fill_parlist().
Referenced by xsh_detmon_fill_pernoise_params_default().
int xsh_detmon_fill_pernoise_params_default | ( | cpl_parameterlist * | , | |
const char * | , | |||
const char * | ||||
) |
Definition at line 3825 of file xsh_detmon.c.
References xsh_detmon_fill_pernoise_params().
cpl_propertylist* xsh_detmon_fill_prolist | ( | const char * | , | |
const char * | , | |||
const char * | , | |||
cpl_boolean | ||||
) |
Definition at line 2806 of file xsh_detmon.c.
Referenced by xsh_lingain().
cpl_error_code xsh_detmon_pernoise | ( | cpl_frameset * | , | |
const cpl_parameterlist * | , | |||
const char * | , | |||
const char * | , | |||
const char * | , | |||
const char * | , | |||
const char * | , | |||
int(*)(const cpl_frame *, const cpl_frame *) | ||||
) |
Definition at line 3521 of file xsh_detmon.c.
References detmon_pernoise_config, nb_extensions, nx, ny, xsh_detmon_pernoise_dfs_set_groups(), xsh_detmon_pernoise_qc(), xsh_detmon_pernoise_reduce(), xsh_detmon_pernoise_retrieve_parlist(), and xsh_detmon_pernoise_save().
cpl_table* xsh_detmon_pernoise_reduce | ( | cpl_image * | ) |
Definition at line 3054 of file xsh_detmon.c.
References detmon_pernoise_config, HORIZONTAL, and xsh_detmon_pernoise_rm_bg().
Referenced by xsh_detmon_pernoise().
double xsh_detmon_retrieve_par_double | ( | const char * | , | |
const char * | , | |||
const char * | , | |||
const cpl_parameterlist * | ||||
) |
Definition at line 795 of file xsh_detmon.c.
Referenced by xsh_detmon_lg_retrieve_parlist(), and xsh_detmon_pernoise_retrieve_parlist().
int xsh_detmon_retrieve_par_int | ( | const char * | , | |
const char * | , | |||
const char * | , | |||
const cpl_parameterlist * | ||||
) |
Definition at line 765 of file xsh_detmon.c.
Referenced by xsh_detmon_lg_retrieve_parlist(), xsh_detmon_pernoise_retrieve_parlist(), xsh_detmon_retrieve_dark_params(), and xsh_detmon_ronbias_retrieve_parlist().
cpl_error_code xsh_detmon_ronbias | ( | cpl_frameset * | , | |
const cpl_parameterlist * | , | |||
const char * | , | |||
const char * | , | |||
const char * | , | |||
const char * | , | |||
const cpl_propertylist * | , | |||
const cpl_propertylist * | , | |||
const cpl_propertylist * | , | |||
const cpl_propertylist * | , | |||
const cpl_propertylist * | , | |||
const cpl_propertylist * | , | |||
const cpl_propertylist * | , | |||
const char * | , | |||
int(*)(const cpl_frame *, const cpl_frame *) | , | |||
cpl_boolean | ||||
) |
Definition at line 1411 of file xsh_detmon.c.
References detmon_ronbias_config, end_skip, HISTO, PREOVERSCAN, RANDOM, REGION, skip_if, xsh_detmon_ronbias_check_defaults(), xsh_detmon_ronbias_dfs_set_groups(), xsh_detmon_ronbias_dutycycl(), xsh_detmon_ronbias_histo(), xsh_detmon_ronbias_master(), xsh_detmon_ronbias_preoverscan(), xsh_detmon_ronbias_random(), xsh_detmon_ronbias_region(), xsh_detmon_ronbias_retrieve_parlist(), and xsh_detmon_ronbias_save().
cpl_error_code xsh_detmon_ronbias_fill_parlist | ( | cpl_parameterlist * | , | |
const char * | , | |||
const char * | , | |||
const char * | , | |||
const char * | , | |||
const | int, | |||
const | int, | |||
const | int, | |||
const | int, | |||
const | int, | |||
const | int, | |||
const | int, | |||
const | int, | |||
const | int, | |||
const char * | , | |||
const | int, | |||
const | int, | |||
const | int, | |||
const | int, | |||
const | int, | |||
const | int, | |||
const | int, | |||
const | int, | |||
const | int, | |||
const | int, | |||
cpl_boolean | ||||
) |
Definition at line 510 of file xsh_detmon.c.
References OPT, and xsh_detmon_fill_parlist().
Referenced by xsh_detmon_darkron_fill_parlist_default(), and xsh_detmon_ronbias_fill_parlist_default().
cpl_error_code xsh_detmon_ronbias_fill_parlist_default | ( | cpl_parameterlist * | , | |
const char * | , | |||
const char * | ||||
) |
Definition at line 387 of file xsh_detmon.c.
References OPT, and xsh_detmon_ronbias_fill_parlist().
cpl_error_code xsh_detmon_ronbias_histo_reduce | ( | const cpl_image * | c_raw, | |
double * | bias, | |||
double * | fwhm, | |||
double * | max | |||
) |
Definition at line 1838 of file xsh_detmon.c.
References xsh_hist_delete(), xsh_hist_fill(), xsh_hist_get_bin_size(), xsh_hist_get_max(), xsh_hist_get_nbins(), xsh_hist_get_start(), xsh_hist_get_value(), and xsh_hist_new().
Referenced by xsh_detmon_ronbias_histo().
cpl_error_code xsh_flux_get_bias_window | ( | const cpl_image * | , | |
const int * | , | |||
int | , | |||
int | , | |||
double * | , | |||
double * | ||||
) |
Definition at line 3301 of file xsh_detmon.c.
References irplib_bivector_gen_rect_poisson(), RECT_RON_HS, and RECT_RON_SAMPLES.
Referenced by xsh_detmon_ronbias_random().
cpl_error_code xsh_ksigma_clip | ( | const cpl_image * | img, | |
int | llx, | |||
int | lly, | |||
int | urx, | |||
int | ury, | |||
double | kappa, | |||
int | nclip, | |||
double | tolerance, | |||
double * | kmean, | |||
double * | kstdev | |||
) |
Apply kappa-sigma clipping on input image.
img | Input image | |
llx | Lower left x position (FITS convention) | |
lly | Lower left y position (FITS convention) | |
urx | Upper right x position (FITS convention) | |
ury | Upper right y position (FITS convention) | |
kappa | Kappa value for the clipping | |
nclip | Number of clipping iterations | |
kmean | Mean after clipping (output) | |
kstdev | Stdev after clipping (output) |
This function applies an iterative kappa-sigma clipping on the image and returns mean and stdev after the clipping.
The function takes as a starting point the "standard" values of mean and stdev from cpl_stats.
On each iteration, the contribution of pixels outside the range [mean - kappa * stdev, mean + kappa * stdev] is removed, the values of mean and stdev are updated, and so are the limits of the range to be used in the next iteration as well.
The algorithm stops after nclip iterations or when the variation of the range between two consecutive iterations is smaller (absolute value) than the tolerance.
The effectiveness of this function resides on the way the update of the values of mean and stdev is done.
The contribution of a single pixel in variance can be removed as follows:
{i=1}^{N-1} (x_i - {x}_{n-1})^2 = {i=1}^ N (x_i - {x}_n )^2 - {N}{N-1} \,( \, {x}_n - x_{n} )^2
For further details on the mathematical aspects, please refer to DFS05126.
Possible _cpl_error_code_ set in this function:
The values of kmean and kstdev is undefined on error.
Definition at line 1219 of file xsh_detmon.c.
Referenced by xsh_detmon_gain_table_fill_row(), xsh_detmon_ronbias_master(), xsh_detmon_ronbias_preoverscan(), xsh_detmon_ronbias_region(), xsh_image_get_hot_cold_maps(), and xsh_irplib_imagelist_get_clean_mean_levels().