.TH KMO_ARITHMETIC "7" "2.1.0" "kmo_arithmetic" "kmos recipes" .SH NAME kmo_arithmetic \- Perform basic arithmetic on cubes .SH SYNOPSIS esorex .B kmo_arithmetic [OPTIONS] FILE.sof .SH DESCRIPTION With this recipe simple arithmetic operations, like addition, subtraction, multiplication, divison and raising to a power can be performed. .PP Since FITS files formatted as F1I, F2I and F3I can contain data (and eventually noise) of either just one IFU or of all 24 IFUs, kmo_arithmetic behaves diffe\- rently in these cases. .PP When the number of IFUs is the same for both operands, the first IFU of the first operand is processed with the first IFU of the second operand. .PP When the second operand has only one IFU while the first operand has more IFUs, then the all the IFUs of the first operand are processed individually which the IFU of the second operand. .PP If an operand contains noise and the other doesn\'t, the noise will not be processed. .PP Noise is only propagated if both operand contain noise extensions. If the second operator is a scalar noise is also propagated, of course. .PP If two cubes are given as operands, they will be combined according to the given operator.If a cube is given as first operand and an image as second, then it operates on each slice of the cube; similarly if a spectrum is given as the second operand, it operates on each spectrum of the cube; and a number as the second operand operates on each pixel of the cube. .PP .SS BASIC PARAMETERS \-\-operator Any of the following operations to perform: \'+\', \'\-\', \'*\' or \'/\' (also \'^\' when the 2nd operand is a scalar \-\-scalar To be provided if a frame should be processed together with a scalar \-\-file_extension Define a string to append to the product filename ARITHMETIC in order to get an unique filename Input files: DO KMOS category Type Explanation Required #Frames \-\-\-\-\-\-\-\- \-\-\-\-\- \-\-\-\-\-\-\-\-\-\-\- \-\-\-\-\-\-\-\- \-\-\-\-\-\-\- F3I or Data with or Y 1 F2I or without noise frame F1I or F2D or RAW F3I or Data with or N 0,1 F2I or without noise frame F1I or F2D or RAW Output files: DO KMOS category Type Explanation \-\-\-\-\-\-\-\- \-\-\-\-\- \-\-\-\-\-\-\-\-\-\-\- ARITHMETIC F3I or F2I or F1I or F2D .SH OPTIONS .TP \fB\-\-operator\fR \fI\fR The operator (\'+\', \'\-\', \'*\', \'/\' or \'^\') (str; default: \'\'). The full name of this option for the EsoRex configuration file is \fBkmos.kmo_arithmetic.operator\fR [default = \fI\fR]. .TP \fB\-\-scalar\fR \fI\fR The scalar operand (float; default: \-99999.9). The full name of this option for the EsoRex configuration file is \fBkmos.kmo_arithmetic.scalar\fR [default = \fI\-99999.9\fR]. .TP \fB\-\-file_extension\fR \fI\fR String to add to product filename. (str; default: \'\'). The full name of this option for the EsoRex configuration file is \fBkmos.kmo_arithmetic.file_extension\fR [default = \fI\fR]. .PP Note that it is possible to create a configuration file containing these options, along with suitable default values. Please refer to the details provided by the 'esorex \-\-help' command. .SH SEE ALSO The full documentation for the kmos pipeline can be downloaded as a PDF file using the following URL: .IP .B ftp://ftp.eso.org/pub/dfs/pipelines/kmos/kmos\-pipeline\-manual\-2.9.pdf .PP An overview over the existing ESO pipelines can be found on the web page \fBhttps://www.eso.org/sci/software/pipelines/\fR. .PP Basic documentation about the EsoRex program can be found at the esorex (1) man page. .PP It is possible to call the pipelines from python using the python\-cpl package. See \fBhttps://packages.python.org/python\-cpl/index.html\fR for further information. .PP The other recipes of the kmos pipeline are .IR kmo_copy (7), .IR kmo_fit_profile (7), .IR kmo_fits_strip (7), .IR kmo_make_image (7), .IR kmo_noise_map (7), .IR kmo_rotate (7), .IR kmo_shift (7), .IR kmo_sky_mask (7), .IR kmo_stats (7), .IR kmos_combine (7), .IR kmos_dark (7), .IR kmos_extract_spec (7), .IR kmos_flat (7), .IR kmos_gen_reflines (7), .IR kmos_gen_telluric (7), .IR kmos_illumination (7), .IR kmos_reconstruct (7), .IR kmos_sci_red (7), .IR kmos_sky_tweak (7), .IR kmos_std_star (7), .IR kmos_test (7), .IR kmos_wave_cal (7) .SH VERSION kmo_arithmetic 2.1.0 .SH AUTHOR Alex Agudo Berbel .SH BUG REPORTS Please report any problems to usd\-help@eso.org. Alternatively, you may send a report to the ESO User Support Department . .SH LICENSE This file is part of the CRIRES Instrument Pipeline Copyright (C) 2002,2003 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., 59 Temple Place, Suite 330, Boston, MA 02111\-1307 USA