DETMON Pipeline Reference Manual  1.3.0
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 #include <detmon_cpl_size.h>
37 
38 /*----------------------------------------------------------------------------
39  Prototypes
40  ----------------------------------------------------------------------------*/
41 
42 
43 #define NIR TRUE
44 #define OPT FALSE
45 
46 #define DETMON_QC_DARK "ESO QC DARK"
47 #define DETMON_QC_DARK_C "Dark level [ADU]"
48 
49 #define DETMON_QC_DARK_STDEV "ESO QC DARK STDEV"
50 #define DETMON_QC_DARK_STDEV_C "Dark stdev level [ADU]"
51 
52 
53 #define detmon_dark_get_description(RECIPE_NAME, PIPE_NAME, \
54  DETMON_DARK_RAW) \
55  RECIPE_NAME " -- " PIPE_NAME " Dark Recipe.\n" \
56  "The files listed in the Set Of Frames must be tagged:\n" \
57  "raw-file.fits "DETMON_DARK_RAW"\n"
58 
59 
60 cpl_error_code
61 detmon_darkron_fill_parlist_default(cpl_parameterlist *,
62  const char *,
63  const char *);
64 
65 
66 
67 cpl_error_code
68 detmon_dark(cpl_frameset *,
69  const cpl_parameterlist *,
70  const char *,
71  const char *,
72  const char *,
73  const char *,
74  const char *,
75  const char *,
76  const char *,
77  int (*)(const cpl_frame *,
78  const cpl_frame *));
79 
80 cpl_error_code
81 detmon_fill_dark_params(cpl_parameterlist * parlist,
82  const char *recipe_name,
83  const char *pipeline_name,
84  const char * ron_method,
85  const char * dsnu_method,
86  const char * optnir,
87  int exts);
88 
89 int
90 detmon_fill_dark_params_default(cpl_parameterlist * parlist,
91  const char *recipe_name,
92  const char *pipeline_name);
93 
94 int
95 detmon_compare_dits(const cpl_frame *, const cpl_frame *);
96 
97 
98 
99 #endif