00001 /* * 00002 * This file is part of the ESO X-shooter Pipeline * 00003 * Copyright (C) 2006 European Southern Observatory * 00004 * * 00005 * This library is/ free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU General Public License * 00016 * along with this program; if not, write to the Free Software * 00017 * Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA * 00018 * */ 00019 00020 /* 00021 * $Author: lgugliel $ 00022 * $Date: 2009/10/19 14:43:07 $ 00023 * $Revision: 1.3 $ 00024 * $Name: HEAD $ 00025 */ 00026 #ifndef XSH_DATA_SHIFT_TAB_H 00027 #define XSH_DATA_SHIFT_TAB_H 00028 00029 00030 #include <cpl.h> 00031 #include <stdbool.h> 00032 #include <xsh_data_instrument.h> 00033 00034 #define XSH_SHIFT_TABLE_NB_COL_IFU 3 00035 #define XSH_SHIFT_TABLE_COLNAME_YSHIFT_DOWN "SHIFT_Y_DOWN" 00036 #define XSH_SHIFT_TABLE_UNIT_YSHIFT_DOWN "pixel" 00037 #define XSH_SHIFT_TABLE_COLNAME_YSHIFT_CEN "SHIFT_Y_CEN" 00038 #define XSH_SHIFT_TABLE_UNIT_YSHIFT_CEN "pixel" 00039 #define XSH_SHIFT_TABLE_COLNAME_YSHIFT_UP "SHIFT_Y_UP" 00040 #define XSH_SHIFT_TABLE_UNIT_YSHIFT_UP "pixel" 00041 00042 #define XSH_SHIFT_TABLE_NB_COL_SLIT 1 00043 #define XSH_SHIFT_TABLE_COLNAME_YSHIFT "SHIFT_Y" 00044 #define XSH_SHIFT_TABLE_UNIT_YSHIFT "pixel" 00045 00046 typedef struct{ 00047 /* shift y (slit mode) */ 00048 bool is_ifu; 00049 float shift_y; 00050 float shift_y_down; 00051 float shift_y_cen; 00052 float shift_y_up; 00053 cpl_propertylist * header ; 00054 } xsh_shift_tab; 00055 00056 00057 xsh_shift_tab* xsh_shift_tab_load( cpl_frame *frame, xsh_instrument *instr); 00058 void xsh_shift_tab_free( xsh_shift_tab **tab); 00059 xsh_shift_tab * xsh_shift_tab_create( xsh_instrument * instrument ) ; 00060 cpl_frame * xsh_shift_tab_save(xsh_shift_tab *tab, const char* tag); 00061 00062 #endif /* XSH_SHIFT_TAB_H */