sinfoni_bp_noise_config.c

00001 /* $Id: sinfoni_bp_noise_config.c,v 1.14 2005/06/02 06:36:14 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:36:14 $
00023  * $Revision: 1.14 $
00024  * $Name:  $
00025  */
00026 
00027  /****************************************************************
00028   *           Bad pixel search  (noise method)                  *
00029   ****************************************************************/
00030 #include "sinfoni_bp_noise_config.h"
00031 
00050   /* Bad pixel parameters */
00051 
00052 void
00053  sinfoni_bp_noise_config_add(cpl_parameterlist *list)
00054 {
00055 
00056   cpl_parameter *p;
00057 
00058   if (!list) {
00059     return;
00060   }
00061 
00062 
00063 
00064 /* factor of noise within which the pixels are used to fit a straight line 
00065    to the column intensity */
00066   p = cpl_parameter_new_value("sinfoni.bp_noise.thresh_sigma_factor",
00067                   CPL_TYPE_DOUBLE,
00068                               "Threshold Sigma Factor: "
00069                               "If the mean noise exceeds this "
00070                               "threshold times the clean standard deviation "
00071                               "of the clean mean the corresponding pixels "
00072                               "are declared as bad ",
00073                               "sinfoni.bp_noise",
00074                               10.);
00075 
00076   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"bp_noise-thresh_sigma_fct");
00077   cpl_parameterlist_append(list, p);
00078 
00079 /* float 
00080      threshold used in the clean mean percentage of rejection used to reject 
00081      low and high frame */
00082  /* percentage of extreme pixel value to reject when calculating the mean 
00083     and stdev */
00084   p = cpl_parameter_new_range("sinfoni.bp_noise.low_rejection",
00085                   CPL_TYPE_DOUBLE,
00086                               "low_rejection: "
00087                               "percentage of rejected low intensity "
00088                               "pixels before averaging",
00089                               "sinfoni.bp_noise",
00090                               10.,0.,100.);
00091 
00092   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"bp_noise-lo_rej");
00093   cpl_parameterlist_append(list, p);
00094 
00095   /* float 
00096      threshold used in the clean mean percentage of rejection used to reject 
00097      low and high frame */
00098  /* percentage of extreme pixel value to reject when calculating the mean 
00099     and stdev */
00100   p = cpl_parameter_new_range("sinfoni.bp_noise.high_rejection",
00101                   CPL_TYPE_DOUBLE,
00102                               "high_rejection: "
00103                               "percentage of rejected high intensity "
00104                               "pixels before averaging",
00105                               "sinfoni.bp_noise",
00106                               10.,0.,100.);
00107 
00108   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"bp_noise-hi_rej");
00109   cpl_parameterlist_append(list, p);
00110 
00111   return;
00112 
00113 }

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