sinfo_lamp_spec_config.c

00001 /* $Id: sinfo_lamp_spec_config.c,v 1.4 2007/10/09 15:59:07 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: 2007/10/09 15:59:07 $
00023  * $Revision: 1.4 $
00024  * $Name: sinfo-2_2_5 $
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 #include "sinfo_globals.h"
00036   
00044 void
00045  sinfo_lamp_spec_config_add(cpl_parameterlist *list)
00046 {
00047 
00048   cpl_parameter *p;
00049 
00050   if (!list) {
00051     return;
00052   }
00053 
00054   /* Input file name */
00055   /* Output file name */
00056 /* output name of resulting fits wavelength map */
00057   p = cpl_parameter_new_value("sinfoni.lamp_spec.output_filename",
00058                   CPL_TYPE_STRING,
00059                               "Output File Name: ",
00060                               "sinfoni.lamp_spec",
00061                               "out_flatspec.fits");
00062 
00063 
00064   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"out-lampspec_filename");
00065   cpl_parameterlist_append(list, p);
00066 
00067 
00068   /* number of coefficients for the polynomial interpolation */
00069  p = cpl_parameter_new_value("sinfoni.lamp_spec.ncoeffs",
00070                   CPL_TYPE_INT,
00071                               "No of polynomial coeffs",
00072                               "sinfoni.lamp_spec",
00073                               3);
00074 
00075   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"lamp_spec-ncoeffs");
00076   cpl_parameterlist_append(list, p);
00077 
00078   /* number of image rows in the resampled frame 
00079     (1280 for single frames, 2560 for interleaved frames) */
00080  p = cpl_parameter_new_value("sinfoni.lamp_spec.nrows",
00081                   CPL_TYPE_INT,
00082                               "No of image rows in resampled frame",
00083                               "sinfoni.lamp_spec",
00084                               SINFO_RESAMP_NROWS);
00085 
00086   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"lamp_spec-nrows");
00087   cpl_parameterlist_append(list, p);
00088 
00089 
00090 
00091   /*Reconstruction */
00092  /* the fraction [0...1] of rejected low intensity pixels when taking 
00093 the average of columns */
00094   p = cpl_parameter_new_range("sinfoni.lamp_spec.lower_rejection",
00095                   CPL_TYPE_DOUBLE,
00096                               "lower rejection",
00097                               "sinfoni.lamp_spec",
00098                               0.1,0.0,1.0);
00099 
00100   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"lamp_spec-low_rejection");
00101   cpl_parameterlist_append(list, p);
00102 
00103  /* the fraction [0...1] of rejected high intensity pixels when taking 
00104 the average of columns */
00105   p = cpl_parameter_new_range("sinfoni.lamp_spec.higher_rejection",
00106                   CPL_TYPE_DOUBLE,
00107                               "high rejection",
00108                               "sinfoni.lamp_spec",
00109                               0.1,0.0,1.0);
00110 
00111   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"lamp_spec-high_rejection");
00112   cpl_parameterlist_append(list, p);
00113 
00114 
00115   p = cpl_parameter_new_value("sinfoni.lamp_spec.counts_to_intensity",
00116                   CPL_TYPE_DOUBLE,
00117                               "Counts To Intensity",
00118                               "sinfoni.lamp_spec",
00119                               1.);
00120 
00121   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"lamp_spec-cnt2int");
00122   cpl_parameterlist_append(list, p);
00123 
00124 
00125 }

Generated on 8 Mar 2011 for SINFONI Pipeline Reference Manual by  doxygen 1.6.1