SINFONI Pipeline Reference Manual  2.6.0
sinfo_img_noise.c
1 /* $Id: sinfo_img_noise.c,v 1.3 2009-09-11 10:00:24 amodigli Exp $
2  *
3  * This file is part of the SINFONI 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  */
20 
21 /*
22  * $Author: amodigli $
23  * $Date: 2009-09-11 10:00:24 $
24  * $Revision: 1.3 $
25  * $Name: not supported by cvs2svn $
26  */
27 
32 #ifdef HAVE_CONFIG_H
33 #include <config.h>
34 #endif
35 
36 /*----------------------------------------------------------------------------
37  Includes
38  ----------------------------------------------------------------------------*/
39 
40 /* std libraries */
41 //#include <strings.h>
42 //#include <string.h>
43 //#include <stdio.h>
44 //#include <sinfo_general_config.h>
45 /* cpl */
46 #include <cpl.h>
47 #include "sinfo_msg.h"
48 #include "sinfo_utils_wrappers.h"
49 #include "sinfo_error.h"
50 //#include "cpl_utils.h"
51 //#include "cpl_hist.h"
52 #include <irplib_detmon.h>
53 /* Define here the DO.CATG keywords */
54 #define SINFO_PERNOISE_RAW "DARK"
55 
56 #define RECIPE_NAME "sinfo_img_noise"
57 
58 
59 /*----------------------------------------------------------------------------
60  Functions prototypes
61  ----------------------------------------------------------------------------*/
62 /*static int sinfo_img_noise(cpl_frameset * frameset,
63  const cpl_parameterlist * parlist);
64  */
65 
66 
67 CPL_RECIPE_DEFINE(sinfo_img_noise, SINFONI_BINARY_VERSION,
68  /* Replace DETMON_BINARY_VERSION with
69  corresponding pipeline macro */
70  irplib_detmon_fill_pernoise_params_default(recipe->parameters,
71  RECIPE_NAME,
72  PACKAGE_TARNAME),
73  /* Replace "sinfoni" with PACKAGE_TARNAME
74  when moved into SINFONI */
75  "Konstantin Mirny", "kmirny@eso.org", "2009",
76  "Periodic Noise Characterisation recipe",
77  irplib_detmon_pernoise_get_description(RECIPE_NAME, PACKAGE_TARNAME,
78  SINFO_PERNOISE_RAW));
79 
80 /*
81 CPL_RECIPE_DEFINE(sinfo_img_noise, SINFONI_BINARY_VERSION,
82  cpl_detmon_fill_pernoise_params_default(
83  recipe->parameters,
84  RECIPE_NAME,
85  PACKAGE_TARNAME),
86  "Konstantin Mirny", "kmirny@eso.org", "2009",
87  "Periodic Noise Characterisation recipe",
88  cpl_detmon_pernoise_get_description(RECIPE_NAME,
89  PACKAGE_TARNAME,
90  SINFO_PERNOISE_RAW));
91  */
92 /*---------------------------------------------------------------------------*/
93 /*
94  @brief Interpret the command line options and execute the data processing
95  @param frameset the frames list
96  @param parlist the parameters list
97  @return 0 if everything is ok
98  */
99 /*---------------------------------------------------------------------------*/
100 
101 static int sinfo_img_noise(cpl_frameset * frameset,
102  const cpl_parameterlist * parlist)
103 {
104  const cpl_error_code error = irplib_detmon_pernoise(frameset,
105  parlist,
106  SINFO_PERNOISE_RAW,
107  RECIPE_NAME,
108  PACKAGE_TARNAME,
109  "FREQ_TABLE",
110  PACKAGE "/" PACKAGE_VERSION,
111  NULL);
112 
113  /* Propagate the error, if any */
114  cpl_ensure_code(!error, error);
115 
116  return CPL_ERROR_NONE;
117 }
118