57 #ifndef UVES_WAVECAL_UTILS_H
58 #define UVES_WAVECAL_UTILS_H
60 #include <uves_utils_polynomial.h>
68 #define LINETAB_PIXELSIZE "Pixel"
69 #define LINETAB_RESIDUAL "Residual"
70 #define LINETAB_LAMBDAC "WaveC"
117 const char *lambda_column,
const char *abs_order,
118 const int *relative_order,
119 int minorder,
int maxorder,
bool vertical,
int offset);
cpl_table ** uves_lt_get_table(const lt_type *lt, int window, int trace)
Get the table structure.
int * last_absolute_order
int * uves_lt_get_lastabs(const lt_type *lt, int window, int trace)
Get last absolute order.
lt_type * uves_lt_new(int windows, int traces)
Allocate line table.
polynomial ** absolute_order
polynomial ** dispersion_relation
polynomial ** uves_lt_get_disprel(const lt_type *lt, int window, int trace)
Get dispersion relation.
cpl_error_code uves_draw_lines(cpl_image *image, polynomial *dispersion, const polynomial *order_locations, const cpl_table *t, const char *lambda_column, const char *abs_order, const int *relative_order, int minorder, int maxorder, bool vertical, int offset)
Draw lines in an echelle image.
int uves_delete_bad_lines(cpl_table *table, double TOLERANCE, double kappa)
Delete bad lines from line table.
int * uves_lt_get_firstabs(const lt_type *lt, int window, int trace)
Get first absolute order.
void uves_lt_delete(lt_type **lt)
Deallocate line table.
int uves_wavecal_find_nearest(const cpl_table *line_refer, double lambda, int lo, int hi)
Find best matching catalogue wavelength.
polynomial ** uves_lt_get_absord(const lt_type *lt, int window, int trace)
Get absolute order polynomial.
int * first_absolute_order