Computes result of ima1 op ima2
This recipe performs image computation.
The input files are 2 images their associated tags should be IMA.
The output is an image resulting from the IMA op IMA where op indicates the operation to be performed specified by the parameter uves.uves_utl_ima_arith.op having alias ‘op’ Information on relevant parameters can be found with esorex –params uves_utl_ima_arith esorex –help uves_utl_ima_arith
Create an object for the recipe uves_utl_ima_arith.
import cpl
uves_utl_ima_arith = cpl.Recipe("uves_utl_ima_arith")
A possible operation (str; default: ‘+’) [default=”+”].
a value (float; default: 9999.0) [default=9999.0].
The following code snippet shows the default settings for the available parameters.
import cpl
uves_utl_ima_arith = cpl.Recipe("uves_utl_ima_arith")
uves_utl_ima_arith.param.op = "+"
uves_utl_ima_arith.param.value = 9999.0
You may also set or overwrite some or all parameters by the recipe parameter param, as shown in the following example:
import cpl
uves_utl_ima_arith = cpl.Recipe("uves_utl_ima_arith")
[...]
res = uves_utl_ima_arith( ..., param = {"op":"+", "value":9999.0})
See also
cpl.Recipe for more information about the recipe object.
Please report any problems to Andrea Modigliani. Alternatively, you may send a report to the ESO User Support Department.
This file is part of the ESO UVES Instrument Pipeline Copyright (C) 2004,2005,2006 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, 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
Code author: Andrea Modigliani <Andrea.Modigliani@eso.org>