00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 #ifdef HAVE_CONFIG_H
00032 # include <config.h>
00033 #endif
00034
00035 #include "sinfo_prepare_stacked_frames_config.h"
00049 void
00050 sinfo_prepare_stacked_frames_config_add(cpl_parameterlist *list)
00051 {
00052
00053 cpl_parameter *p;
00054
00055 if (!list) {
00056 return;
00057 }
00058
00059
00060
00061
00062
00063
00064
00065
00066 p = cpl_parameter_new_range("sinfoni.stacked.low_rejection",
00067 CPL_TYPE_DOUBLE,
00068 "lower rejection",
00069 "sinfoni.stacked",
00070 0.1,0.0,1.0);
00071
00072 cpl_parameter_set_alias(p,CPL_PARAMETER_MODE_CLI, "stack-lo_rej");
00073 cpl_parameterlist_append(list, p);
00074
00075
00076
00077 p = cpl_parameter_new_range("sinfoni.stacked.high_rejection",
00078 CPL_TYPE_DOUBLE,
00079 "higher rejection",
00080 "sinfoni.stacked",
00081 0.1,0.0,1.0);
00082
00083 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"stack-hi_rej");
00084 cpl_parameterlist_append(list, p);
00085
00086
00087
00088
00089
00090
00091
00092
00093 p = cpl_parameter_new_value("sinfoni.stacked.flat_index",
00094 CPL_TYPE_BOOL,
00095 "Flat Index: ",
00096 "sinfoni.stacked",
00097 TRUE);
00098
00099 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"stack-flat_ind");
00100 cpl_parameterlist_append(list, p);
00101
00102
00103
00104
00105 p = cpl_parameter_new_enum("sinfoni.stacked.mflat_norm_smooth",
00106 CPL_TYPE_INT,
00107 "Normalize master flat to its smoothed value "
00108 "(to remove lamp response curve). "
00109 "0 (no smooth). 1 (apply fft filter along y)."
00110 "2 (apply running median filter along y).",
00111 "sinfoni.stacked",
00112 0,3,0,1,2);
00113
00114 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"stack-mflat_norm_smooth");
00115 cpl_parameterlist_append(list, p);
00116
00117
00118
00119
00120 p = cpl_parameter_new_range("sinfoni.stacked.mflat_smooth_rad",
00121 CPL_TYPE_INT,
00122 "Normalization smoothing radii ",
00123 "sinfoni.stacked",
00124 16,3,2048);
00125
00126 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"stack-mflat_smooth_rad");
00127 cpl_parameterlist_append(list, p);
00128
00129
00130
00131
00132
00133
00134
00135
00136 p = cpl_parameter_new_enum("sinfoni.stacked.mask_index",
00137 CPL_TYPE_INT,
00138 "BP Mask Interpolation Switch: "
00139 "indicates if the bad pixel mask should be "
00140 "applied (1) or not (0) ",
00141
00142
00143
00144
00145
00146 "sinfoni.stacked",
00147 1,
00148 2,0,1);
00149
00150 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"stack-mask_ind");
00151 cpl_parameterlist_append(list, p);
00152
00153
00154
00155 p = cpl_parameter_new_value("sinfoni.stacked.ind_index",
00156 CPL_TYPE_BOOL,
00157 "indicates if the bad pixels should be "
00158 "indicated (yes) or interpolated (no)",
00159 "sinfoni.stacked",
00160 FALSE);
00161
00162 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"stack-ind_ind");
00163 cpl_parameterlist_append(list, p);
00164
00165
00166
00167 p = cpl_parameter_new_value("sinfoni.stacked.mask_rad",
00168 CPL_TYPE_INT,
00169 "Max distance bad-good pix: ",
00170 "sinfoni.stacked",
00171 4);
00172
00173 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"stack-mask_rad");
00174 cpl_parameterlist_append(list, p);
00175
00176
00177
00178
00179
00180
00181
00182
00183
00184
00185
00186
00187
00188
00189
00190
00191
00192
00193
00194
00195
00196
00197
00198
00199
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211
00212
00213
00214
00215
00216
00217
00218
00219
00220
00221
00222
00223
00224
00225
00226
00227
00228
00229
00230
00231
00232
00233
00234
00235
00236
00237
00238 p = cpl_parameter_new_value("sinfoni.stacked.gauss_index",
00239 CPL_TYPE_BOOL,
00240 "Gaussian Convolution Switch: ",
00241 "sinfoni.stacked",
00242 FALSE);
00243
00244 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"stack-gauss_ind");
00245 cpl_parameterlist_append(list, p);
00246
00247
00248 p = cpl_parameter_new_value("sinfoni.stacked.kernel_half_width",
00249 CPL_TYPE_INT,
00250 "Kernel Half Width",
00251 "sinfoni.stacked",
00252 2);
00253
00254 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"stack-khw");
00255 cpl_parameterlist_append(list, p);
00256
00257
00258
00259
00260
00261
00262
00263
00264
00265
00266
00267
00268
00269
00270
00271
00272
00273
00274
00275
00276
00277
00278
00279
00280
00281
00282
00283
00284
00285
00286
00287
00288
00289
00290
00291
00292
00293
00294
00295
00296
00297
00298
00299
00300
00301
00302 p = cpl_parameter_new_value("sinfoni.stacked.warpfix_ind",
00303 CPL_TYPE_BOOL,
00304 "Warp Fix Index: ",
00305 "sinfoni.stacked",
00306 TRUE);
00307
00308 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"stack-warpfix_ind");
00309 cpl_parameterlist_append(list, p);
00310
00311
00312 p = cpl_parameter_new_enum("sinfoni.stacked.warpfix_kernel",
00313 CPL_TYPE_STRING,
00314 "Warpfix kernel: ",
00315 "sinfoni.stacked",
00316 "tanh",
00317 6,"tanh","sinc","sinc2",
00318 "lanczos","hamming","hann");
00319
00320 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"stack-warpfix_kernel");
00321 cpl_parameterlist_append(list, p);
00322
00323
00324 p = cpl_parameter_new_value("sinfoni.stacked.qc_thresh_min",
00325 CPL_TYPE_INT,
00326 "qc_thresh_min",
00327 "sinfoni.stack",
00328 0);
00329
00330 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"stack-qc_thresh_min");
00331 cpl_parameterlist_append(list, p);
00332
00333
00334 p = cpl_parameter_new_value("sinfoni.stacked.qc_thresh_max",
00335 CPL_TYPE_INT,
00336 "qc_thresh_max",
00337 "sinfoni.stack",
00338 49000);
00339
00340 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"stack-qc_thresh_max");
00341 cpl_parameterlist_append(list, p);
00342
00343
00344
00345
00346 p = cpl_parameter_new_value("sinfoni.stacked.sub_raw_sky",
00347 CPL_TYPE_BOOL,
00348 "indicates if the raw sky frame should be "
00349 "subtracted (TRUE) or (FALSE)",
00350 "sinfoni.stacked",
00351 TRUE);
00352
00353 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"stack-sub_raw_sky");
00354 cpl_parameterlist_append(list, p);
00355
00356 }