sinfo_skycor_config.c

00001 /* $Id: sinfo_skycor_config.c,v 1.9 2007/01/10 14:13: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: 2007/01/10 14:13:14 $
00023  * $Revision: 1.9 $
00024  * $Name:  $
00025  */
00026 
00027 
00028 #ifdef HAVE_CONFIG_H
00029 #  include <config.h>
00030 #endif
00031 
00032 #include "sinfo_skycor_config.h"
00033 #include "sinfo_skycor.h"
00034 
00053   /* General data reduction parameters */
00054 
00055 void
00056  sinfo_skycor_config_add(cpl_parameterlist *list)
00057 {
00058 
00059   cpl_parameter *p;
00060 
00061   if (!list) {
00062     return;
00063   }
00064 
00065 
00066    /* Fill the parameters list */
00067     /* --stropt */
00068   
00069     p = cpl_parameter_new_value("sinfoni.sinfo_utl_skycor.mask_ws", 
00070                                 CPL_TYPE_DOUBLE, 
00071              "Starting wavelength for object-sky cross correlation", 
00072                                 "sinfoni.sinfo_utl_skycor",
00073                                 SINFO_MASK_WAVE_MIN) ;
00074     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, "skycor-mask_ws") ;
00075     cpl_parameterlist_append(list, p) ;
00076 
00077 
00078     p = cpl_parameter_new_value("sinfoni.sinfo_utl_skycor.mask_we", 
00079                                 CPL_TYPE_DOUBLE, 
00080              "End wavelength for object-sky cross correlation", 
00081                                 "sinfoni.sinfo_utl_skycor", 
00082                                 SINFO_MASK_WAVE_MAX) ;
00083     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, "skycor-mask_we") ;
00084     cpl_parameterlist_append(list, p) ;
00085   
00086 
00087     p = cpl_parameter_new_value("sinfoni.sinfo_utl_skycor.min_frac", 
00088                                 CPL_TYPE_DOUBLE, 
00089    "Threshold value for fraction of spatial pixels to be sky", 
00090                                 "sinfoni.sinfo_utl_skycor", 
00091                                 SINFO_MIN_FRAC) ;
00092     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, "skycor-min_frac") ;
00093     cpl_parameterlist_append(list, p) ;
00094 
00095     p = cpl_parameter_new_value("sinfoni.sinfo_utl_skycor.line_half_width", 
00096                                 CPL_TYPE_DOUBLE, 
00097                                 "Threshold value for full width in pixels "
00098                                 "of unresolved emission line. Lines with FWHM "
00099                                 "smaller than this value are not considered " 
00100                                 "in the object-sky cross correlation and in "
00101                                 "computation of the optimal sky lines scaling "
00102                                 "factor", 
00103                                 "sinfoni.sinfo_utl_skycor", 
00104                                 SINFO_LINE_HALF_WIDTH) ;
00105     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, "skycor-line_hw") ;
00106     cpl_parameterlist_append(list, p) ;
00107 
00108     p = cpl_parameter_new_enum("sinfoni.sinfo_utl_skycor.scale_method", 
00109                    CPL_TYPE_INT, 
00110                                "Optimal sky lines scaling factor computation "
00111                    "method: amoeba fit (0), "
00112                                "maximum likelihood (1) ",
00113                                "sinfoni.sinfo_utl_skycor", 
00114                                1,2,0,1) ;
00115     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, 
00116                             "skycor-scale_method") ;
00117     cpl_parameterlist_append(list, p) ;
00118 
00119 
00120     p = cpl_parameter_new_value("sinfoni.sinfo_utl_skycor.rot_cor", 
00121                                 CPL_TYPE_BOOL, 
00122                                 "Computes scaling factor correction due to "
00123                                 "rotational levels transitions",
00124                                 "sinfoni.sinfo_utl_skycor", 
00125                                 TRUE) ;
00126     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, "skycor-rot_cor") ;
00127     cpl_parameterlist_append(list, p) ;
00128 
00129 
00130 
00131     p = cpl_parameter_new_value("sinfoni.sinfo_utl_skycor.fit_obj_noise", 
00132                                 CPL_TYPE_BOOL, 
00133                                 "Do Gaussian fit of object noise",
00134                                 "sinfoni.sinfo_utl_skycor", 
00135                                 FALSE) ;
00136     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, "skycor-fit_obj_noise");
00137     cpl_parameterlist_append(list, p) ;
00138 
00139 
00140     p = cpl_parameter_new_value("sinfoni.sinfo_utl_skycor.niter", 
00141                                 CPL_TYPE_INT, 
00142                                 "Number of iterations of background "
00143                                 "fit", 
00144                                 "sinfoni.sinfo_utl_skycor", 
00145                                 10) ;
00146     cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI, "skycor-niter") ;
00147     cpl_parameterlist_append(list, p) ;
00148 
00149 
00150 }

Generated on Wed Jan 17 08:33:44 2007 for SINFONI Pipeline Reference Manual by  doxygen 1.4.4