Functions | |
xsh_shift_tab * | xsh_shift_tab_load (cpl_frame *frame, xsh_instrument *instr) |
Load a shift table. | |
void | xsh_shift_tab_free (xsh_shift_tab **tab) |
Free memory associated to a the_arcline. | |
cpl_frame * | xsh_shift_tab_save (xsh_shift_tab *tab, const char *tag, const int clean_tmp) |
xsh_shift_tab * | xsh_shift_tab_create (xsh_instrument *instrument) |
xsh_shift_tab* xsh_shift_tab_create | ( | xsh_instrument * | instrument | ) |
Create an empty shift_tab structure.
instrument | Instrument structure |
Definition at line 206 of file xsh_data_shift_tab.c.
References check, xsh_shift_tab::header, xsh_shift_tab::is_ifu, mode, XSH_ASSURE_NOT_NULL, XSH_CALLOC, xsh_instrument_get_mode(), and XSH_MODE_IFU.
Referenced by xsh_follow_arclines().
void xsh_shift_tab_free | ( | xsh_shift_tab ** | tab | ) |
Free memory associated to a the_arcline.
tab | The shift_tab to free |
Definition at line 123 of file xsh_data_shift_tab.c.
References xsh_free_propertylist().
Referenced by xsh_follow_arclines(), xsh_follow_arclines_ifu(), xsh_ifu_wavetab_create(), and xsh_shift_tab_load().
xsh_shift_tab* xsh_shift_tab_load | ( | cpl_frame * | frame, | |
xsh_instrument * | instr | |||
) |
Load a shift table.
frame | The shift table frame | |
instr | instrument arm and lamp setting |
Definition at line 67 of file xsh_data_shift_tab.c.
References check, xsh_shift_tab::header, xsh_shift_tab::is_ifu, mode, xsh_shift_tab::shift_y, xsh_shift_tab::shift_y_cen, xsh_shift_tab::shift_y_down, xsh_shift_tab::shift_y_up, XSH_ASSURE_NOT_NULL, XSH_CALLOC, xsh_get_table_value(), xsh_instrument_get_mode(), XSH_MODE_IFU, xsh_shift_tab_free(), XSH_SHIFT_TABLE_COLNAME_YSHIFT, XSH_SHIFT_TABLE_COLNAME_YSHIFT_CEN, XSH_SHIFT_TABLE_COLNAME_YSHIFT_DOWN, XSH_SHIFT_TABLE_COLNAME_YSHIFT_UP, XSH_TABLE_FREE, and XSH_TABLE_LOAD.
Referenced by xsh_follow_arclines_ifu(), and xsh_ifu_wavetab_create().
cpl_frame* xsh_shift_tab_save | ( | xsh_shift_tab * | tab, | |
const char * | tag, | |||
const int | clean_tmp | |||
) |
Definition at line 135 of file xsh_data_shift_tab.c.
References check, xsh_shift_tab::header, xsh_shift_tab::is_ifu, xsh_shift_tab::shift_y, xsh_shift_tab::shift_y_cen, xsh_shift_tab::shift_y_down, xsh_shift_tab::shift_y_up, xsh_add_temporary_file(), XSH_ASSURE_NOT_NULL, xsh_frame_product(), xsh_free_frame(), xsh_pfits_set_pcatg(), XSH_SHIFT_TABLE_COLNAME_YSHIFT, XSH_SHIFT_TABLE_COLNAME_YSHIFT_CEN, XSH_SHIFT_TABLE_COLNAME_YSHIFT_DOWN, XSH_SHIFT_TABLE_COLNAME_YSHIFT_UP, XSH_SHIFT_TABLE_UNIT_YSHIFT, XSH_SHIFT_TABLE_UNIT_YSHIFT_CEN, XSH_SHIFT_TABLE_UNIT_YSHIFT_DOWN, XSH_SHIFT_TABLE_UNIT_YSHIFT_UP, XSH_TABLE_FREE, and XSH_TABLE_NEW_COL.
Referenced by xsh_follow_arclines(), and xsh_follow_arclines_ifu().