Determines order and fibre postions
Fibre & order position determination procedure:
You should feed the recipe with:
Products are:
chip=REDL and REDU
Create an object for the recipe flames_cal_prep_sff_ofpos.
import cpl
flames_cal_prep_sff_ofpos = cpl.Recipe("flames_cal_prep_sff_ofpos")
Whether or not to save intermediate results to local directory (bool; default: False) [default=False].
Any plots produced by the recipe are redirected to the command specified by this parameter. The plotting command must contain the substring ‘gnuplot’ and must be able to parse gnuplot syntax on its standard input. Valid examples of such a command may include ‘gnuplot -persist’ and ‘cat > mygnuplot$$.gp’. A finer control of the plotting options can be obtained by writing an executable script, e.g. my_gnuplot.pl, that executes gnuplot after setting the desired gnuplot options (e.g. set terminal pslatex color). To turn off plotting, set this parameter to ‘no’ (str; default: ‘no’) [default=”no”].
For RED arm data process the redl, redu, or both chip(s) (str; default: ‘both’) [default=”both”].
Extraction method (str; default: ‘opt’) [default=”opt”].
Bias subtraction method, M for master bias frame, N for no bias subtraction, V to subtract a constant bias level defined by the parameter bias_value (str; default: ‘M’) [default=”M”].
Bias value (only if bias_method = V) (long; default: 200) [default=200].
Filter switch (str; default: ‘none’) [default=”none”].
Saturation threshold (long; default: 55000) [default=55000].
Slitff* and Fibreff* file preparation. If fast extraction method is used it should be set to FALSE (bool; default: True) [default=True].
Cubify switch (bool; default: True) [default=True].
To be sure to use the flat part of a slit flatsone may need to subtract this bit. The default value -1, is used for automatic setting: if WCEN=520 save_flat_size=0, else save_flat_size=2. Values explicitly set by user overwrite this rule. (long; default: -1) [default=-1].
Input data format (bool; default: False) [default=False].
The following code snippet shows the default settings for the available parameters.
import cpl
flames_cal_prep_sff_ofpos = cpl.Recipe("flames_cal_prep_sff_ofpos")
flames_cal_prep_sff_ofpos.param.debug = False
flames_cal_prep_sff_ofpos.param.plotter = "no"
flames_cal_prep_sff_ofpos.param.process_chip = "both"
flames_cal_prep_sff_ofpos.param.ext_method = "opt"
flames_cal_prep_sff_ofpos.param.bias_method = "M"
flames_cal_prep_sff_ofpos.param.bias_value = 200
flames_cal_prep_sff_ofpos.param.filter_switch = "none"
flames_cal_prep_sff_ofpos.param.sat_thr = 55000
flames_cal_prep_sff_ofpos.param.fileprep = True
flames_cal_prep_sff_ofpos.param.cubify = True
flames_cal_prep_sff_ofpos.param.save_flat_size = -1
flames_cal_prep_sff_ofpos.param.clean_tmp_products = False
You may also set or overwrite some or all parameters by the recipe parameter param, as shown in the following example:
import cpl
flames_cal_prep_sff_ofpos = cpl.Recipe("flames_cal_prep_sff_ofpos")
[...]
res = flames_cal_prep_sff_ofpos( ..., param = {"debug":False, "plotter":"no"})
See also
cpl.Recipe for more information about the recipe object.
Please report any problems to Jonas M. Larsen. Alternatively, you may send a report to the ESO User Support Department.
This file is part of the FLAMES/UVES Pipeline Copyright (C) 2004, 2005, 2006, 2007 European Southern Observatory
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
Code author: Jonas M. Larsen <cpl@eso.org>