SINFONI Pipeline Reference Manual  2.5.2
sinfo_lamp_spec_config.c
1 /* $Id: sinfo_lamp_spec_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 /****************************************************************
28  * Lamp_Spec Frames Data Reduction Parameter Initialization *
29  ****************************************************************/
30 
31 #ifdef HAVE_CONFIG_H
32 # include <config.h>
33 #endif
34 #include "sinfo_lamp_spec_config.h"
35 #include "sinfo_globals.h"
36 
44 void
45 sinfo_lamp_spec_config_add(cpl_parameterlist *list)
46 {
47 
48  cpl_parameter *p;
49 
50  if (!list) {
51  return;
52  }
53 
54  /* Input file name */
55  /* Output file name */
56  /* output name of resulting fits wavelength map */
57  p = cpl_parameter_new_value("sinfoni.lamp_spec.output_filename",
58  CPL_TYPE_STRING,
59  "Output File Name: ",
60  "sinfoni.lamp_spec",
61  "out_flatspec.fits");
62 
63 
64  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"out-lampspec_filename");
65  cpl_parameterlist_append(list, p);
66 
67 
68  /* number of coefficients for the polynomial interpolation */
69  p = cpl_parameter_new_value("sinfoni.lamp_spec.ncoeffs",
70  CPL_TYPE_INT,
71  "No of polynomial coeffs",
72  "sinfoni.lamp_spec",
73  3);
74 
75  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"lamp_spec-ncoeffs");
76  cpl_parameterlist_append(list, p);
77 
78  /* number of image rows in the resampled frame
79  (1280 for single frames, 2560 for interleaved frames) */
80  p = cpl_parameter_new_value("sinfoni.lamp_spec.nrows",
81  CPL_TYPE_INT,
82  "No of image rows in resampled frame",
83  "sinfoni.lamp_spec",
84  SINFO_RESAMP_NROWS);
85 
86  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"lamp_spec-nrows");
87  cpl_parameterlist_append(list, p);
88 
89 
90 
91  /*Reconstruction */
92  /* the fraction [0...1] of rejected low intensity pixels when taking
93 the average of columns */
94  p = cpl_parameter_new_range("sinfoni.lamp_spec.lower_rejection",
95  CPL_TYPE_DOUBLE,
96  "lower rejection",
97  "sinfoni.lamp_spec",
98  0.1,0.0,1.0);
99 
100  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"lamp_spec-low_rejection");
101  cpl_parameterlist_append(list, p);
102 
103  /* the fraction [0...1] of rejected high intensity pixels when taking
104 the average of columns */
105  p = cpl_parameter_new_range("sinfoni.lamp_spec.higher_rejection",
106  CPL_TYPE_DOUBLE,
107  "high rejection",
108  "sinfoni.lamp_spec",
109  0.1,0.0,1.0);
110 
111  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"lamp_spec-high_rejection");
112  cpl_parameterlist_append(list, p);
113 
114 
115  p = cpl_parameter_new_value("sinfoni.lamp_spec.counts_to_intensity",
116  CPL_TYPE_DOUBLE,
117  "Counts To Intensity",
118  "sinfoni.lamp_spec",
119  1.);
120 
121  cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"lamp_spec-cnt2int");
122  cpl_parameterlist_append(list, p);
123 
124 
125 }