00001 /* $Id: sinfoni_lamp_spec_config.c,v 1.10 2005/02/10 13:16: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: 2005/02/10 13:16:45 $
00023 * $Revision: 1.10 $
00024 * $Name: $
00025 */
00026
00027 /****************************************************************
00028 * Lamp_Spec Frames Data Reduction Parameter Initialization *
00029 ****************************************************************/
00030
00031 #include "sinfoni_lamp_spec_config.h"
00032
00033
00034 void
00035 sinfoni_lamp_spec_config_add(cpl_parameterlist *list)
00036 {
00037
00038 cpl_parameter *p;
00039
00040 if (!list) {
00041 return;
00042 }
00043
00044 /* Input file name */
00045 /* Output file name */
00046 /* output name of resulting fits wavelength map */
00047 p = cpl_parameter_new_value("sinfoni.lamp_spec.output_filename",
00048 CPL_TYPE_STRING,
00049 "Output File Name: ",
00050 "sinfoni.lamp_spec",
00051 "out_flatspec.fits");
00052
00053
00054 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"out-lampspec_filename");
00055 cpl_parameterlist_append(list, p);
00056
00057
00058 /* number of coefficients for the polynomial interpolation */
00059 p = cpl_parameter_new_value("sinfoni.lamp_spec.ncoeffs",
00060 CPL_TYPE_INT,
00061 "No of polynomial coeffs",
00062 "sinfoni.lamp_spec",
00063 3);
00064
00065 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"lamp_spec-ncoeffs");
00066 cpl_parameterlist_append(list, p);
00067
00068 /* number of image rows in the resampled frame
00069 (1280 for single frames, 2560 for interleaved frames) */
00070 p = cpl_parameter_new_value("sinfoni.lamp_spec.nrows",
00071 CPL_TYPE_INT,
00072 "No of image rows in resampled frame",
00073 "sinfoni.lamp_spec",
00074 2560);
00075
00076 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"lamp_spec-nrows");
00077 cpl_parameterlist_append(list, p);
00078
00079
00080
00081 /*Reconstruction */
00082 /* the fraction [0...1] of rejected low intensity pixels when taking
00083 the average of columns */
00084 p = cpl_parameter_new_range("sinfoni.lamp_spec.lower_rejection",
00085 CPL_TYPE_DOUBLE,
00086 "lower rejection",
00087 "sinfoni.lamp_spec",
00088 0.1,0.0,1.0);
00089
00090 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"lamp_spec-low_rejection");
00091 cpl_parameterlist_append(list, p);
00092
00093 /* the fraction [0...1] of rejected high intensity pixels when taking
00094 the average of columns */
00095 p = cpl_parameter_new_range("sinfoni.lamp_spec.higher_rejection",
00096 CPL_TYPE_DOUBLE,
00097 "high rejection",
00098 "sinfoni.lamp_spec",
00099 0.1,0.0,1.0);
00100
00101 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"lamp_spec-high_rejection");
00102 cpl_parameterlist_append(list, p);
00103
00104
00105 p = cpl_parameter_new_value("sinfoni.lamp_spec.counts_to_intensity",
00106 CPL_TYPE_DOUBLE,
00107 "Counts To Intensity",
00108 "sinfoni.lamp_spec",
00109 1.);
00110
00111 cpl_parameter_set_alias(p, CPL_PARAMETER_MODE_CLI,"lamp_spec-cnt2int");
00112 cpl_parameterlist_append(list, p);
00113
00114
00115 }
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001