Functions | |
| cpl_polynomial * | cpl_wlcalib_xc_best_poly (const cpl_vector *spectrum, const cpl_bivector *lines_catalog, int degree, const cpl_polynomial *guess_poly, const cpl_vector *wl_error, int nsamples, double slitw, double fwhm, double *xc, cpl_table **wlres, cpl_vector **xcorrs) |
| Find the best polynomial in a given range. | |
| cpl_table * | cpl_wlcalib_xc_gen_spc_table (const cpl_vector *spectrum, const cpl_bivector *lines_catalog, double slitw, double fwhm, const cpl_polynomial *guess_poly, const cpl_polynomial *corr_poly) |
| Generate the infos table. | |
| cpl_bivector * | cpl_wlcalib_xc_cat_extract (const cpl_bivector *lines_catalog, double wave_min, double wave_max) |
| Extract a sub catalog. | |
| cpl_vector * | cpl_wlcalib_xc_convolve_create_kernel (double slitw, double fwhm) |
| Create Right Half of a symmetric smoothing kernel. | |
| int | cpl_wlcalib_xc_convolve (cpl_vector *smoothed, const cpl_vector *conv_kernel) |
| Convolve a 1d-signal with a symmetric 1D-signal. | |
#include "cpl_wlcalib_xc.h"
| cpl_polynomial* cpl_wlcalib_xc_best_poly | ( | const cpl_vector * | spectrum, | |
| const cpl_bivector * | lines_catalog, | |||
| int | degree, | |||
| const cpl_polynomial * | guess_poly, | |||
| const cpl_vector * | wl_error, | |||
| int | nsamples, | |||
| double | slitw, | |||
| double | fwhm, | |||
| double * | xc, | |||
| cpl_table ** | wlres, | |||
| cpl_vector ** | xcorrs | |||
| ) |
Find the best polynomial in a given range.
| spectrum | The spectrum vector | |
| lines_catalog | The lines catalog | |
| degree | The polynomial degree | |
| guess_poly | Guess Dispersion Polynomial | |
| wl_error | Search range around the anchor points | |
| nsamples | Number of samples around the anchor points | |
| slitw | The slit width | |
| fwhm | The spectral FWHM [pixel] | |
| xc | Cross-correlation factor (returned) | |
| wlres | The table with the calibration results or NULL | |
| xcorrs | The vector with the correlation values or NULL |
The returned polynomial must be deallocated with cpl_polynomial_delete().
| cpl_bivector* cpl_wlcalib_xc_cat_extract | ( | const cpl_bivector * | lines_catalog, | |
| double | wave_min, | |||
| double | wave_max | |||
| ) |
Extract a sub catalog.
| lines_catalog | Bivector with the lines | |
| wave_min | The wavelength min | |
| wave_max | The wavelength max |
| int cpl_wlcalib_xc_convolve | ( | cpl_vector * | smoothed, | |
| const cpl_vector * | conv_kernel | |||
| ) |
Convolve a 1d-signal with a symmetric 1D-signal.
| smoothed | Preallocated vector to be smoothed in place | |
| conv_kernel | Vector with symmetric convolution function |
| cpl_vector* cpl_wlcalib_xc_convolve_create_kernel | ( | double | slitw, | |
| double | fwhm | |||
| ) |
Create Right Half of a symmetric smoothing kernel.
| slitw | The slit width [pixel] | |
| fwhm | The spectral FWHM [pixel] |
| cpl_table* cpl_wlcalib_xc_gen_spc_table | ( | const cpl_vector * | spectrum, | |
| const cpl_bivector * | lines_catalog, | |||
| double | slitw, | |||
| double | fwhm, | |||
| const cpl_polynomial * | guess_poly, | |||
| const cpl_polynomial * | corr_poly | |||
| ) |
Generate the infos table.
| spectrum | The spectrum vector | |
| lines_catalog | The lines catalog | |
| slitw | The slit width | |
| fwhm | The spectral FWHM [pixel] | |
| guess_poly | Guess Dispersion Polynomial | |
| corr_poly | Corrected Dispersion Polynomial |
1.5.1