sinfo_general_config.c

00001 /* $Id: sinfo_general_config.c,v 1.6 2012/03/02 08:42:20 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/02 08:42:20 $
00023  * $Revision: 1.6 $
00024  * $Name: HEAD $
00025  */
00026 
00027  /****************************************************************
00028   *           Bad pixel search  (normal method)                  *
00029   ****************************************************************/
00030 
00031 
00032 #ifdef HAVE_CONFIG_H
00033 #  include <config.h>
00034 #endif
00035 
00036 #include "sinfo_general_config.h"
00037 
00056   /* General data reduction parameters */
00057 
00058 void
00059  sinfo_general_config_add(cpl_parameterlist *list)
00060 {
00061 
00062   cpl_parameter *p;
00063 
00064   if (!list) {
00065     return;
00066   }
00067 
00068   /* indicates if parameters will be overwritten */
00069   p = cpl_parameter_new_value("sinfoni.general.overwrite_parameters",
00070                   CPL_TYPE_BOOL,
00071                               "Overwrite DRS ini parameters: ",
00072                               "sinfoni.general",
00073                               TRUE);
00074 
00075   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, "gen-overpar");
00076   cpl_parameterlist_append(list, p);
00077 
00078   p = cpl_parameter_new_value("sinfoni.general.lc_sw",
00079                               CPL_TYPE_BOOL,
00080                               "Correct for bad lines introduced by "
00081                               "instrument software: ",
00082                               "sinfoni.general",
00083                               FALSE);
00084 
00085   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, "lc_sw");
00086   cpl_parameterlist_append(list, p);
00087 
00088 
00089   /* Fill the parameters list */
00090   p = cpl_parameter_new_value("sinfoni.general.lc_kappa", 
00091                               CPL_TYPE_INT,
00092                               "Kappa sigma value", 
00093                               "sinfoni.general",18);
00094   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, "lc_kappa") ;
00095   cpl_parameterlist_append(list, p) ;
00096 
00097   p = cpl_parameter_new_value("sinfoni.general.lc_filt_rad", 
00098                               CPL_TYPE_INT,
00099                   "Filtering radii applied during median filter."
00100                               " Should be small", 
00101                   "sinfoni.general",3) ;
00102 
00103   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, "lc_filt_rad") ;
00104   cpl_parameterlist_append(list, p) ;
00105 
00106 
00107   return;
00108 
00109 }

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