sinfo_standard_star_config.c

00001 /* $Id: sinfo_standard_star_config.c,v 1.3 2006/12/01 12:45:36 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/12/01 12:45:36 $
00023  * $Revision: 1.3 $
00024  * $Name:  $
00025  */
00026 
00027  /****************************************************************
00028   *   Standard_Star Frames Data Reduction Parameter Initialization        *
00029   ****************************************************************/
00030 
00031 #ifdef HAVE_CONFIG_H
00032 #  include <config.h>
00033 #endif
00034 
00035 #include "sinfo_standard_star_config.h"
00049 void
00050  sinfo_standard_star_config_add(cpl_parameterlist *list)
00051 {
00052 
00053   cpl_parameter *p;
00054 
00055   if (!list) {
00056     return;
00057   }
00058 
00059 
00060 /*
00061   --------------------------------------------------------------------------
00062   In/Out  
00063   --------------------------------------------------------------------------
00064  */
00065 
00066   /* switch to generate the extracted spectrum */
00067   /*
00068   p = cpl_parameter_new_value("sinfoni.std_star.qc_info",
00069                   CPL_TYPE_BOOL,
00070                               "Switch to activate extra QC information "
00071                               "together with the spectrum",
00072                               "sinfoni.std_star",
00073                               FALSE);
00074 
00075   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"std_star-qc_info");
00076   cpl_parameterlist_append(list, p);
00077   */
00078 
00079   p = cpl_parameter_new_value("sinfoni.std_star.switch",
00080                   CPL_TYPE_BOOL,
00081                               "Switch to activate spectrum extraction",
00082                               "sinfoni.std_star",
00083                               TRUE);
00084 
00085   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"std_star-switch");
00086   cpl_parameterlist_append(list, p);
00087 
00088 /* the fraction [0...1] of rejected low intensity pixels when taking 
00089 the average of columns */
00090   p = cpl_parameter_new_value("sinfoni.std_star.low_rejection",
00091                   CPL_TYPE_DOUBLE,
00092                               "lower rejection",
00093                               "sinfoni.std_star",
00094                               0.1);
00095 
00096   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"std_star-lo_rej");
00097   cpl_parameterlist_append(list, p);
00098 
00099  /* the fraction [0...1] of rejected high intensity pixels when taking 
00100 the average of columns */
00101   p = cpl_parameter_new_value("sinfoni.std_star.high_rejection",
00102                   CPL_TYPE_DOUBLE,
00103                               "high rejection",
00104                               "sinfoni.std_star",
00105                               0.1);
00106 
00107   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"std_star-hi_rej");
00108   cpl_parameterlist_append(list, p);
00109 
00110 
00111 /* factor applied to the found fwhms of a 2D-Gaussian fit, defines the radius 
00112    of the aperture inside which the spectral extraction is carried out.
00113  */
00114   p = cpl_parameter_new_value("sinfoni.std_star.fwhm_factor",
00115                   CPL_TYPE_DOUBLE,
00116                               "Factor to find 2D-Gauss FWHM. "
00117                               "The extraction box is: "
00118                               "halfbox_x=halfbox_y="
00119                               "fwhm_factor*(fwhm_x+fwhm_y)*0.5",
00120                               "sinfoni.std_star",
00121                               5.0);
00122 
00123   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"std_star-fwhm_fct");
00124   cpl_parameterlist_append(list, p);
00125 
00126 
00127 /* indicator if the intensity conversion factor should be determined or not
00128  */
00129 
00130 
00131   p = cpl_parameter_new_value("sinfoni.std_star.conversion_index",
00132                   CPL_TYPE_BOOL,
00133                               "Intensity Conversion Index: ",
00134                               "sinfoni.std_star",
00135                               TRUE);
00136 
00137   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"std_star-conv_ind");
00138   cpl_parameterlist_append(list, p);
00139 
00140 
00141 
00142 
00143 }

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