sinfo_bp_noise_config.c

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

Generated on 8 Mar 2011 for SINFONI Pipeline Reference Manual by  doxygen 1.6.1