sinfo_dark_config.c

00001 /* $Id: sinfo_dark_config.c,v 1.4 2007/06/06 07:10: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: 2007/06/06 07:10:45 $
00023  * $Revision: 1.4 $
00024  * $Name: sinfo-2_2_5 $
00025  */
00026 
00027 #ifdef HAVE_CONFIG_H
00028 #  include <config.h>
00029 #endif
00030  /****************************************************************
00031   *   Dark Frames Data Reduction Parameter Initialization        *
00032   ****************************************************************/
00033 #include "sinfo_dark_config.h"
00052   /* Dark Frame Data Reduction parameters */
00053    
00054 
00055 void
00056  sinfo_dark_config_add(cpl_parameterlist *list)
00057 {
00058 
00059   cpl_parameter *p;
00060 
00061   if (!list) {
00062     return;
00063   }
00064 
00065   /* float 
00066      threshold used in the clean mean percentage of rejection used to reject 
00067      low and high frame */
00068  /* percentage of extreme pixel value to reject when calculating the mean 
00069     and stdev */
00070   p = cpl_parameter_new_range("sinfoni.dark.low_rejection",
00071                   CPL_TYPE_DOUBLE,
00072                               "lower rejection",
00073                               "sinfoni.dark",
00074                               0.1,0.0,1.0);
00075 
00076   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-lo_rej");
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 
00085 
00086   /* QC LOG */
00087   /* RON */
00088 
00089   p = cpl_parameter_new_range("sinfoni.dark.high_rejection",
00090                   CPL_TYPE_DOUBLE,
00091                               "higher rejection",
00092                               "sinfoni.dark",
00093                               0.1,0.0,1.0);
00094 
00095   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-hi_rej");
00096   cpl_parameterlist_append(list, p);
00097 
00098 
00099  
00100   p = cpl_parameter_new_range("sinfoni.dark.qc_ron_xmin",
00101                   CPL_TYPE_INT,
00102                               "qc_ron_xmin",
00103                               "sinfoni.dark",
00104                               1,DET_PIX_MIN,DET_PIX_MAX);
00105 
00106   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-qc_ron_xmin");
00107   cpl_parameterlist_append(list, p);
00108   
00109  
00110   p = cpl_parameter_new_range("sinfoni.dark.qc_ron_xmax",
00111                   CPL_TYPE_INT,
00112                               "qc_ron_xmax",
00113                               "sinfoni.dark",
00114                               2048,DET_PIX_MIN,DET_PIX_MAX);
00115 
00116   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-qc_ron_xmax");
00117   cpl_parameterlist_append(list, p);
00118 
00119   p = cpl_parameter_new_range("sinfoni.dark.qc_ron_ymin",
00120                   CPL_TYPE_INT,
00121                               "qc_ron_ymin",
00122                               "sinfoni.dark",
00123                               1,DET_PIX_MIN,DET_PIX_MAX);
00124 
00125   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-qc_ron_ymin");
00126   cpl_parameterlist_append(list, p);
00127 
00128 
00129   p = cpl_parameter_new_range("sinfoni.dark.qc_ron_ymax",
00130                   CPL_TYPE_INT,
00131                               "qc_ron_ymax",
00132                               "sinfoni.dark",
00133                               2048,DET_PIX_MIN,DET_PIX_MAX);
00134 
00135   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-qc_ron_ymax");
00136   cpl_parameterlist_append(list, p);
00137 
00138   p = cpl_parameter_new_value("sinfoni.dark.qc_ron_hsize",
00139                   CPL_TYPE_INT,
00140                               "qc_ron_hsize",
00141                               "sinfoni.dark",
00142                               4);
00143 
00144   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-qc_ron_hsize");
00145   cpl_parameterlist_append(list, p);
00146  
00147   p = cpl_parameter_new_value("sinfoni.dark.qc_ron_nsamp",
00148                   CPL_TYPE_INT,
00149                               "qc_ron_nsamp",
00150                               "sinfoni.dark",
00151                               100);
00152 
00153   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-qc_ron_nsamp");
00154   cpl_parameterlist_append(list, p);
00155  
00156   /* FPN */
00157 
00158 
00159  p = cpl_parameter_new_range("sinfoni.dark.qc_fpn_xmin",
00160                   CPL_TYPE_INT,
00161                               "qc_fpn_xmin",
00162                               "sinfoni.dark",
00163                               1,DET_PIX_MIN,DET_PIX_MAX);
00164 
00165   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-qc_fpn_xmin");
00166   cpl_parameterlist_append(list, p);
00167   
00168  
00169   p = cpl_parameter_new_range("sinfoni.dark.qc_fpn_xmax",
00170                   CPL_TYPE_INT,
00171                               "qc_fpn_xmax",
00172                               "sinfoni.dark",
00173                               2047,DET_PIX_MIN,DET_PIX_MAX);
00174 
00175   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-qc_fpn_xmax");
00176   cpl_parameterlist_append(list, p);
00177 
00178   p = cpl_parameter_new_range("sinfoni.dark.qc_fpn_ymin",
00179                   CPL_TYPE_INT,
00180                               "qc_fpn_ymin",
00181                               "sinfoni.dark",
00182                               1,DET_PIX_MIN,DET_PIX_MAX);
00183 
00184   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-qc_fpn_ymin");
00185   cpl_parameterlist_append(list, p);
00186 
00187 
00188   p = cpl_parameter_new_range("sinfoni.dark.qc_fpn_ymax",
00189                   CPL_TYPE_INT,
00190                               "qc_fpn_ymax",
00191                               "sinfoni.dark",
00192                               2047,DET_PIX_MIN,DET_PIX_MAX);
00193 
00194   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-qc_fpn_ymax");
00195   cpl_parameterlist_append(list, p);
00196 
00197 
00198 
00199   p = cpl_parameter_new_value("sinfoni.dark.qc_fpn_hsize",
00200                   CPL_TYPE_INT,
00201                               "qc_fpn_hsize",
00202                               "sinfoni.dark",
00203                               2);
00204 
00205   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-qc_fpn_hsize");
00206   cpl_parameterlist_append(list, p);
00207  
00208   p = cpl_parameter_new_value("sinfoni.dark.qc_fpn_nsamp",
00209                   CPL_TYPE_INT,
00210                               "qc_fpn_nsamp",
00211                               "sinfoni.dark",
00212                               1000);
00213 
00214   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"dark-qc_fpn_nsamp");
00215   cpl_parameterlist_append(list, p);
00216 
00217 }

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