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_wavecal_config.h"
00045 void
00046 sinfo_wavecal_config_add(cpl_parameterlist *list)
00047 {
00048
00049 cpl_parameter *p;
00050
00051 if (!list) {
00052 return;
00053 }
00054
00055 p = cpl_parameter_new_value("sinfoni.wavecal.slitpos_boostrap",
00056 CPL_TYPE_BOOL,
00057 "Switch to get a new slitpos without a reference: ",
00058 "sinfoni.wavecal",
00059 FALSE);
00060
00061 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-slitpos_bootstrap");
00062 cpl_parameterlist_append(list, p);
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079 p = cpl_parameter_new_value("sinfoni.wavecal.calib_indicator",
00080 CPL_TYPE_BOOL,
00081 "Calib Indicator: "
00082 "FALSE: if the dispersion relation is already "
00083 "known, the routine can jump to the sinfo_waveMap "
00084 "section "
00085 "TRUE: if the dispersion relation "
00086 "must first be determined",
00087 "sinfoni.wavecal",
00088 TRUE);
00089
00090 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-calib_indicator");
00091 cpl_parameterlist_append(list, p);
00092
00093
00094
00095 p = cpl_parameter_new_value("sinfoni.wavecal.min_diff",
00096 CPL_TYPE_DOUBLE,
00097 "Minimum Of Difference: "
00098 "minimum difference of mean and sinfo_median column "
00099 "intensity to carry out the cross sinfo_correlation",
00100 "sinfoni.wavecal",
00101 1.);
00102
00103 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-min_diff");
00104 cpl_parameterlist_append(list, p);
00105
00106
00107 p = cpl_parameter_new_value("sinfoni.wavecal.half_width",
00108 CPL_TYPE_INT,
00109 "Half Width: "
00110 "half width of a box within which the line "
00111 "must be placed",
00112 "sinfoni.wavecal",
00113 7);
00114
00115 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-hw");
00116 cpl_parameterlist_append(list, p);
00117
00118
00119 p = cpl_parameter_new_value("sinfoni.wavecal.sigma",
00120 CPL_TYPE_DOUBLE,
00121 "Sigma: sigma of Gaussian which is convolved "
00122 "with the artificial spectrum generated using "
00123 "the line list",
00124 "sinfoni.wavecal",
00125 2.);
00126
00127 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-sigma");
00128 cpl_parameterlist_append(list, p);
00129
00130
00131
00132 p = cpl_parameter_new_value("sinfoni.wavecal.fwhm",
00133 CPL_TYPE_DOUBLE,
00134 "FWHM: initial guess value for the fwhm of "
00135 "the Gaussian used for the line fit",
00136 "sinfoni.wavecal",
00137 2.83);
00138
00139 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-fwhm");
00140 cpl_parameterlist_append(list, p);
00141
00142
00143 p = cpl_parameter_new_value("sinfoni.wavecal.min_amplitude",
00144 CPL_TYPE_DOUBLE,
00145 "Minimum Of Amplitude: "
00146 "of the Gaussian to do the fit",
00147 "sinfoni.wavecal",
00148 5.);
00149
00150 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-min_amplitude");
00151 cpl_parameterlist_append(list, p);
00152
00153
00154 p = cpl_parameter_new_value("sinfoni.wavecal.max_residual",
00155 CPL_TYPE_DOUBLE,
00156 "Maximum Residuals value: "
00157 "beyond this value the fit is rejected",
00158 "sinfoni.wavecal",
00159 0.5);
00160
00161 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-max_residual");
00162 cpl_parameterlist_append(list, p);
00163
00164
00165 p = cpl_parameter_new_value("sinfoni.wavecal.n_a_coefficients",
00166 CPL_TYPE_INT,
00167 "Number of A coefficients: number of "
00168 "polynomial coefficients for the "
00169 "dispersion relation",
00170 "sinfoni.wavecal",
00171 4);
00172
00173 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-n_a_coeffs");
00174 cpl_parameterlist_append(list, p);
00175
00176
00177
00178 p = cpl_parameter_new_value("sinfoni.wavecal.n_b_coefficients",
00179 CPL_TYPE_INT,
00180 "Number of B coefficients: "
00181 "number of polynomial coefficients for the "
00182 "polynomial fit of the dispersion coefficients",
00183 "sinfoni.wavecal",
00184 2);
00185
00186 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-n_b_coeffs");
00187 cpl_parameterlist_append(list, p);
00188
00189
00190 p = cpl_parameter_new_value("sinfoni.wavecal.sigma_factor",
00191 CPL_TYPE_DOUBLE,
00192 "Sigma Factor: "
00193 "Factor of the standard deviation of the "
00194 "polynomial coefficients of the dispersion "
00195 "relation beyond which the coefficients are "
00196 "not used for the fit",
00197 "sinfoni.wavecal",
00198 1.5);
00199
00200 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-sigma_factor");
00201 cpl_parameterlist_append(list, p);
00202
00203
00204
00205 p = cpl_parameter_new_value("sinfoni.wavecal.write_coeffs_ind",
00206 CPL_TYPE_BOOL,
00207 "Write Coefficients Index: "
00208 "indicates if the coefficients should "
00209 "be written into a file or not",
00210 "sinfoni.wavecal",
00211 TRUE);
00212
00213 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-wcoeff_ind");
00214 cpl_parameterlist_append(list, p);
00215
00216
00217 p = cpl_parameter_new_value("sinfoni.wavecal.write_par_ind",
00218 CPL_TYPE_BOOL,
00219 "Write Parameter Index: "
00220 "indicates if the fit parameters should "
00221 "be written into a file or not ",
00222 "sinfoni.wavecal",
00223 TRUE);
00224
00225 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-par_ind");
00226 cpl_parameterlist_append(list, p);
00227
00228
00229
00230
00231
00232
00233
00234
00235
00236
00237
00238
00239
00240
00241 p = cpl_parameter_new_value("sinfoni.wavecal.pixel_dist",
00242 CPL_TYPE_INT,
00243 "Minimal Slitlets's Distance in spectral direction",
00244 "sinfoni.wavecal",
00245 15);
00246
00247 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-pixel_dist");
00248 cpl_parameterlist_append(list, p);
00249
00250
00251
00252
00253
00254
00255
00256 p = cpl_parameter_new_value("sinfoni.wavecal.pixel_tol",
00257 CPL_TYPE_DOUBLE,
00258 "Pixel Tolerance: allowed pixel position "
00259 "tolerance between estimated and fitted "
00260 "line position",
00261 "sinfoni.wavecal",
00262 5.0);
00263
00264 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-pixel_tol");
00265 cpl_parameterlist_append(list, p);
00266
00267
00268
00269 p = cpl_parameter_new_value("sinfoni.wavecal.wave_map_ind",
00270 CPL_TYPE_BOOL,
00271 "Wavelength Map Indicator: "
00272 "indicates if the wavelength calibration map "
00273 "should be generated (TRUE) or not (FALSE)",
00274 "sinfoni.wavecal",
00275 FALSE);
00276
00277 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-wave_map_ind");
00278 cpl_parameterlist_append(list, p);
00279
00280
00281 p = cpl_parameter_new_value("sinfoni.wavecal.mag_factor",
00282 CPL_TYPE_INT,
00283 "Magnificator Factor: "
00284 "magnifying factor for the number of pixels "
00285 "in the columns needed for FFT",
00286 "sinfoni.wavecal",
00287 8);
00288
00289 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-mag_factor");
00290 cpl_parameterlist_append(list, p);
00291
00292
00293
00294 p = cpl_parameter_new_value("sinfoni.wavecal.slit_pos_indicator",
00295 CPL_TYPE_BOOL,
00296 "Slit Position Indicator: "
00297 "indicates if the fits of the slitlet "
00298 "edge positions should be carried "
00299 "through or not",
00300 "sinfoni.wavecal",
00301 TRUE);
00302
00303 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-slit_pos_ind");
00304 cpl_parameterlist_append(list, p);
00305
00306
00307 p = cpl_parameter_new_value("sinfoni.wavecal.fit_boltz_indicator",
00308 CPL_TYPE_BOOL ,
00309 "Fit Boltzmann Indicator: "
00310 "indicates if the fits of the slitlet edge "
00311 "positions is carried trough by using a "
00312 "Boltzmann function as model function",
00313 "sinfoni.wavecal",
00314 TRUE);
00315
00316 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-fit_boltz_ind");
00317 cpl_parameterlist_append(list, p);
00318
00319
00320
00321 p = cpl_parameter_new_value("sinfoni.wavecal.fit_edge_indicator",
00322 CPL_TYPE_BOOL,
00323 "Fit Edge Indicator: "
00324 "indicates if the fits of the slitlet edge "
00325 "positions is carried through by using a "
00326 "simple edge function as model function",
00327 "sinfoni.wavecal",
00328 FALSE);
00329
00330 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-fit_edge_ind");
00331 cpl_parameterlist_append(list, p);
00332
00333
00334
00335
00336 p = cpl_parameter_new_value("sinfoni.wavecal.estimate_indicator",
00337 CPL_TYPE_BOOL,
00338 "Estimate Indicator: "
00339 "indicates if the fits of the slitlet edge "
00340 "positions is carried through by using a list "
00341 "of estimated guess positions in a file (TRUE)"
00342 "or if the initial positions are calculated "
00343 "automatically (FALSE). The estimation case "
00344 "is more stable",
00345 "sinfoni.wavecal",
00346 FALSE);
00347
00348 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-estimate_ind");
00349 cpl_parameterlist_append(list, p);
00350
00351
00352
00353
00354 p = cpl_parameter_new_value("sinfoni.wavecal.box_length",
00355 CPL_TYPE_INT,
00356 "Box Length: "
00357 "pixel length of the row box within "
00358 "which the fit is carried out",
00359 "sinfoni.wavecal",
00360 32);
00361
00362 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-box_len");
00363 cpl_parameterlist_append(list, p);
00364
00365
00366 p = cpl_parameter_new_value("sinfoni.wavecal.y_box",
00367 CPL_TYPE_DOUBLE,
00368 "Y Box: half width of a small box in "
00369 "spectral direction within which the "
00370 "maximal intensity pixel is searched",
00371 "sinfoni.wavecal",
00372 5.);
00373
00374 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-y_box");
00375 cpl_parameterlist_append(list, p);
00376
00377
00378
00379 p = cpl_parameter_new_value("sinfoni.wavecal.diff_tol",
00380 CPL_TYPE_DOUBLE,
00381 "Difference Tolearance: "
00382 "maximal tolerable difference of the "
00383 "resulting fit positions of the slitlet "
00384 "edges with respect to the expected positions",
00385 "sinfoni.wavecal",
00386 2.);
00387
00388 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-diff_toll");
00389 cpl_parameterlist_append(list, p);
00390
00391
00392
00393 p = cpl_parameter_new_value("sinfoni.wavecal.qc_thresh_min",
00394 CPL_TYPE_INT,
00395 "qc_thresh_min",
00396 "sinfoni.wavecal",
00397 0);
00398
00399 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-qc_thresh_min");
00400 cpl_parameterlist_append(list, p);
00401
00402
00403 p = cpl_parameter_new_value("sinfoni.wavecal.qc_thresh_max",
00404 CPL_TYPE_INT,
00405 "qc_thresh_max",
00406 "sinfoni.wavecal",
00407 49000);
00408
00409 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-qc_thresh_max");
00410 cpl_parameterlist_append(list, p);
00411
00412
00413
00414
00415 p = cpl_parameter_new_value("sinfoni.wavecal.n_coeffs",
00416 CPL_TYPE_INT,
00417 "number of coefficients for the polynomial "
00418 "interpolation ",
00419 "sinfoni.wavecal",
00420 3);
00421
00422 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"wcal-no_coeffs");
00423 cpl_parameterlist_append(list, p);
00424
00425
00426
00427 }