UVES Pipeline Reference Manual  5.4.6
uves_mflat_impl.c
1 /* *
2  * This file is part of the ESO UVES Pipeline *
3  * Copyright (C) 2004,2005 European Southern Observatory *
4  * *
5  * This library 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 02110-1301 USA *
18  */
19 
20 /*
21  * $Author: amodigli $
22  * $Date: 2010-04-08 08:06:18 $
23  * $Revision: 1.45 $
24  * $Name: not supported by cvs2svn $
25  */
26 
27 #ifdef HAVE_CONFIG_H
28 # include <config.h>
29 #endif
30 
31 /*----------------------------------------------------------------------------*/
38 /*----------------------------------------------------------------------------*/
39 
40 /*-----------------------------------------------------------------------------
41  Includes
42  -----------------------------------------------------------------------------*/
43 
44 #include <uves_reduce_mflat.h>
45 
46 #include <uves_parameters.h>
47 #include <uves_recipe.h>
48 #include <uves.h>
49 #include <uves_error.h>
50 
51 #include <cpl.h>
52 
53 /*-----------------------------------------------------------------------------
54  Functions prototypes
55  -----------------------------------------------------------------------------*/
56 
57 static int uves_mflat_define_parameters(cpl_parameterlist *parameters);
58 
59 /*-----------------------------------------------------------------------------
60  Recipe standard code
61  -----------------------------------------------------------------------------*/
62 #define cpl_plugin_get_info uves_mflat_get_info
63 UVES_RECIPE_DEFINE(
64  UVES_MFLAT_ID, UVES_MFLAT_DOM, uves_mflat_define_parameters,
65  "Jonas M. Larsen", "cpl@eso.org",
66  "Creates the master flat field frame",
67  uves_mflat_desc);
68 
70 /*-----------------------------------------------------------------------------
71  Functions code
72  ----------------------------------------------------------------------------*/
73 /*----------------------------------------------------------------------------*/
79 /*----------------------------------------------------------------------------*/
80 static int
81 uves_mflat_define_parameters(cpl_parameterlist *parameters)
82 {
83  return uves_mflat_define_parameters_body(parameters,
84  make_str(UVES_MFLAT_ID));
85 }
86 
87 /*----------------------------------------------------------------------------*/
96 /*----------------------------------------------------------------------------*/
97 static void
98 UVES_CONCAT2X(UVES_MFLAT_ID,exe)(cpl_frameset *frames,
99  const cpl_parameterlist *parameters,
100  const char *starttime)
101 {
102  uves_mflat_exe_body(frames, parameters, starttime, make_str(UVES_MFLAT_ID));
103  return;
104 }
105 
int uves_mflat_define_parameters_body(cpl_parameterlist *parameters, const char *recipe_id)
Setup the recipe options.
void uves_mflat_exe_body(cpl_frameset *frames, const cpl_parameterlist *parameters, const char *starttime, const char *recipe_id)
Get the command line options and execute the data reduction.