69 cpl_table *table = NULL;
70 const char* tablename = NULL;
73 double shift_cen=0, shift_up=0, shift_down=0;
76 check( tablename = cpl_frame_get_filename( frame));
88 CPL_TYPE_DOUBLE, 0, &shift_down));
90 CPL_TYPE_DOUBLE, 0, &shift_cen));
92 CPL_TYPE_DOUBLE, 0, &shift_up));
100 CPL_TYPE_DOUBLE, 0, &shift_cen));
103 check( result->
header = cpl_propertylist_load( tablename, 0));
106 if ( cpl_error_get_code() != CPL_ERROR_NONE){
137 cpl_frame * result = NULL ;
138 cpl_table *table = NULL;
139 cpl_propertylist *header = NULL;
144 check( table = cpl_table_new( 1 ));
174 sprintf(filename,
"%s.fits",tag) ;
175 check( cpl_table_save(table, header, NULL, filename, CPL_IO_DEFAULT));
180 CPL_FRAME_TYPE_TABLE,
181 CPL_FRAME_GROUP_PRODUCT,
182 CPL_FRAME_LEVEL_TEMPORARY));
189 if (cpl_error_get_code() != CPL_ERROR_NONE){
static xsh_instrument * instrument
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)
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.
#define XSH_ASSURE_NOT_NULL(pointer)
XSH_MODE xsh_instrument_get_mode(xsh_instrument *i)
Get a mode on instrument structure.
void xsh_pfits_set_pcatg(cpl_propertylist *plist, const char *value)
Write the PCATG value.
void xsh_free_frame(cpl_frame **f)
Deallocate a frame and set the pointer to NULL.
void xsh_free_propertylist(cpl_propertylist **p)
Deallocate a property list and set the pointer to NULL.
cpl_error_code xsh_get_table_value(const cpl_table *table, const char *colname, cpl_type coltype, int i, void *result)
Read a table value from a fits table.
void xsh_add_temporary_file(const char *name)
Add temporary file to temprary files list.
cpl_propertylist * header
#define XSH_SHIFT_TABLE_UNIT_YSHIFT_CEN
#define XSH_SHIFT_TABLE_COLNAME_YSHIFT_DOWN
#define XSH_SHIFT_TABLE_COLNAME_YSHIFT_UP
#define XSH_SHIFT_TABLE_UNIT_YSHIFT_UP
#define XSH_SHIFT_TABLE_COLNAME_YSHIFT_CEN
#define XSH_SHIFT_TABLE_COLNAME_YSHIFT
#define XSH_SHIFT_TABLE_UNIT_YSHIFT_DOWN
#define XSH_SHIFT_TABLE_UNIT_YSHIFT
cpl_frame * xsh_frame_product(const char *fname, const char *tag, cpl_frame_type type, cpl_frame_group group, cpl_frame_level level)
Creates a frame with given characteristics.
#define XSH_TABLE_NEW_COL(TABLE, NAME, UNIT, TYPE)
#define XSH_CALLOC(POINTER, TYPE, SIZE)
#define XSH_TABLE_LOAD(TABLE, NAME)
#define XSH_TABLE_FREE(TABLE)