SINFONI Pipeline Reference Manual  2.6.0
sinfo_flat_ini_by_cpl.h
1 /*
2  * This file is part of the ESO SINFONI Pipeline
3  * Copyright (C) 2004,2005 European Southern Observatory
4  *
5  * This program 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  File name : sinfo_flat_ini.h
22  Author : Andrea Modigliani
23  Created on : Mar 04, 2004
24  Description : flatfield cpl_input handling for SPIFFI
25  ---------------------------------------------------------------------------*/
26 #ifndef SINFO_FLAT_INI_BY_CPL_H
27 #define SINFO_FLAT_INI_BY_CPL_H
28 /*---------------------------------------------------------------------------
29  Includes
30 ---------------------------------------------------------------------------*/
31 #include <cpl.h>
32 #include "sinfo_flat_cfg.h"
33 #include "sinfo_msg.h"
34 /*---------------------------------------------------------------------------
35  Defines
36 ---------------------------------------------------------------------------*/
37 #define FRAME_ON 1 /* object frames */
38 #define FRAME_OFF 0 /* off frames, that means sky frames or
39  calibration frames with lamp switched off */
40 #define FRAME_POS1 2 /* frames exposed with grating position 1 */
41 #define FRAME_POS2 3 /* frames exposed with dithered grating position 2 */
42 /*----------------------------------------------------------------------------
43  Function prototypes
44  ---------------------------------------------------------------------------*/
45 
58 flat_config *
59 sinfo_parse_cpl_input_flat(cpl_parameterlist * cpl_cfg,
60  cpl_frameset* sof,
61  cpl_frameset** raw) ;
62 
69 void sinfo_flat_free(flat_config ** cfg);
70 
71 #endif