UVES Pipeline Reference Manual  5.4.0
Functions
Point pattern matching

Functions

cpl_polynomial * irplib_ppm_engine (const cpl_vector *spectrum, const cpl_bivector *lines_catalog, const cpl_polynomial *poly_init, double slitw, double fwhm, double thresh, int degree, int doplot, cpl_table **tab_infos)
 The Wavelength Calibration using PPM.

Detailed Description


Function Documentation

cpl_polynomial* irplib_ppm_engine ( const cpl_vector *  spectrum,
const cpl_bivector *  lines_catalog,
const cpl_polynomial *  poly_init,
double  slitw,
double  fwhm,
double  thresh,
int  degree,
int  doplot,
cpl_table **  tab_infos 
)

The Wavelength Calibration using PPM.

Parameters:
spectrumThe spectrum vector
lines_catalogThe lines catalog
poly_initPolynomial with the initial guess
slitwThe slit width
fwhmThe spectral FWHM [pixel]
threshThe threshold for lines detection
degreeThe polynomial degree
doplotPlotting level (zero for none)
tab_infosThe computed solution table or NULL (computed)
Returns:
the polynomial solution or NULL in error case

The returned table must be deallocated with cpl_table_delete(). The returned polynomial must be deallocated with cpl_polynomial_delete().

Definition at line 84 of file irplib_ppm.c.

References irplib_spectrum_detect_peaks().