IIINSTRUMENT Pipeline Reference Manual  1.3.12
detmon_darkron.h
1 /* $Id: detmon.h,v 1.3 2013-01-25 16:08:41 jtaylor Exp $
2  *
3  * This file is part of the irplib package
4  * Copyright (C) 2002, 2003 European Southern Observatory
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
19  */
20 
21 /*
22  * $Author: jtaylor $
23  * $Date: 2013-01-25 16:08:41 $
24  * $Revision: 1.3 $
25  * $Name: not supported by cvs2svn $
26  */
27 
28 #ifndef IRPLIB_DETMON_DARKRON_H
29 #define IRPLIB_DETMON_DARKRON_H
30 
31 /*----------------------------------------------------------------------------
32  Includes
33  ----------------------------------------------------------------------------*/
34 
35 #include <cpl.h>
36 
37 /*----------------------------------------------------------------------------
38  Prototypes
39  ----------------------------------------------------------------------------*/
40 
41 
42 #define NIR TRUE
43 #define OPT FALSE
44 
45 #define DETMON_QC_DARK "ESO QC DARK"
46 #define DETMON_QC_DARK_C "Dark level [ADU]"
47 
48 #define DETMON_QC_DARK_STDEV "ESO QC DARK STDEV"
49 #define DETMON_QC_DARK_STDEV_C "Dark stdev level [ADU]"
50 
51 
52 #define detmon_dark_get_description(RECIPE_NAME, PIPE_NAME, \
53  DETMON_DARK_RAW) \
54  RECIPE_NAME " -- " PIPE_NAME " Dark Recipe.\n" \
55  "The files listed in the Set Of Frames must be tagged:\n" \
56  "raw-file.fits "DETMON_DARK_RAW"\n"
57 
58 /*----------------------------------------------------------------------------
59  Defines
60  ----------------------------------------------------------------------------*/
61 
62 cpl_error_code
63 detmon_darkron_fill_parlist_default(cpl_parameterlist *,
64  const char *,
65  const char *);
66 
67 
68 
69 cpl_error_code
70 detmon_dark(cpl_frameset *,
71  const cpl_parameterlist *,
72  const char *,
73  const char *,
74  const char *,
75  const char *,
76  const char *,
77  const char *,
78  const char *,
79  int (*)(const cpl_frame *,
80  const cpl_frame *));
81 
82 cpl_error_code
83 detmon_fill_dark_params(cpl_parameterlist * parlist,
84  const char *recipe_name,
85  const char *pipeline_name,
86  const char * ron_method,
87  const char * dsnu_method,
88  const char * optnir,
89  int exts);
90 
91 int
92 detmon_fill_dark_params_default(cpl_parameterlist * parlist,
93  const char *recipe_name,
94  const char *pipeline_name);
95 
96 int
97 detmon_compare_dits(const cpl_frame *, const cpl_frame *);
98 
99 
100 
101 #endif