Wavelength Cross correlation plotting


Functions

cpl_error_code irplib_wlxcorr_find_1d (cpl_polynomial *self, const cpl_vector *observed, cpl_error_code(*pfmodel)(cpl_vector *, const cpl_vector *, const cpl_table *), double maxshift, const cpl_array *degshift, const cpl_array *subresol)
 Perform a 1D-wavelength calibration.
int irplib_wlxcorr_plot_solution (const cpl_polynomial *init, const cpl_polynomial *comp, const cpl_polynomial *sol, int pix_start, int pix_stop)
 Plot the wavelength solution.
int irplib_wlxcorr_plot_spc_table (const cpl_table *spc_table, const char *title)
 Plot the spectral table.
int irplib_wlxcorr_catalog_plot (const cpl_bivector *cat, double wmin, double wmax)
 Plot a part of the catalog.

Function Documentation

cpl_error_code irplib_wlxcorr_find_1d ( cpl_polynomial *  self,
const cpl_vector *  observed,
cpl_error_code(*)(cpl_vector *, const cpl_vector *, const cpl_table *)  pfmodel,
double  maxshift,
const cpl_array *  degshift,
const cpl_array *  subresol 
)

Perform a 1D-wavelength calibration.

Parameters:
self 1D-dispersion polynomial (e.g. physical model) to modify
observed The observed spectrum to calibrate against
pfmodel A function to generate the model spectrum
maxshift The maximum shift allowed
degshift The maximum shift allowed by one power of the polynomial
subresol The integer sub-pixel resolution per power, at least 1
Returns:
CPL_ERROR_NONE or the relevant CPL error code
The wavelength on the center of the first pixel is obtained by evaluating self at 1.0.

Possible CPL error code set in this function:

Definition at line 75 of file irplib_wlxcorr.c.

int irplib_wlxcorr_plot_solution ( const cpl_polynomial *  init,
const cpl_polynomial *  comp,
const cpl_polynomial *  sol,
int  pix_start,
int  pix_stop 
)

Plot the wavelength solution.

Parameters:
init The initial guess
comp The computed solution
sol The real solution or NULL if not available
pix_start The first pixel
pix_stop The last pixel
Returns:
0 if ok, -1 otherwise

Definition at line 124 of file irplib_wlxcorr.c.

int irplib_wlxcorr_plot_spc_table ( const cpl_table *  spc_table,
const char *  title 
)

Plot the spectral table.

Parameters:
spc_table The spectral table
title A title
Returns:
0 if ok, -1 otherwise

Definition at line 219 of file irplib_wlxcorr.c.

Referenced by irplib_ppm_engine().

int irplib_wlxcorr_catalog_plot ( const cpl_bivector *  cat,
double  wmin,
double  wmax 
)

Plot a part of the catalog.

Parameters:
cat The catalog
wmin The minimum wavelength
wmax The maximum wavelength
Returns:
0 if ok, -1 in error case

Definition at line 325 of file irplib_wlxcorr.c.


Generated on Fri Apr 18 14:11:45 2008 for UVES Pipeline Reference Manual by  doxygen 1.5.1