SINFONI Pipeline Reference Manual  2.6.0
sinfo_north_south_test_config.c
1 /* $Id: sinfo_north_south_test_config.c,v 1.5 2012-03-03 09:50:08 amodigli Exp $
2  *
3  * This file is part of the CPL (Common Pipeline Library)
4  * Copyright (C) 2002 European Southern Observatory
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library 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 GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  */
20 /*
21  * $Author: amodigli $
22  * $Date: 2012-03-03 09:50:08 $
23  * $Revision: 1.5 $
24  * $Name: not supported by cvs2svn $
25  */
26 
27 /****************************************************************
28  * North_South_Test Frames Data Reduction Parameter Initialization *
29  ****************************************************************/
30 
31 #ifdef HAVE_CONFIG_H
32 # include <config.h>
33 #endif
34 #include "sinfo_north_south_test_config.h"
48 void
49 sinfo_north_south_test_config_add(cpl_parameterlist *list)
50 {
51 
52  cpl_parameter *p;
53 
54  if (!list) {
55  return;
56  }
57  /* Clean Mean */
58  p =
59  cpl_parameter_new_range(
60  "sinfoni.north_south_test.low_rejection",
61  CPL_TYPE_DOUBLE,
62  "lower rejection: "
63  "percentage of rejected low intensity pixels "
64  "before averaging",
65  "sinfoni.north_south_test", 0.1, 0.0, 1.0);
66 
67  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, "ns-lo_rej");
68  cpl_parameterlist_append(list, p);
69 
70  p =
71  cpl_parameter_new_range(
72  "sinfoni.north_south_test.high_rejection",
73  CPL_TYPE_DOUBLE,
74  "higher rejection: "
75  "percentage of rejected high intensity pixels "
76  "before averaging",
77  "sinfoni.north_south_test", 0.1, 0.0, 1.0);
78 
79  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, "ns-hi_rej");
80  cpl_parameterlist_append(list, p);
81 
82  p =
83  cpl_parameter_new_value("sinfoni.north_south_test.mask_ind",
84  CPL_TYPE_BOOL,
85  "Mask Index: "
86  "indicator if a bad pixel mask is applied or not",
87  "sinfoni.north_south_test", FALSE);
88 
89  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, "ns-mask_ind");
90  cpl_parameterlist_append(list, p);
91 
92  /* Gauss Convolution */
93  p = cpl_parameter_new_value("sinfoni.north_south_test.gauss_ind",
94  CPL_TYPE_BOOL, "Gauss Index: ", "sinfoni.north_south_test",
95  FALSE);
96 
97  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, "ns-gauss_ind");
98  cpl_parameterlist_append(list, p);
99 
100  p = cpl_parameter_new_value("sinfoni.north_south_test.kernel_half_width",
101  CPL_TYPE_INT, "Kernel Half Width "
102  "kernel half width of the Gaussian "
103  "response function",
104  "sinfoni.north_south_test", 2);
105 
106  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, "ns-khw");
107  cpl_parameterlist_append(list, p);
108 
109  /* North South Test */
110 
111  p = cpl_parameter_new_value("sinfoni.north_south_test.half_width",
112  CPL_TYPE_INT, "Half Width", "sinfoni.north_south_test", 4);
113 
114  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, "ns-hw");
115  cpl_parameterlist_append(list, p);
116 
117  p = cpl_parameter_new_value("sinfoni.north_south_test.fwhm",
118  CPL_TYPE_DOUBLE, "FWHM", "sinfoni.north_south_test", 2.);
119 
120  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, "ns-fwhm");
121  cpl_parameterlist_append(list, p);
122 
123  p = cpl_parameter_new_value("sinfoni.north_south_test.min_diff",
124  CPL_TYPE_DOUBLE, "Minimum of Difference",
125  "sinfoni.north_south_test", 1.);
126 
127  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, "ns-min_diff");
128  cpl_parameterlist_append(list, p);
129 
130  p = cpl_parameter_new_value("sinfoni.north_south_test.dev_tol",
131  CPL_TYPE_DOUBLE, "Dev Tol", "sinfoni.north_south_test",
132  20.);
133 
134  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, "ns-dev_tol");
135  cpl_parameterlist_append(list, p);
136 
137 }