SINFONI Pipeline Reference Manual  2.5.2
sinfo_dark_cfg.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  File name : sinfo_dark_cfg.h
21  Author : Juergen Schreiber
22  Created on : February 2002
23  Description : sinfo_dark_cfg.c definitions + handling prototypes
24  ---------------------------------------------------------------------------*/
25 #ifndef SINFO_DARK_CFG_H
26 #define SINFO_DARK_CFG_H
27 /*---------------------------------------------------------------------------
28  Includes
29  ---------------------------------------------------------------------------*/
30 #include <stdlib.h>
31 #include "sinfo_globals.h"
32 #include <cpl.h>
33 /*---------------------------------------------------------------------------
34  Defines
35  ---------------------------------------------------------------------------*/
36 /*---------------------------------------------------------------------------
37  New types
38  ---------------------------------------------------------------------------*/
39 /*
40  master dark frame generation blackboard container
41 
42  This structure holds all information related to the master dark
43  frame generation
44  routine. It is used as a container for the flux of ancillary data,
45  computed values, and algorithm status. Pixel flux is separated from
46  the blackboard.
47  */
48 
49 typedef struct dark_config {
50 /*-------General---------*/
51  char inFile[FILE_NAME_SZ] ; /* file name of frame list */
52  char ** inFrameList ; /* input averaged, bad pixel corrected,
53  off subtracted, flatfielded, spectral
54  tilt corrected list of frames */
55  int nframes ; /* number of frames in the list */
56  char outName[FILE_NAME_SZ] ; /* output name of resulting fits
57  data cube */
58 
59 /*------ CleanMean ------*/
60  /* the fraction [0...1] of rejected low intensity pixels when
61  taking the average of columns */
62  float lo_reject ;
63  /* the fraction [0...1] of rejected high intensity pixels when
64  taking the average of columns */
65  float hi_reject ;
66 /*------ QCLOG ------*/
67  /* RON */
68 
69  int qc_ron_xmin;
70  int qc_ron_xmax;
71  int qc_ron_ymin;
72  int qc_ron_ymax;
73  int qc_ron_hsize;
74  int qc_ron_nsamp;
75  /* FPN */
76  int qc_fpn_xmin;
77  int qc_fpn_xmax;
78  int qc_fpn_ymin;
79  int qc_fpn_ymax;
80  int qc_fpn_hsize;
81  int qc_fpn_nsamp;
82 
83 } dark_config ;
84 /*---------------------------------------------------------------------------
85  Function prototypes
86  ---------------------------------------------------------------------------*/
94 dark_config *
95 sinfo_dark_cfg_create(void);
102 void
103 sinfo_dark_cfg_destroy(dark_config * cc);
104 
105 
106 #endif