Table Of Contents

Previous topic

The sinfo_utl_spectrum_wavelength_shift recipe

Next topic

The sinfo_utl_cube_arith recipe

This Page

The sinfo_utl_ima_arith recipe

sinfo_utl_ima_arith

Synopsis

Computes result of ima1 op ima2

Description

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 sinfoni.sinfo_utl_ima_arith.op having alias ‘op’

Constructor

cpl.Recipe("sinfo_utl_ima_arith")

Create an object for the recipe sinfo_utl_ima_arith.

import cpl
sinfo_utl_ima_arith = cpl.Recipe("sinfo_utl_ima_arith")

Parameters

sinfo_utl_ima_arith.param.op

A possible operation (str; default: ‘+’) [default=”+”].

sinfo_utl_ima_arith.param.value

a value (float; default: 9999.0) [default=9999.0].

The following code snippet shows the default settings for the available parameters.

import cpl
sinfo_utl_ima_arith = cpl.Recipe("sinfo_utl_ima_arith")

sinfo_utl_ima_arith.param.op = "+"
sinfo_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
sinfo_utl_ima_arith = cpl.Recipe("sinfo_utl_ima_arith")
[...]
res = sinfo_utl_ima_arith( ..., param = {"op":"+", "value":9999.0})

See also

cpl.Recipe for more information about the recipe object.

Bug reports

Please report any problems to Andrea Modigliani. Alternatively, you may send a report to the ESO User Support Department.