SINFONI Pipeline Reference Manual  2.6.0
sinfo_dark_config.c
1 /* $Id: sinfo_dark_config.c,v 1.5 2012-03-02 08:42:20 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-02 08:42:20 $
23  * $Revision: 1.5 $
24  * $Name: not supported by cvs2svn $
25  */
26 
27 #ifdef HAVE_CONFIG_H
28 # include <config.h>
29 #endif
30 /****************************************************************
31  * Dark Frames Data Reduction Parameter Initialization *
32  ****************************************************************/
33 #include "sinfo_dark_config.h"
52 /* Dark Frame Data Reduction parameters */
53 
54 
55 void
56 sinfo_dark_config_add(cpl_parameterlist *list)
57 {
58 
59  cpl_parameter *p;
60 
61  if (!list) {
62  return;
63  }
64 
65  /* float
66  threshold used in the clean mean percentage of rejection used to reject
67  low and high frame */
68  /* percentage of extreme pixel value to reject when calculating the mean
69  and stdev */
70  p = cpl_parameter_new_range("sinfoni.dark.low_rejection",
71  CPL_TYPE_DOUBLE,
72  "lower rejection",
73  "sinfoni.dark",
74  0.1,0.0,1.0);
75 
76  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-lo_rej");
77  cpl_parameterlist_append(list, p);
78 
79  /* float
80  threshold used in the clean mean percentage of rejection used to reject
81  low and high frame */
82  /* percentage of extreme pixel value to reject when calculating the mean
83  and stdev */
84 
85 
86  /* QC LOG */
87  /* RON */
88 
89  p = cpl_parameter_new_range("sinfoni.dark.high_rejection",
90  CPL_TYPE_DOUBLE,
91  "higher rejection",
92  "sinfoni.dark",
93  0.1,0.0,1.0);
94 
95  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-hi_rej");
96  cpl_parameterlist_append(list, p);
97 
98 
99 
100  p = cpl_parameter_new_range("sinfoni.dark.qc_ron_xmin",
101  CPL_TYPE_INT,
102  "qc_ron_xmin",
103  "sinfoni.dark",
104  1,DET_PIX_MIN,DET_PIX_MAX);
105 
106  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-qc_ron_xmin");
107  cpl_parameterlist_append(list, p);
108 
109 
110  p = cpl_parameter_new_range("sinfoni.dark.qc_ron_xmax",
111  CPL_TYPE_INT,
112  "qc_ron_xmax",
113  "sinfoni.dark",
114  2048,DET_PIX_MIN,DET_PIX_MAX);
115 
116  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-qc_ron_xmax");
117  cpl_parameterlist_append(list, p);
118 
119  p = cpl_parameter_new_range("sinfoni.dark.qc_ron_ymin",
120  CPL_TYPE_INT,
121  "qc_ron_ymin",
122  "sinfoni.dark",
123  1,DET_PIX_MIN,DET_PIX_MAX);
124 
125  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-qc_ron_ymin");
126  cpl_parameterlist_append(list, p);
127 
128 
129  p = cpl_parameter_new_range("sinfoni.dark.qc_ron_ymax",
130  CPL_TYPE_INT,
131  "qc_ron_ymax",
132  "sinfoni.dark",
133  2048,DET_PIX_MIN,DET_PIX_MAX);
134 
135  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-qc_ron_ymax");
136  cpl_parameterlist_append(list, p);
137 
138  p = cpl_parameter_new_value("sinfoni.dark.qc_ron_hsize",
139  CPL_TYPE_INT,
140  "qc_ron_hsize",
141  "sinfoni.dark",
142  4);
143 
144  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-qc_ron_hsize");
145  cpl_parameterlist_append(list, p);
146 
147  p = cpl_parameter_new_value("sinfoni.dark.qc_ron_nsamp",
148  CPL_TYPE_INT,
149  "qc_ron_nsamp",
150  "sinfoni.dark",
151  100);
152 
153  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-qc_ron_nsamp");
154  cpl_parameterlist_append(list, p);
155 
156  /* FPN */
157 
158 
159  p = cpl_parameter_new_range("sinfoni.dark.qc_fpn_xmin",
160  CPL_TYPE_INT,
161  "qc_fpn_xmin",
162  "sinfoni.dark",
163  1,DET_PIX_MIN,DET_PIX_MAX);
164 
165  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-qc_fpn_xmin");
166  cpl_parameterlist_append(list, p);
167 
168 
169  p = cpl_parameter_new_range("sinfoni.dark.qc_fpn_xmax",
170  CPL_TYPE_INT,
171  "qc_fpn_xmax",
172  "sinfoni.dark",
173  2047,DET_PIX_MIN,DET_PIX_MAX);
174 
175  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-qc_fpn_xmax");
176  cpl_parameterlist_append(list, p);
177 
178  p = cpl_parameter_new_range("sinfoni.dark.qc_fpn_ymin",
179  CPL_TYPE_INT,
180  "qc_fpn_ymin",
181  "sinfoni.dark",
182  1,DET_PIX_MIN,DET_PIX_MAX);
183 
184  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-qc_fpn_ymin");
185  cpl_parameterlist_append(list, p);
186 
187 
188  p = cpl_parameter_new_range("sinfoni.dark.qc_fpn_ymax",
189  CPL_TYPE_INT,
190  "qc_fpn_ymax",
191  "sinfoni.dark",
192  2047,DET_PIX_MIN,DET_PIX_MAX);
193 
194  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-qc_fpn_ymax");
195  cpl_parameterlist_append(list, p);
196 
197 
198 
199  p = cpl_parameter_new_value("sinfoni.dark.qc_fpn_hsize",
200  CPL_TYPE_INT,
201  "qc_fpn_hsize",
202  "sinfoni.dark",
203  2);
204 
205  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-qc_fpn_hsize");
206  cpl_parameterlist_append(list, p);
207 
208  p = cpl_parameter_new_value("sinfoni.dark.qc_fpn_nsamp",
209  CPL_TYPE_INT,
210  "qc_fpn_nsamp",
211  "sinfoni.dark",
212  1000);
213 
214  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-qc_fpn_nsamp");
215  cpl_parameterlist_append(list, p);
216 
217 }