sinfoni_cube_create_config.c

00001 /* $Id: sinfoni_cube_create_config.c,v 1.13 2005/07/09 14:49:17 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/09 14:49:17 $
00023  * $Revision: 1.13 $
00024  * $Name:  $
00025  */
00026 
00027  /****************************************************************
00028   *   Cubecreate Frames Data Reduction Parameter Initialization        *
00029   ****************************************************************/
00030 
00031 #include "sinfoni_cube_create_config.h"
00032 
00033 void
00034  sinfoni_cubecreate_config_add(cpl_parameterlist *list)
00035 {
00036 
00037   cpl_parameter *p;
00038 
00039   if (!list) {
00040     return;
00041   }
00042 
00043 
00044 
00045 
00046    /*Resampling */
00047   /* number of coefficients for the polynomial interpolation */
00048   p = cpl_parameter_new_value("sinfoni.cubecreate.n_coeffs",
00049                   CPL_TYPE_INT,
00050                               "Number Of Coefficients",
00051                               "sinfoni.cubecreate",
00052                                3);
00053 
00054   cpl_parameter_set_alias(p,CPL_PARAMETER_MODE_CLI, "cubecreate-no-coeffs");
00055   cpl_parameterlist_append(list, p);
00056 
00057  
00058 
00059  
00060   /* Calibration */
00061   /* indicates if the halogen lamp features from flatfielding should be 
00062      corrected for or not */
00063   /*
00064   p = cpl_parameter_new_value("sinfoni.cubecreate.halo_correct_index",
00065                   CPL_TYPE_BOOL,
00066                               "Halo Correct Index",
00067                               "sinfoni.cubecreate",
00068                               FALSE);
00069 
00070   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"cubecreate-halo-corr-ind");
00071   cpl_parameterlist_append(list, p);
00072   */
00073 
00074   /*indicates if the slitlet distances are determined by a north-south-test 
00075      (yes) or slitlet edge fits (no)
00076   */
00077 
00078 
00079  
00080   p = cpl_parameter_new_value("sinfoni.cubecreate.nord_south_index",
00081                   CPL_TYPE_BOOL,
00082                               "Nord South Index Switch",
00083                                "sinfoni.cubecreate",
00084                               TRUE);
00085 
00086 
00087 
00088   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"cubecreate-ns-ind");
00089   cpl_parameterlist_append(list, p);
00090  
00091  
00092 
00093   /* Fine tuning */
00094   /* Method */
00095   p = cpl_parameter_new_enum("sinfoni.cubecreate.fine_tuning_method",
00096                   CPL_TYPE_STRING,
00097                               "Fine Tuning Method",
00098                               "sinfoni.cubecreate",
00099                               "P",
00100                                3,
00101                               "P","F","S");
00102 
00103   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"cubecreate-fine-tune-mtd");
00104   cpl_parameterlist_append(list, p);
00105   /* order of the polynomial if the polynomial interpolation shifting 
00106     method is used.
00107   */
00108   p = cpl_parameter_new_value("sinfoni.cubecreate.order",
00109                   CPL_TYPE_INT,
00110                               "Order Of Polynomial Fit",
00111                               "sinfoni.cubecreate",
00112                                2);
00113 
00114   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"cubecreate-order");
00115   cpl_parameterlist_append(list, p);
00116 
00117 
00118 
00119 
00120   p = cpl_parameter_new_value("sinfoni.cubecreate.qc_chop_zmin",
00121                   CPL_TYPE_INT,
00122                               "Chop zmin pixel on z axis collapsing cube",
00123                               "sinfoni.cubecreate",
00124                                0);
00125 
00126   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"cubecreate-qc_chop_zmin");
00127   cpl_parameterlist_append(list, p);
00128 
00129   p = cpl_parameter_new_value("sinfoni.cubecreate.qc_chop_zmax",
00130                   CPL_TYPE_INT,
00131                               "Chop zmax pixel on z axis collapsing cube",
00132                               "sinfoni.cubecreate",
00133                                0);
00134 
00135   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"cubecreate-qc_chop_zmax");
00136   cpl_parameterlist_append(list, p);
00137 
00138   p = cpl_parameter_new_value("sinfoni.cubecreate.qc_chop_ymin",
00139                   CPL_TYPE_INT,
00140                               "Chop ymin pixel on y axis collapsing image",
00141                               "sinfoni.cubecreate",
00142                                0);
00143 
00144   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"cubecreate-qc_chop_ymin");
00145   cpl_parameterlist_append(list, p);
00146 
00147   p = cpl_parameter_new_value("sinfoni.cubecreate.qc_chop_ymax",
00148                   CPL_TYPE_INT,
00149                               "Chop ymax pixel on y axis collapsing image",
00150                               "sinfoni.cubecreate",
00151                                0);
00152 
00153   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"cubecreate-qc_chop_ymax");
00154   cpl_parameterlist_append(list, p);
00155 
00156 
00157   p = cpl_parameter_new_value("sinfoni.cubecreate.qc_chop_xmin",
00158                   CPL_TYPE_INT,
00159                               "Chop xmin pixel on x axis collapsing image",
00160                               "sinfoni.cubecreate",
00161                                0);
00162 
00163   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"cubecreate-qc_chop_ymin");
00164   cpl_parameterlist_append(list, p);
00165 
00166   p = cpl_parameter_new_value("sinfoni.cubecreate.qc_chop_xmax",
00167                   CPL_TYPE_INT,
00168                               "Chop xmax pixel on x axis collapsing image",
00169                               "sinfoni.cubecreate",
00170                                0);
00171 
00172   cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"cubecreate-qc_chop_xmax");
00173   cpl_parameterlist_append(list, p);
00174 
00175 }

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