74 cpl_frameset *result = NULL;
79 char result_name[256];
80 const char *tag = NULL;
81 cpl_table *trace = NULL;
82 cpl_frame *down_frame = NULL;
83 cpl_frame *cen_frame = NULL;
84 cpl_frame *up_frame = NULL;
93 if ( shifttab_frame != NULL){
102 check( trace = cpl_table_new(1));
104 check( result = cpl_frameset_new());
107 sprintf( result_name,
"%s.fits", tag);
109 trace, result_name, tag));
110 check( cpl_frameset_insert( result, down_frame));
113 sprintf( result_name,
"%s.fits", tag);
115 trace, result_name, tag));
116 check( cpl_frameset_insert( result, cen_frame));
119 sprintf( result_name,
"%s.fits", tag);
121 trace, result_name, tag));
122 check( cpl_frameset_insert( result, up_frame));
125 if ( cpl_error_get_code() != CPL_ERROR_NONE){
void xsh_shift_tab_free(xsh_shift_tab **tab)
Free memory associated to a the_arcline.
xsh_shift_tab * xsh_shift_tab_load(cpl_frame *frame, xsh_instrument *instr)
Load a shift table.
void xsh_wavesol_apply_shift(xsh_wavesol *wsol, float shift_x, float shift_y)
Apply a shift on X and Y to wave solution.
xsh_wavesol * xsh_wavesol_load(cpl_frame *frame, xsh_instrument *instrument)
load a wavelength solution
void xsh_wavesol_free(xsh_wavesol **w)
free wavelength solution structure
cpl_frame * xsh_wavesol_save(xsh_wavesol *w, cpl_table *trace, const char *filename, const char *tag)
save a wavelength solution
#define XSH_ASSURE_NOT_NULL(pointer)
cpl_frameset * xsh_ifu_wavetab_create(cpl_frame *wavetab_frame, cpl_frame *shifttab_frame, xsh_instrument *instr)
Create an IFU wave tab frame set.
void xsh_free_frameset(cpl_frameset **f)
Deallocate a frame set and set the pointer to NULL.
void xsh_free_table(cpl_table **t)
Deallocate a table and set the pointer to NULL.
#define XSH_WAVE_TAB_ARC_CEN_IFU
#define XSH_WAVE_TAB_ARC_DOWN_IFU
#define XSH_GET_TAG_FROM_ARM(TAG, instr)
#define XSH_WAVE_TAB_ARC_UP_IFU