isaac_img_noise.c

00001 /* $Id: isaac_img_noise.c,v 1.4 2013-03-12 08:06:48 llundin Exp $
00002  *
00003  * This file is part of the ISAAC Pipeline
00004  * Copyright (C) 2002,2003 European Southern Observatory
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA
00019  */
00020 
00021 /*
00022  * $Author: llundin $
00023  * $Date: 2013-03-12 08:06:48 $
00024  * $Revision: 1.4 $
00025  * $Name: not supported by cvs2svn $
00026  */
00027 #ifdef HAVE_CONFIG_H
00028 #include <config.h>
00029 #endif
00030 
00031 /*----------------------------------------------------------------------------
00032                              Includes
00033  ----------------------------------------------------------------------------*/
00034 
00035 #include <cpl.h>
00036 
00037 #include "irplib_detmon.h"
00038 #include "irplib_plugin.h"
00039 
00040 /* Define here the DO.CATG keywords */
00041 #define ISAAC_PERNOISE_RAW                    "RAW"
00042 
00043 #define RECIPE_NAME "isaac_img_noise"
00044 
00045 /*----------------------------------------------------------------------------
00046                 Functions prototypes
00047  ----------------------------------------------------------------------------*/
00048 
00049 cpl_recipe_define(isaac_img_noise, ISAAC_BINARY_VERSION,
00050                   "Lars Lundin", PACKAGE_BUGREPORT, "2008", 
00051                   "Periodic Noise Characterisation recipe",
00052                   irplib_detmon_pernoise_get_description(RECIPE_NAME,
00053                                                          PACKAGE_TARNAME,
00054                                                          ISAAC_PERNOISE_RAW));
00055 
00056 /*-----------------------------------------------------------------------------
00057                                 Functions code
00058  -----------------------------------------------------------------------------*/
00059 
00060 /*----------------------------------------------------------------------------*/
00068 /*----------------------------------------------------------------------------*/
00069 static
00070 cpl_error_code isaac_img_noise_fill_parameterlist(cpl_parameterlist * self) {
00071 
00072     return irplib_detmon_fill_pernoise_params_default(self, RECIPE_NAME,
00073                                                       PACKAGE_TARNAME)
00074         ? cpl_error_set_where(cpl_func) : CPL_ERROR_NONE;
00075 }
00076 
00077 /*---------------------------------------------------------------------------*/
00078 /*
00079   @brief    Interpret the command line options and execute the data processing
00080   @param    frameset    the frames list
00081   @param    parlist     the parameters list
00082   @return   0 if everything is ok
00083  */
00084 /*---------------------------------------------------------------------------*/
00085 
00086 static int isaac_img_noise(cpl_frameset            * frameset,
00087                const cpl_parameterlist * parlist)
00088 {
00089     return irplib_detmon_pernoise(frameset, parlist, ISAAC_PERNOISE_RAW,
00090                                   RECIPE_NAME, PACKAGE_TARNAME, "FREQ_TABLE",
00091                                   PACKAGE "/" PACKAGE_VERSION, NULL)
00092         ? cpl_error_set_where(cpl_func) : CPL_ERROR_NONE;
00093 }
Generated on Mon Feb 17 15:04:43 2014 for ISAAC Pipeline Reference Manual by  doxygen 1.6.3