sinfoni_dark_config.c

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

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