34#define XSH_REC_TABLE_NB_UVB_ORDERS 11
35#define XSH_REC_TABLE_NB_VIS_ORDERS 14
36#define XSH_REC_TABLE_NB_NIR_ORDERS 16
39#define XSH_REC_TABLE_COLNAME_ORDER "ORDER"
40#define XSH_REC_TABLE_COLNAME_NLAMBDA "NLAMBDA"
41#define XSH_REC_TABLE_COLNAME_NSLIT "NSLIT"
46#define XSH_REC_TABLE_COLNAME_LAMBDA "LAMBDA"
47#define XSH_REC_TABLE_COLNAME_SLIT "SLIT"
52#define XSH_REC_TABLE_COLNAME_FLUX1 "FLUX1"
53#define XSH_REC_TABLE_COLNAME_FLUX2 "FLUX2"
54#define XSH_REC_TABLE_COLNAME_FLUX3 "FLUX3"
55#define XSH_REC_TABLE_COLNAME_ERRS1 "ERRS1"
56#define XSH_REC_TABLE_COLNAME_ERRS2 "ERRS2"
57#define XSH_REC_TABLE_COLNAME_ERRS3 "ERRS3"
58#define XSH_REC_TABLE_COLNAME_QUAL1 "QUAL1"
59#define XSH_REC_TABLE_COLNAME_QUAL2 "QUAL2"
60#define XSH_REC_TABLE_COLNAME_QUAL3 "QUAL3"
104 const char* tag,
int is_temp);
107 const char* tag,
int is_temp );
126 int nlambda,
int ns);
130 const char* pro_catg);
153 double * jitter,
double * reloffset,
154 double * cumoffset ) ;
170 int *slit_index,
int nb_frames,
int no,
171 int method,
const int decode_bp);
174 double* smin,
double* smax);
static xsh_instrument * instrument
void xsh_rec_list_add(xsh_rec_list *dest, xsh_rec_list **from, int *slit_index, int nb_frames, int no, int method, const int decode_bp)
void xsh_compute_slit_index(float slit_min, float slit_step, xsh_rec_list **from, int *slit_index_tab, int size)
int xsh_rec_list_get_nslit(xsh_rec_list *list, int idx)
double * xsh_rec_list_get_lambda(xsh_rec_list *list, int idx)
cpl_error_code xsh_rec_list_set_slit_max(xsh_rec_list *list, const double val)
xsh_rec_list * xsh_rec_list_load(cpl_frame *frame, xsh_instrument *instr)
load an rec list from a frame
float * xsh_rec_list_get_data1(xsh_rec_list *list, int idx)
cpl_frame * xsh_rec_list_save(xsh_rec_list *list, const char *filename, const char *tag, int is_temp)
Save a rec list in a frame.
cpl_frame * xsh_rec_list_save2(xsh_rec_list *list, const char *filename, const char *tag)
save an rec list to a frame
cpl_error_code xsh_rec_get_nod_extract_slit_min_max(xsh_rec_list *rlist, const double slit_step, double *smin, double *smax)
xsh_rec_list * xsh_rec_list_create_with_size(int size, xsh_instrument *instr)
Create an empty order list.
float * xsh_rec_list_get_errs1(xsh_rec_list *list, int idx)
cpl_propertylist * xsh_rec_list_get_header(xsh_rec_list *list)
get header of the table
void xsh_rec_list_update_header(xsh_rec_list *list, xsh_pre *pre, xsh_rectify_param *rec_par, const char *pro_catg)
Update header of rectified list writing mandatory KW.
int xsh_rec_list_get_order(xsh_rec_list *list, int idx)
double xsh_rec_list_get_slit_max(xsh_rec_list *list)
xsh_rec_list * xsh_rec_list_load_eso(cpl_frame *frame, xsh_instrument *instr)
void xsh_rec_list_set_data_size(xsh_rec_list *list, int idx, int ordnum, int nlambda, int ns)
Allocate memory for the order idx of the rectify list.
void xsh_rec_list_dump(xsh_rec_list *list, const char *fname)
double xsh_rec_list_get_lambda_max(xsh_rec_list *list)
cpl_frame * xsh_rec_list1D_save_as_tab(xsh_rec_list *list, const char *filename, const char *tag)
save an rec list to a frame
xsh_rec_list * xsh_rec_list_load_eso_1d(cpl_frame *frame, xsh_instrument *instr)
int * xsh_rec_list_get_qual1(xsh_rec_list *list, int idx)
xsh_rec_list * xsh_rec_list_duplicate(xsh_rec_list *old, xsh_instrument *instrument)
double xsh_rec_list_get_lambda_min(xsh_rec_list *list)
float * xsh_rec_list_get_slit(xsh_rec_list *list, int idx)
int xsh_rec_list_get_nlambda(xsh_rec_list *list, int idx)
cpl_frame * xsh_rec_list_frame_invert(cpl_frame *rec_frame, const char *tag, xsh_instrument *instrument)
Invert the rectified flux images of the input frame into a new frame.
void xsh_rec_list_free(xsh_rec_list **list)
free memory associated to a rec_list
xsh_rec_list * xsh_rec_list_create(xsh_instrument *instr)
Create an empty order list.
double xsh_rec_list_get_slit_min(xsh_rec_list *list)
void xsh_rec_get_nod_kw(cpl_frame *rec_frame, double *throw, double *jitter, double *reloffset, double *cumoffset)
cpl_frame * xsh_rec_list_save_table(xsh_rec_list *list, const char *filename, const char *tag, int is_temp)
Save a rec list in a frame.
cpl_error_code xsh_rec_list_set_slit_min(xsh_rec_list *list, const double val)
xsh_instrument * instrument
cpl_propertylist * header