25#ifndef XSH_DATA_WAVEMAP_H
26#define XSH_DATA_WAVEMAP_H
31#define XSH_WAVEMAP_TABLE_NB_UVB_ORDERS 11
32#define XSH_WAVEMAP_TABLE_NB_VIS_ORDERS 14
33#define XSH_WAVEMAP_TABLE_NB_NIR_ORDERS 16
60 double xmin,
xmax, ymin, ymax;
83 const int abs_ord,
const int sid,
const int iter);
97 int ordnum,
int ndata ) ;
100 int nitems,
double * orders,
105 double * xpos,
double * ypos,
106 int nitems,
double * orders,
111 cpl_frame * order_frame,
114 cpl_frame **dispersol_frame, cpl_frame **slitmap_frame);
117 cpl_frame * order_frame,
void xsh_wavemap_list_compute_poly(double *vlambda, double *vslit, double *xpos, double *ypos, int nitems, double *orders, xsh_dispersol_param *dispsol_param, xsh_wavemap_list *wmap)
compute a wave-map-list
void xsh_wavemap_list_dump(xsh_wavemap_list *list, const char *fname)
Dump main info about a rec table (for each order of the list)
void xsh_wavemap_list_free(xsh_wavemap_list **list)
free memory associated to a wavemap_list
cpl_frame * xsh_wavemap_list_save_poly(xsh_wavemap_list *wmap, cpl_frame *order_frame, xsh_pre *pre, xsh_instrument *instr, const char *fname, cpl_frame **dispersol_frame, cpl_frame **slitmap_frame)
Save the wave_map slit_map and disp_tab.
cpl_error_code xsh_wavemap_list_sky_image_save(xsh_wavemap_list *smap, xsh_instrument *instr, const int abs_ord, const int sid, const int iter)
cpl_error_code xsh_wavemap_list_object_image_save(xsh_wavemap_list *omap, xsh_instrument *instr, const int iter)
cpl_frame * xsh_wavemap_list_save2(xsh_wavemap_list *wmap, xsh_order_list *order_list, xsh_pre *pre, xsh_instrument *instr, const char *prefix)
void xsh_wavemap_list_compute(double *vlambda, double *xpos, double *ypos, int nitems, double *orders, xsh_dispersol_param *dispsol_param, xsh_wavemap_list *wmap)
compute a wave-map-list
cpl_error_code xsh_wavemap_list_save4debug(xsh_wavemap_list *wmap, xsh_instrument *instr, const char *prefix)
void xsh_wavemap_list_set_max_size(xsh_wavemap_list *list, int idx, int ordnum, int ndata)
set max size of wavemap
xsh_wavemap_list * xsh_wavemap_list_create(xsh_instrument *instr)
create an empty order list
cpl_frame * xsh_wavemap_list_save(xsh_wavemap_list *wmap, cpl_frame *order_frame, xsh_pre *pre, xsh_instrument *instr, const char *fname)
xsh_instrument * instrument
cpl_propertylist * header
cpl_polynomial * pol_lambda
cpl_polynomial * pol_slit
cpl_polynomial * tcheb_pol_lambda