sinfo_standard_star_config.c

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

Generated on 3 Mar 2013 for SINFONI Pipeline Reference Manual by  doxygen 1.6.1