30#define CR2RES_NONLIN_LEVEL 20000
31#define CR2RES_QC_ORDER 4
32#define CR2RES_QC_TRACE 1
33#define CR2RES_QC_SIZE 100
34#define CR2RES_QC_WINDOW 20
43 const cpl_image * ima1,
44 const cpl_image * ima2,
51 const hdrl_imagelist * hdrl_coeffs,
57 const hdrl_imagelist * hdrl_coeffs,
65 const cpl_table * trace) ;
72 const cpl_table * extracted) ;
85 const cpl_bivector * spec) ;
87 const cpl_bivector * spec) ;
90 const cpl_bivector * spec,
92 double * peak_height) ;
94 const cpl_bivector * spec,
100 const cpl_image * ima,
101 const cpl_table * tw,
104 const cpl_table * extracted) ;
106 const cpl_table * extracted,
109 const cpl_table * slitfu,
113 const cpl_table * tw,
114 const cpl_table * extracted,
115 int ** out_order_idx_values,
116 int * out_nb_order_idx_values) ;
120int cr2res_qc_calculate_mean_and_rmsd(
121 cpl_propertylist *** plists,
124 const char * ref_keyword,
125 cpl_propertylist * qc_main,
126 const char * result_avg_keyword,
127 const char * result_rmsd_keyword);
129int cr2res_qc_dup_mtrlgy_key(
130 cpl_frameset * framelist,
131 cpl_propertylist *plist);
133int cr2res_qc_dup_chip_idx(
134 cpl_propertylist *plist);
double cr2res_qc_overexposed(const cpl_image *ima, const cpl_table *tw, int order_idx)
Computes the Overexposed fraction.
int cr2res_qc_numsat(const cpl_frameset *frameset)
Calculate the number of saturated pixels.
double cr2res_qc_flat_s2n(const cpl_table *extracted)
Computes the S2N on the flat.
double cr2res_qc_wave_resol_fwhm(const cpl_bivector *spec, double *wl)
Computes the lines Fwhm and return the smallest.
double cr2res_qc_wave_lamp_effic(const cpl_bivector *spec)
Computes the lamp efficiency.
double cr2res_dark_qc_ron(const cpl_image *ima1, const cpl_image *ima2, int hsize, int nsamples, int ndit)
The Read Out Noise computation.
int cr2res_qc_detlin_stat(const hdrl_imagelist *hdrl_coeffs, double *meda, double *medb, double *medc, double *meda_err)
Computes the detlin coeffs statѕ
double cr2res_qc_obs_nodding_signal(const cpl_table *extracted)
Computes the integrated flux over part of the spectrum.
double cr2res_qc_wave_central(const cpl_table *tw, int order)
Computes the central WLEN of a given order.
int cr2res_qc_flat_order_positions(const cpl_table *tw, int **order_nb, double **order_pos, int *nbvals)
Compute the central orders positions.
double cr2res_qc_wave_line_fwhm(const cpl_bivector *spec, double wl, double *peak_height)
Computes one line Fwhm.
double cr2res_qc_flat_trace_center_y(const cpl_table *trace)
Computes the mean Y coord of the central order.
double cr2res_qc_wave_disp(const cpl_table *tw, int order)
Computes the dispersion of a given order.
double cr2res_qc_obs_nodding_standard_flux(const cpl_table *extracted, char *setting)
Computes the standard flux over part of the spectrum.
cpl_bivector * cr2res_qc_lines_intens_bgd(const cpl_bivector *spec)
Computes the lines intensities / background.
double * cr2res_qc_snr(const cpl_table *tw, const cpl_table *extracted, int **out_order_idx_values, int *out_nb_order_idx_values)
Computes the SNR of several spectra.
cpl_vector * cr2res_qc_lines_collect(double wmin, double wmax)
Collect lines between 2 wavelengths.
double cr2res_qc_detlin(const hdrl_imagelist *hdrl_coeffs, double bpm_thresh, cpl_mask **outmask, double *min_level, double *max_level)
Computes the detlin median non linearity.
double cr2res_qc_compute_snr(cpl_vector *spec, cpl_vector *err)
Computes the SNR of one spectrum.
double cr2res_qc_obs_slit_psf(const cpl_table *slitfu, int order_idxp, int oversample)
Computes the FWHM of the PSF along the slit for a given order.