sinfo_north_south_test_config.c

00001 /* $Id: sinfo_north_south_test_config.c,v 1.5 2012/03/03 09:50:08 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 09:50:08 $
00023  * $Revision: 1.5 $
00024  * $Name: HEAD $
00025  */
00026 
00027  /****************************************************************
00028   *   North_South_Test Frames Data Reduction Parameter Initialization        *
00029   ****************************************************************/
00030 
00031 #ifdef HAVE_CONFIG_H
00032 #  include <config.h>
00033 #endif
00034 #include "sinfo_north_south_test_config.h"
00049 void
00050  sinfo_north_south_test_config_add(cpl_parameterlist *list)
00051 {
00052 
00053   cpl_parameter *p;
00054 
00055   if (!list) {
00056     return;
00057   }
00058   /* Clean Mean */
00059   p = cpl_parameter_new_range("sinfoni.north_south_test.low_rejection",
00060                   CPL_TYPE_DOUBLE,
00061                               "lower rejection: "
00062                               "percentage of rejected low intensity pixels "
00063                               "before averaging",
00064                               "sinfoni.north_south_test",
00065                                0.1,0.0,1.0);
00066 
00067   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"ns-lo_rej");
00068   cpl_parameterlist_append(list, p);
00069 
00070   p = cpl_parameter_new_range("sinfoni.north_south_test.high_rejection",
00071                   CPL_TYPE_DOUBLE,
00072                               "higher rejection: "
00073                               "percentage of rejected high intensity pixels "
00074                               "before averaging",
00075                               "sinfoni.north_south_test",
00076                               0.1,0.0,1.0);
00077 
00078   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"ns-hi_rej");
00079   cpl_parameterlist_append(list, p);
00080 
00081 
00082   p = cpl_parameter_new_value("sinfoni.north_south_test.mask_ind",
00083                   CPL_TYPE_BOOL,
00084                               "Mask Index: "
00085                              "indicator if a bad pixel mask is applied or not",
00086                               "sinfoni.north_south_test",
00087                               FALSE);
00088 
00089   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"ns-mask_ind");
00090   cpl_parameterlist_append(list, p);
00091 
00092 
00093 
00094   /* Gauss Convolution */
00095   p = cpl_parameter_new_value("sinfoni.north_south_test.gauss_ind",
00096                   CPL_TYPE_BOOL,
00097                               "Gauss Index: ",
00098                               "sinfoni.north_south_test",
00099                               FALSE);
00100 
00101   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"ns-gauss_ind");
00102   cpl_parameterlist_append(list, p);
00103 
00104   p = cpl_parameter_new_value("sinfoni.north_south_test.kernel_half_width",
00105                   CPL_TYPE_INT,
00106                               "Kernel Half Width "
00107                               "kernel half width of the Gaussian "
00108                               "response function",
00109                               "sinfoni.north_south_test",
00110                                2);
00111 
00112   cpl_parameter_set_alias(p,CPL_PARAMETER_MODE_CLI, "ns-khw");
00113   cpl_parameterlist_append(list, p);
00114 
00115 
00116 
00117   /* North South Test */
00118 
00119 
00120   p = cpl_parameter_new_value("sinfoni.north_south_test.half_width",
00121                   CPL_TYPE_INT,
00122                               "Half Width",
00123                               "sinfoni.north_south_test",
00124                                4);
00125 
00126   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"ns-hw");
00127   cpl_parameterlist_append(list, p);
00128 
00129   p = cpl_parameter_new_value("sinfoni.north_south_test.fwhm",
00130                   CPL_TYPE_DOUBLE,
00131                               "FWHM",
00132                               "sinfoni.north_south_test",
00133                                2.);
00134 
00135   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"ns-fwhm");
00136   cpl_parameterlist_append(list, p);
00137 
00138 
00139   p = cpl_parameter_new_value("sinfoni.north_south_test.min_diff",
00140                   CPL_TYPE_DOUBLE,
00141                               "Minimum of Difference",
00142                               "sinfoni.north_south_test",
00143                               1.);
00144 
00145   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"ns-min_diff");
00146   cpl_parameterlist_append(list, p);
00147 
00148 
00149 
00150   p = cpl_parameter_new_value("sinfoni.north_south_test.dev_tol",
00151                   CPL_TYPE_DOUBLE,
00152                               "Dev Tol",
00153                               "sinfoni.north_south_test",
00154                               20.);
00155 
00156 
00157   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"ns-dev_tol");
00158   cpl_parameterlist_append(list, p);
00159 
00160 
00161 
00162 }

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