DETMON Pipeline Reference Manual  1.2.7
detmon_dark.c
1 /* $Id: detmon_dark.c,v 1.5 2013-01-29 08:56:40 jtaylor Exp $
2  *
3  * This file is part of the DETMON Pipeline
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-29 08:56:40 $
24  * $Revision: 1.5 $
25  * $Name: not supported by cvs2svn $
26  */
27 #ifdef HAVE_CONFIG_H
28 #include <config.h>
29 #endif
30 
31 /*----------------------------------------------------------------------------
32  Includes
33  ----------------------------------------------------------------------------*/
34 
35 #include <cpl.h>
36 
37 #include "irplib_detmon.h"
38 #include "irplib_plugin.h"
39 
40 /* Define here the DO.CATG keywords */
41 #define DETMON_DARK_RAW "DARK"
42 
43 #define RECIPE_NAME "detmon_dark"
44 
45 /*----------------------------------------------------------------------------
46  Functions prototypes
47  ----------------------------------------------------------------------------*/
48 
49 CPL_RECIPE_DEFINE(detmon_dark, DETMON_BINARY_VERSION,
50  irplib_detmon_fill_dark_params_default(recipe->parameters,
51  "detmon_dark",
52  "detmon"),
53  "Lander de Bilbao", "lbilbao@eso.org", "2007",
54  "Periodic Noise Characterisation recipe",
55  irplib_detmon_dark_get_description("detmon_dark",
56  "DETMON",
57  DETMON_DARK_RAW));
59 /*---------------------------------------------------------------------------*/
60 /*
61  @brief Interpret the command line options and execute the data processing
62  @param frameset the frames list
63  @param parlist the parameters list
64  @return 0 if everything is ok
65  */
66 /*---------------------------------------------------------------------------*/
67 
68 static int detmon_dark(cpl_frameset * frameset,
69  const cpl_parameterlist * parlist)
70 {
71  const cpl_error_code error = irplib_detmon_dark(frameset,
72  parlist,
73  DETMON_DARK_RAW,
74  RECIPE_NAME,
75  PACKAGE_TARNAME,
76  "MASTER_DARK",
77  "DSNU_MAP",
78  "DSNU_TABLE",
79  PACKAGE "/" PACKAGE_VERSION,
80  NULL);
81 
82 
83  /* Propagate the error, if any */
84  cpl_ensure_code(!error, error);
85 
86  return CPL_ERROR_NONE;
87 }