IIINSTRUMENT Pipeline Reference Manual 6.2.5
isaac_img_noise.c
1/* $Id: isaac_img_noise.c,v 1.4 2013-03-12 08:06:48 llundin Exp $
2 *
3 * This file is part of the ISAAC 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., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
19 */
20
21/*
22 * $Author: llundin $
23 * $Date: 2013-03-12 08:06:48 $
24 * $Revision: 1.4 $
25 * $Name: not supported by cvs2svn $
26 */
27#ifdef HAVE_CONFIG_H
28#include <config.h>
29#endif
30
31/*----------------------------------------------------------------------------
32 Includes
33 ----------------------------------------------------------------------------*/
34
35#include <cpl.h>
36
37#include "irplib_detmon.h"
38#include "irplib_plugin.h"
39
40/* Define here the DO.CATG keywords */
41#define ISAAC_PERNOISE_RAW "RAW"
42
43#define RECIPE_NAME "isaac_img_noise"
44
45/*----------------------------------------------------------------------------
46 Functions prototypes
47 ----------------------------------------------------------------------------*/
48
49cpl_recipe_define(isaac_img_noise, ISAAC_BINARY_VERSION,
50 "Lars Lundin", PACKAGE_BUGREPORT, "2008",
51 "Periodic Noise Characterisation recipe",
52 irplib_detmon_pernoise_get_description(RECIPE_NAME,
53 PACKAGE_TARNAME,
54 ISAAC_PERNOISE_RAW));
55
56/*-----------------------------------------------------------------------------
57 Functions code
58 -----------------------------------------------------------------------------*/
59
60/*----------------------------------------------------------------------------*/
68/*----------------------------------------------------------------------------*/
69static
70cpl_error_code isaac_img_noise_fill_parameterlist(cpl_parameterlist * self) {
71
72 return irplib_detmon_fill_pernoise_params_default(self, RECIPE_NAME,
73 PACKAGE_TARNAME)
74 ? cpl_error_set_where(cpl_func) : CPL_ERROR_NONE;
75}
76
77/*---------------------------------------------------------------------------*/
78/*
79 @brief Interpret the command line options and execute the data processing
80 @param frameset the frames list
81 @param parlist the parameters list
82 @return 0 if everything is ok
83 */
84/*---------------------------------------------------------------------------*/
85
86static int isaac_img_noise(cpl_frameset * frameset,
87 const cpl_parameterlist * parlist)
88{
89 return irplib_detmon_pernoise(frameset, parlist, ISAAC_PERNOISE_RAW,
90 RECIPE_NAME, PACKAGE_TARNAME, "FREQ_TABLE",
91 PACKAGE "/" PACKAGE_VERSION, NULL)
92 ? cpl_error_set_where(cpl_func) : CPL_ERROR_NONE;
93}