33 #include "sinfo_bp_sky_config.h"
65 p = cpl_parameter_new_value(
"sinfoni.bp_sky.out_filename",
72 cpl_parameter_set_alias(p,CPL_PARAMETER_MODE_CLI,
"out-bp_sky_filename");
73 cpl_parameterlist_append(list, p);
78 p = cpl_parameter_new_value(
"sinfoni.bp_sky.sigma_factor",
80 "Threshold Sigma Factor: "
81 "to remove the column intensity tilt only "
82 "pixels which lie within a defined noise"
83 "limit are used to fit a straight line",
87 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"bp_sky-s_factor");
88 cpl_parameterlist_append(list, p);
91 p = cpl_parameter_new_enum(
"sinfoni.bp_sky.method_index",
93 "Bad pixel Method Index"
94 "1: median of nearest neighbors,"
95 "2: absolute distances check, "
96 "3: mean of nearest spectral neighbors",
101 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"bp_sky-method_ind");
102 cpl_parameterlist_append(list, p);
107 p = cpl_parameter_new_value(
"sinfoni.bp_sky.factor",
110 "if |pixel - sinfo_median| > factor * standard deviation -> "
111 "then the pixel value is replaced by "
112 "the median of the 8 nearest neighbors",
116 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"bp_sky-fct");
117 cpl_parameterlist_append(list, p);
121 p = cpl_parameter_new_value(
"sinfoni.bp_sky.iterations",
123 "Iterations: number of iterations to of median"
124 " filtering to find bad pixel clusters",
128 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"bp_sky-it");
129 cpl_parameterlist_append(list, p);
136 p = cpl_parameter_new_range(
"sinfoni.bp_sky.low_rejection",
139 "percentage of rejected low intensity "
140 "pixels before averaging",
144 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"bp_sky-low_rej");
145 cpl_parameterlist_append(list, p);
152 p = cpl_parameter_new_range(
"sinfoni.bp_sky.high_rejection",
155 "percentage of rejected high intensity "
156 "pixels before averaging",
160 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"bp_sky-upp_rej");
161 cpl_parameterlist_append(list, p);
167 p = cpl_parameter_new_range(
"sinfoni.bp_sky.llx",
170 "to compute image statistics on a rectangular"
171 "zone of the image the coordinates of the "
172 "rectangle are needed:"
173 "lower left x coordinate",
175 LLX,DET_PIX_MIN,DET_PIX_MAX);
177 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"bp_sky-llx");
178 cpl_parameterlist_append(list, p);
185 p = cpl_parameter_new_range(
"sinfoni.bp_sky.lly",
188 "to compute image statistics on a rectangular"
189 "zone of the image the coordinates of the "
190 "rectangle are needed:"
191 "lower left y coordinate",
193 LLY,DET_PIX_MIN,DET_PIX_MAX);
195 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"bp_sky-lly");
196 cpl_parameterlist_append(list, p);
201 p = cpl_parameter_new_range(
"sinfoni.bp_sky.urx",
204 "to compute image statistics on a rectangular"
205 "zone of the image the coordinates of the "
206 "rectangle are needed:"
207 "upper right x coordinate",
209 URX,DET_PIX_MIN,DET_PIX_MAX);
211 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"bp_sky-urx");
212 cpl_parameterlist_append(list, p);
217 p = cpl_parameter_new_range(
"sinfoni.bp_sky.ury",
220 "to compute image statistics on a rectangular"
221 "zone of the image the coordinates of the "
222 "rectangle are needed:"
223 "upper right y coordinate",
225 URY,DET_PIX_MIN,DET_PIX_MAX);
227 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"bp_sky-ury");
228 cpl_parameterlist_append(list, p);
233 p = cpl_parameter_new_value(
"sinfoni.bp_sky.threshold_index",
236 "indicator that indicates if the values "
237 "beyond a threshold deviation from the mean "
238 "are flagged as bad pixels",
242 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"bp_sky-thr-ind");
243 cpl_parameterlist_append(list, p);
248 p = cpl_parameter_new_range(
"sinfoni.bp_sky.mean_factor",
251 "factor to the clean standard deviation to "
252 "define the threshold deviation from the "
257 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"bp_sky-mean-fct");
258 cpl_parameterlist_append(list, p);
262 p = cpl_parameter_new_value(
"sinfoni.bp_sky.min_cut",
264 "the minimum value of real data",
268 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"bp_sky-min_cut");
269 cpl_parameterlist_append(list, p);
272 p = cpl_parameter_new_value(
"sinfoni.bp_sky.max_cut",
274 "the minimum value of real data",
278 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,
"bp_sky-max_cut");
279 cpl_parameterlist_append(list, p);