sinfo_lamp_spec_config.c

00001 /* $Id: sinfo_lamp_spec_config.c,v 1.2 2006/11/06 08:11:37 amodigli Exp $
00002  *
00003  * This file is part of the CPL (Common Pipeline Library)
00004  * Copyright (C) 2002 European Southern Observatory
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  */
00020 /*
00021  * $Author: amodigli $
00022  * $Date: 2006/11/06 08:11:37 $
00023  * $Revision: 1.2 $
00024  * $Name:  $
00025  */
00026 
00027  /****************************************************************
00028   *   Lamp_Spec Frames Data Reduction Parameter Initialization        *
00029   ****************************************************************/
00030 
00031 #ifdef HAVE_CONFIG_H
00032 #  include <config.h>
00033 #endif
00034 #include "sinfo_lamp_spec_config.h"
00035   
00043 void
00044  sinfo_lamp_spec_config_add(cpl_parameterlist *list)
00045 {
00046 
00047   cpl_parameter *p;
00048 
00049   if (!list) {
00050     return;
00051   }
00052 
00053   /* Input file name */
00054   /* Output file name */
00055 /* output name of resulting fits wavelength map */
00056   p = cpl_parameter_new_value("sinfoni.lamp_spec.output_filename",
00057                   CPL_TYPE_STRING,
00058                               "Output File Name: ",
00059                               "sinfoni.lamp_spec",
00060                               "out_flatspec.fits");
00061 
00062 
00063   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"out-lampspec_filename");
00064   cpl_parameterlist_append(list, p);
00065 
00066 
00067   /* number of coefficients for the polynomial interpolation */
00068  p = cpl_parameter_new_value("sinfoni.lamp_spec.ncoeffs",
00069                   CPL_TYPE_INT,
00070                               "No of polynomial coeffs",
00071                               "sinfoni.lamp_spec",
00072                               3);
00073 
00074   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"lamp_spec-ncoeffs");
00075   cpl_parameterlist_append(list, p);
00076 
00077   /* number of image rows in the resampled frame 
00078     (1280 for single frames, 2560 for interleaved frames) */
00079  p = cpl_parameter_new_value("sinfoni.lamp_spec.nrows",
00080                   CPL_TYPE_INT,
00081                               "No of image rows in resampled frame",
00082                               "sinfoni.lamp_spec",
00083                               2560);
00084 
00085   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"lamp_spec-nrows");
00086   cpl_parameterlist_append(list, p);
00087 
00088 
00089 
00090   /*Reconstruction */
00091  /* the fraction [0...1] of rejected low intensity pixels when taking 
00092 the average of columns */
00093   p = cpl_parameter_new_range("sinfoni.lamp_spec.lower_rejection",
00094                   CPL_TYPE_DOUBLE,
00095                               "lower rejection",
00096                               "sinfoni.lamp_spec",
00097                               0.1,0.0,1.0);
00098 
00099   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"lamp_spec-low_rejection");
00100   cpl_parameterlist_append(list, p);
00101 
00102  /* the fraction [0...1] of rejected high intensity pixels when taking 
00103 the average of columns */
00104   p = cpl_parameter_new_range("sinfoni.lamp_spec.higher_rejection",
00105                   CPL_TYPE_DOUBLE,
00106                               "high rejection",
00107                               "sinfoni.lamp_spec",
00108                               0.1,0.0,1.0);
00109 
00110   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"lamp_spec-high_rejection");
00111   cpl_parameterlist_append(list, p);
00112 
00113 
00114   p = cpl_parameter_new_value("sinfoni.lamp_spec.counts_to_intensity",
00115                   CPL_TYPE_DOUBLE,
00116                               "Counts To Intensity",
00117                               "sinfoni.lamp_spec",
00118                               1.);
00119 
00120   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"lamp_spec-cnt2int");
00121   cpl_parameterlist_append(list, p);
00122 
00123 
00124 }

Generated on Wed Jan 17 08:33:43 2007 for SINFONI Pipeline Reference Manual by  doxygen 1.4.4