sinfo_bp_lin_config.c

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

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