sinfoni_north_south_test_config.c

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

Generated on Wed Oct 26 13:08:55 2005 for SINFONI Pipeline Reference Manual by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001