X-shooter Pipeline Reference Manual 3.8.15
xsh_data_shift_tab.h
Go to the documentation of this file.
1/* *
2 * This file is part of the ESO X-shooter Pipeline *
3 * Copyright (C) 2006 European Southern Observatory *
4 * *
5 * This library is/ free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the Free Software *
17 * Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA *
18 * */
19
20/*
21 * $Author: amodigli $
22 * $Date: 2011-12-02 14:15:28 $
23 * $Revision: 1.5 $
24 * $Name: not supported by cvs2svn $
25 */
26#ifndef XSH_DATA_SHIFT_TAB_H
27#define XSH_DATA_SHIFT_TAB_H
28
29
30#include <cpl.h>
31#include <stdbool.h>
32#include <xsh_data_instrument.h>
33
34#define XSH_SHIFT_TABLE_NB_COL_IFU 3
35#define XSH_SHIFT_TABLE_COLNAME_YSHIFT_DOWN "SHIFT_Y_DOWN"
36#define XSH_SHIFT_TABLE_UNIT_YSHIFT_DOWN "pixel"
37#define XSH_SHIFT_TABLE_COLNAME_YSHIFT_CEN "SHIFT_Y_CEN"
38#define XSH_SHIFT_TABLE_UNIT_YSHIFT_CEN "pixel"
39#define XSH_SHIFT_TABLE_COLNAME_YSHIFT_UP "SHIFT_Y_UP"
40#define XSH_SHIFT_TABLE_UNIT_YSHIFT_UP "pixel"
41
42#define XSH_SHIFT_TABLE_NB_COL_SLIT 1
43#define XSH_SHIFT_TABLE_COLNAME_YSHIFT "SHIFT_Y"
44#define XSH_SHIFT_TABLE_UNIT_YSHIFT "pixel"
45
46typedef struct{
47 /* shift y (slit mode) */
48 bool is_ifu;
49 float shift_y;
53 cpl_propertylist * header ;
55
56
57xsh_shift_tab* xsh_shift_tab_load( cpl_frame *frame, xsh_instrument *instr);
60cpl_frame * xsh_shift_tab_save(xsh_shift_tab *tab, const char* tag,const int clean_tmp);
61
62#endif /* XSH_SHIFT_TAB_H */
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.
cpl_propertylist * header