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: amodigli $ 00022 * $Date: 2009/12/30 15:05:32 $ 00023 * $Revision: 1.5 $ 00024 */ 00025 #ifndef XSH_DATA_SLICE_OFFSET_H 00026 #define XSH_DATA_SLICE_OFFSET_H 00027 00028 #include <cpl.h> 00029 #include <xsh_data_instrument.h> 00030 00031 00032 #define XSH_SLICE_OFFSET_TABLE_COLNAME_CEN_UP "CEN_UP_OFFSET" 00033 #define XSH_SLICE_OFFSET_TABLE_UNIT_CEN_UP "arcsec" 00034 00035 #define XSH_SLICE_OFFSET_TABLE_COLNAME_CEN_DOWN "CEN_DOWN_OFFSET" 00036 #define XSH_SLICE_OFFSET_TABLE_UNIT_CEN_DOWN "arcsec" 00037 00038 typedef struct{ 00039 double cen_up; 00040 double cen_down; 00041 cpl_propertylist *header; 00042 } xsh_slice_offset ; 00043 00044 00045 xsh_slice_offset* xsh_slice_offset_create(void); 00046 00047 xsh_slice_offset* xsh_slice_offset_load( cpl_frame* frame); 00048 00049 cpl_propertylist* xsh_slice_offset_get_header(xsh_slice_offset *slice); 00050 00051 void xsh_slice_offset_free(xsh_slice_offset **slice); 00052 00053 cpl_frame* xsh_slice_offset_save( xsh_slice_offset * list, 00054 const char* filename, xsh_instrument* instr); 00055 00056 #endif /* XSH_SLICE_OFSET_H */