uves_mflat_impl.c

00001 /*                                                                              *
00002  *   This file is part of the ESO UVES Pipeline                                 *
00003  *   Copyright (C) 2004,2005 European Southern Observatory                      *
00004  *                                                                              *
00005  *   This library is free software; you can redistribute it and/or modify       *
00006  *   it under the terms of the GNU General Public License as published by       *
00007  *   the Free Software Foundation; either version 2 of the License, or          *
00008  *   (at your option) any later version.                                        *
00009  *                                                                              *
00010  *   This program is distributed in the hope that it will be useful,            *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *
00013  *   GNU General Public License for more details.                               *
00014  *                                                                              *
00015  *   You should have received a copy of the GNU General Public License          *
00016  *   along with this program; if not, write to the Free Software                *
00017  *   Foundation, 51 Franklin St, Fifth Floor, Boston MA 02110-1301 USA          *
00018  */
00019  
00020 /*
00021  * $Author: amodigli $
00022  * $Date: 2010/04/08 08:06:18 $
00023  * $Revision: 1.45 $
00024  * $Name: uves-5_0_0 $
00025  */
00026 
00027 #ifdef HAVE_CONFIG_H
00028 #  include <config.h>
00029 #endif
00030 
00031 /*----------------------------------------------------------------------------*/
00038 /*----------------------------------------------------------------------------*/
00039 
00040 /*-----------------------------------------------------------------------------
00041                                 Includes
00042  -----------------------------------------------------------------------------*/
00043 
00044 #include <uves_reduce_mflat.h>
00045 
00046 #include <uves_parameters.h>
00047 #include <uves_recipe.h>
00048 #include <uves.h>
00049 #include <uves_error.h>
00050 
00051 #include <cpl.h>
00052 
00053 /*-----------------------------------------------------------------------------
00054                             Functions prototypes
00055  -----------------------------------------------------------------------------*/
00056 
00057 static int uves_mflat_define_parameters(cpl_parameterlist *parameters);
00058 
00059 /*-----------------------------------------------------------------------------
00060                             Recipe standard code
00061  -----------------------------------------------------------------------------*/
00062 #define cpl_plugin_get_info uves_mflat_get_info
00063 UVES_RECIPE_DEFINE(
00064     UVES_MFLAT_ID, UVES_MFLAT_DOM, uves_mflat_define_parameters,
00065     "Jonas M. Larsen", "cpl@eso.org",
00066     "Creates the master flat field frame",
00067     uves_mflat_desc);
00068 
00070 /*-----------------------------------------------------------------------------
00071                               Functions code
00072   ----------------------------------------------------------------------------*/
00073 /*----------------------------------------------------------------------------*/
00079 /*----------------------------------------------------------------------------*/
00080 static int
00081 uves_mflat_define_parameters(cpl_parameterlist *parameters)
00082 {
00083     return uves_mflat_define_parameters_body(parameters, 
00084                          make_str(UVES_MFLAT_ID));
00085 }
00086 
00087 /*----------------------------------------------------------------------------*/
00096 /*----------------------------------------------------------------------------*/
00097 static void
00098 UVES_CONCAT2X(UVES_MFLAT_ID,exe)(cpl_frameset *frames, 
00099                    const cpl_parameterlist *parameters,
00100                    const char *starttime)
00101 {
00102     uves_mflat_exe_body(frames, parameters, starttime, make_str(UVES_MFLAT_ID));
00103     return;
00104 }
00105 

Generated on 9 Mar 2012 for UVES Pipeline Reference Manual by  doxygen 1.6.1