sinfoni_bp_lin_config.c

00001 /* $Id: sinfoni_bp_lin_config.c,v 1.16 2005/07/19 08:59:45 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/07/19 08:59:45 $
00023  * $Revision: 1.16 $
00024  * $Name:  $
00025  */
00026 
00027  /****************************************************************
00028   *           Bad pixel search  (Linear method)                  *
00029   ****************************************************************/
00030 
00031 #include "sinfoni_bp_lin_config.h"  
00050   /* Bad pixel parameters */
00051 
00052 void
00053  sinfoni_bp_lin_config_add(cpl_parameterlist *list)
00054 {
00055 
00056   cpl_parameter *p;
00057 
00058   if (!list) {
00059     return;
00060   }
00061 
00062 
00063 
00064   /* order of the fit polynomial = number of coefficents - 1 */
00065   p = cpl_parameter_new_value("sinfoni.bp_lin.order",
00066                   CPL_TYPE_INT,
00067                               "Order: "
00068                               "order of the fit polynomial = "
00069                               "number of coefficents - 1",
00070                               "sinfoni.bp_lin",
00071                               2);
00072 
00073   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"bp_lin-order");
00074   cpl_parameterlist_append(list, p);
00075 
00076 
00077 
00078  p = cpl_parameter_new_value("sinfoni.bp_lin.thresh_sigma_factor",
00079                   CPL_TYPE_DOUBLE,
00080                               "Threshold Sigma Factor: "
00081                               "threshold factor of the clean standard "
00082                               "deviation. If the deviations of the linear "
00083                               "polynomial coefficients exceed this threshold "
00084                  "the corresponding pixels are declared as bad ",
00085                               "sinfoni.bp_noise",
00086                               10.);
00087 
00088   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"bp_lin-thresh_sigma_fct");
00089   cpl_parameterlist_append(list, p);
00090 
00091 
00092 
00093   /* if a non-linear coefficient exceeds this value the 
00094      corresponding pixel is declared as bad
00095   */
00096   p = cpl_parameter_new_value("sinfoni.bp_lin.nlin_threshold",
00097                   CPL_TYPE_DOUBLE,
00098                               "Non Linear Threshold",
00099                               "sinfoni.bp_lin",
00100                               0.5);
00101 
00102   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"bp_lin-nlin_threshold");
00103   cpl_parameterlist_append(list, p);
00104 
00105 
00106  /* float 
00107      threshold used in the clean mean percentage of rejection used to reject 
00108      low and high frame */
00109  /* percentage of extreme pixel value to reject when calculating the mean 
00110     and stdev */
00111   p = cpl_parameter_new_range("sinfoni.bp_lin.low_rejection",
00112                   CPL_TYPE_DOUBLE,
00113                               "low_rejection: "
00114                               "percentage of rejected low intensity "
00115                               "pixels before averaging",
00116                               "sinfoni.bp_lin",
00117                               10.,
00118                               0.,
00119                               100.);
00120 
00121   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"bp_lin-lo_rej");
00122   cpl_parameterlist_append(list, p);
00123 
00124   /* float 
00125      threshold used in the clean mean percentage of rejection used to reject 
00126      low and high frame */
00127  /* percentage of extreme pixel value to reject when calculating the mean 
00128     and stdev */
00129   p = cpl_parameter_new_range("sinfoni.bp_lin.high_rejection",
00130                   CPL_TYPE_DOUBLE,
00131                               "high_rejection: "
00132                               "percentage of rejected high intensity "
00133                               "pixels before averaging",
00134                               "sinfoni.bp_lin",
00135                               10.,0.,100.);
00136 
00137   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"bp_lin-hi_rej");
00138   cpl_parameterlist_append(list, p);
00139 
00140 
00141   return;
00142 
00143 }

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