00001 /* $Id: sinfo_img_noise.c,v 1.3 2009/09/11 10:00:24 amodigli Exp $ 00002 * 00003 * This file is part of the SINFONI 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 */ 00020 00021 /* 00022 * $Author: amodigli $ 00023 * $Date: 2009/09/11 10:00:24 $ 00024 * $Revision: 1.3 $ 00025 * $Name: sinfo-2_2_5 $ 00026 * $Log: sinfo_img_noise.c,v $ 00027 * Revision 1.3 2009/09/11 10:00:24 amodigli 00028 * put back include of irplib_detmon.h 00029 * 00030 * Revision 1.2 2009/09/11 09:25:29 kmirny 00031 * changing img_noise from cpl to irplib 00032 * 00033 * Revision 1.1 2009/09/09 14:17:36 kmirny 00034 * Adding img_noise recipe based on detmon 00035 * 00036 */ 00037 00042 #ifdef HAVE_CONFIG_H 00043 #include <config.h> 00044 #endif 00045 00046 /*---------------------------------------------------------------------------- 00047 Includes 00048 ----------------------------------------------------------------------------*/ 00049 00050 /* std libraries */ 00051 //#include <strings.h> 00052 //#include <string.h> 00053 //#include <stdio.h> 00054 //#include <sinfo_general_config.h> 00055 /* cpl */ 00056 #include <cpl.h> 00057 #include "sinfo_msg.h" 00058 #include "sinfo_utils_wrappers.h" 00059 #include "sinfo_error.h" 00060 //#include "cpl_utils.h" 00061 //#include "cpl_hist.h" 00062 #include <irplib_detmon.h> 00063 /* Define here the DO.CATG keywords */ 00064 #define SINFO_PERNOISE_RAW "DARK" 00065 00066 #define RECIPE_NAME "sinfo_img_noise" 00067 00068 00069 /*---------------------------------------------------------------------------- 00070 Functions prototypes 00071 ----------------------------------------------------------------------------*/ 00072 /*static int sinfo_img_noise(cpl_frameset * frameset, 00073 const cpl_parameterlist * parlist); 00074 */ 00075 00076 00077 CPL_RECIPE_DEFINE(sinfo_img_noise, SINFONI_BINARY_VERSION, 00078 /* Replace DETMON_BINARY_VERSION with 00079 corresponding pipeline macro */ 00080 irplib_detmon_fill_pernoise_params_default(recipe->parameters, 00081 RECIPE_NAME, 00082 PACKAGE_TARNAME), 00083 /* Replace "sinfoni" with PACKAGE_TARNAME 00084 when moved into SINFONI */ 00085 "Konstantin Mirny", "kmirny@eso.org", "2009", 00086 "Periodic Noise Characterisation recipe", 00087 irplib_detmon_pernoise_get_description(RECIPE_NAME, PACKAGE_TARNAME, 00088 SINFO_PERNOISE_RAW)); 00089 00090 /* 00091 CPL_RECIPE_DEFINE(sinfo_img_noise, SINFONI_BINARY_VERSION, 00092 cpl_detmon_fill_pernoise_params_default( 00093 recipe->parameters, 00094 RECIPE_NAME, 00095 PACKAGE_TARNAME), 00096 "Konstantin Mirny", "kmirny@eso.org", "2009", 00097 "Periodic Noise Characterisation recipe", 00098 cpl_detmon_pernoise_get_description(RECIPE_NAME, 00099 PACKAGE_TARNAME, 00100 SINFO_PERNOISE_RAW)); 00101 */ 00102 /*---------------------------------------------------------------------------*/ 00103 /* 00104 @brief Interpret the command line options and execute the data processing 00105 @param frameset the frames list 00106 @param parlist the parameters list 00107 @return 0 if everything is ok 00108 */ 00109 /*---------------------------------------------------------------------------*/ 00110 00111 static int sinfo_img_noise(cpl_frameset * frameset, 00112 const cpl_parameterlist * parlist) 00113 { 00114 const cpl_error_code error = irplib_detmon_pernoise(frameset, 00115 parlist, 00116 SINFO_PERNOISE_RAW, 00117 RECIPE_NAME, 00118 PACKAGE_TARNAME, 00119 "FREQ_TABLE", 00120 PACKAGE "/" PACKAGE_VERSION, 00121 NULL); 00122 00123 /* Propagate the error, if any */ 00124 cpl_ensure_code(!error, error); 00125 00126 return CPL_ERROR_NONE; 00127 } 00128