|
CR2RE Pipeline Reference Manual 1.6.2
|
Functions | |
| 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_detlin (const hdrl_imagelist *hdrl_coeffs, double bpm_thresh, cpl_mask **outmask, double *min_level, double *max_level) |
| Computes the detlin median non linearity. | |
| 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_flat_trace_center_y (const cpl_table *trace) |
| Computes the mean Y coord of the central order. | |
| double | cr2res_qc_flat_s2n (const cpl_table *extracted) |
| Computes the S2N on the flat. | |
| double | cr2res_qc_wave_central (const cpl_table *tw, int order_idx) |
| Computes the central WLEN of a given order. | |
| double | cr2res_qc_wave_disp (const cpl_table *tw, int order_idx) |
| Computes the dispersion of a given order. | |
| cpl_vector * | cr2res_qc_lines_collect (double wmin, double wmax) |
| Collect lines between 2 wavelengths. | |
| double | cr2res_qc_wave_line_fwhm (const cpl_bivector *spec, double wl, double *peak_height) |
| Computes one line Fwhm. | |
| cpl_bivector * | cr2res_qc_lines_intens_bgd (const cpl_bivector *spec) |
| Computes the lines intensities / background. | |
| double | cr2res_qc_wave_lamp_effic (const cpl_bivector *spec) |
| Computes the lamp efficiency. | |
| double | cr2res_qc_wave_resol_fwhm (const cpl_bivector *spec, double *wl) |
| Computes the lines Fwhm and return the smallest. | |
| double | cr2res_qc_overexposed (const cpl_image *ima, const cpl_table *tw, int order_idx) |
| Computes the Overexposed fraction. | |
| double | cr2res_qc_obs_nodding_signal (const cpl_table *extracted) |
| Computes the integrated flux over part of the spectrum. | |
| double | cr2res_qc_obs_nodding_standard_flux (const cpl_table *extracted, char *setting) |
| Computes the standard flux over part of the spectrum. | |
| 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. | |
| 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. | |
| int | cr2res_qc_numsat (const cpl_frameset *frameset) |
| Calculate the number of saturated pixels. | |
| double cr2res_dark_qc_ron | ( | const cpl_image * | ima1, |
| const cpl_image * | ima2, | ||
| int | hsize, | ||
| int | nsamples, | ||
| int | ndit | ||
| ) |
The Read Out Noise computation.
| ima1 | the first input image |
| ima2 | the second input image |
| hsize | |
| nsamples | |
| ndit | the NDIT |
Definition at line 74 of file cr2res_qc.c.
| double cr2res_qc_compute_snr | ( | cpl_vector * | spec, |
| cpl_vector * | err | ||
| ) |
Computes the SNR of one spectrum.
| spec | The spectrum |
| err | The error |
Definition at line 1065 of file cr2res_qc.c.
Referenced by cr2res_qc_snr().
| 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.
| coeffs | The detector non linearity coefficients |
| min_level | [out] min level |
| max_level | [out] max level |
Definition at line 156 of file cr2res_qc.c.
References cr2res_detlin_correct(), hdrl_image_add_scalar(), hdrl_image_delete(), hdrl_image_get_image(), hdrl_image_get_mask(), hdrl_image_get_size_x(), hdrl_image_get_size_y(), hdrl_image_new(), hdrl_image_reject_from_mask(), hdrl_image_reject_value(), and hdrl_imagelist_get().
| int cr2res_qc_detlin_stat | ( | const hdrl_imagelist * | hdrl_coeffs, |
| double * | meda, | ||
| double * | medb, | ||
| double * | medc, | ||
| double * | meda_err | ||
| ) |
Computes the detlin coeffs statѕ
| coeffs | The detector non linearity coefficients |
| meda | [out] median of a coeffs |
| medb | [out] median of a coeffs |
| medc | [out] median of a coeffs |
| meda_err | [out] median of a coeffs errors |
Definition at line 111 of file cr2res_qc.c.
References hdrl_image_get_error(), hdrl_image_get_image(), and hdrl_imagelist_get().
| int cr2res_qc_flat_order_positions | ( | const cpl_table * | tw, |
| int ** | order_nb, | ||
| double ** | order_pos, | ||
| int * | nbvals | ||
| ) |
Compute the central orders positions.
| tw | trave Wave table |
| order_nb | [out] Array of orders numbers |
| order_pos | [out] Array of orders positions |
| nbvals | [out] Size of the arrays |
Definition at line 235 of file cr2res_qc.c.
References cr2res_trace_get_order_idx_values(), cr2res_trace_get_trace_ypos(), and cr2res_trace_slit_fraction_info().
| double cr2res_qc_flat_s2n | ( | const cpl_table * | extracted | ) |
Computes the S2N on the flat.
| extracted | The extracted spectrum from the flat ie blaze |
Definition at line 375 of file cr2res_qc.c.
References cr2res_dfs_SPEC_colname_parse(), and cr2res_dfs_SPEC_ERR_colname().
| double cr2res_qc_flat_trace_center_y | ( | const cpl_table * | trace | ) |
Computes the mean Y coord of the central order.
| trace | the trace table |
Definition at line 325 of file cr2res_qc.c.
References cr2res_get_trace_numbers(), cr2res_trace_get_order_idx_values(), and cr2res_trace_get_ycen().
| cpl_vector * cr2res_qc_lines_collect | ( | double | wmin, |
| double | wmax | ||
| ) |
Collect lines between 2 wavelengths.
| wstart | |
| wstop |
Definition at line 512 of file cr2res_qc.c.
Referenced by cr2res_qc_lines_intens_bgd(), cr2res_qc_wave_lamp_effic(), and cr2res_qc_wave_resol_fwhm().
| cpl_bivector * cr2res_qc_lines_intens_bgd | ( | const cpl_bivector * | spec | ) |
Computes the lines intensities / background.
| extracted | extracted spectrum |
Definition at line 612 of file cr2res_qc.c.
References cr2res_qc_lines_collect().
| int cr2res_qc_numsat | ( | const cpl_frameset * | frameset | ) |
Calculate the number of saturated pixels.
| frameset | - the input RAW frames |
Definition at line 1183 of file cr2res_qc.c.
References cr2res_io_load_image(), hdrl_image_delete(), and hdrl_image_get_image().
| double cr2res_qc_obs_nodding_signal | ( | const cpl_table * | extracted | ) |
Computes the integrated flux over part of the spectrum.
| extracted | Extracted spectrum table |
Definition at line 845 of file cr2res_qc.c.
References cr2res_dfs_SPEC_colname().
| double cr2res_qc_obs_nodding_standard_flux | ( | const cpl_table * | extracted, |
| char * | setting | ||
| ) |
Computes the standard flux over part of the spectrum.
| extracted | Extracted spectrum table |
| setting | The setting |
Definition at line 892 of file cr2res_qc.c.
References cr2res_dfs_SPEC_colname(), and cr2res_dfs_WAVELENGTH_colname().
| 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.
| slitfu | Slit func table |
| order_idxp | Order index |
Definition at line 1101 of file cr2res_qc.c.
References cr2res_dfs_SLIT_FUNC_colname().
| double cr2res_qc_overexposed | ( | const cpl_image * | ima, |
| const cpl_table * | tw, | ||
| int | order_idx | ||
| ) |
Computes the Overexposed fraction.
| ima | the image (with BPM) |
| tw | the TW table |
| order_idx | the order index |
Definition at line 796 of file cr2res_qc.c.
References cr2res_trace_gen_image().
| 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.
| tw | The TW table |
| extracted | The Extracted table |
| out_order_idx_values | [out] The order values |
| out_nb_order_idx_values | [out] The number of order values |
Definition at line 1010 of file cr2res_qc.c.
References cr2res_extract_EXTRACT1D_get_spectrum(), cr2res_qc_compute_snr(), and cr2res_trace_get_order_idx_values().
| double cr2res_qc_wave_central | ( | const cpl_table * | tw, |
| int | order_idx | ||
| ) |
Computes the central WLEN of a given order.
| tw | the TW table |
| order | the order index |
Definition at line 452 of file cr2res_qc.c.
References cr2res_trace_get_wl().
Referenced by cr2res_wave_apply().
| double cr2res_qc_wave_disp | ( | const cpl_table * | tw, |
| int | order_idx | ||
| ) |
Computes the dispersion of a given order.
| tw | the TW table |
| order | the order index |
Definition at line 480 of file cr2res_qc.c.
References cr2res_trace_get_wl().
Referenced by cr2res_wave_apply().
| double cr2res_qc_wave_lamp_effic | ( | const cpl_bivector * | spec | ) |
Computes the lamp efficiency.
| extracted | extracted spectrum |
Definition at line 656 of file cr2res_qc.c.
References cr2res_qc_lines_collect().
Referenced by cr2res_wave_1d().
| double cr2res_qc_wave_line_fwhm | ( | const cpl_bivector * | spec, |
| double | wl, | ||
| double * | peak_height | ||
| ) |
Computes one line Fwhm.
| spec | spectrum |
| wl | line position |
| peak_height | [out] Fitted Peak height |
Definition at line 546 of file cr2res_qc.c.
Referenced by cr2res_qc_wave_resol_fwhm().
| double cr2res_qc_wave_resol_fwhm | ( | const cpl_bivector * | spec, |
| double * | wl | ||
| ) |
Computes the lines Fwhm and return the smallest.
| extracted | extracted spectrum |
| wl | [out] the wavelength of the thinnest line |
Definition at line 710 of file cr2res_qc.c.
References cr2res_qc_lines_collect(), and cr2res_qc_wave_line_fwhm().
Referenced by cr2res_wave_1d().