Table Of Contents

Previous topic

The sinfo_utl_ima_arith recipe

Next topic

The sinfo_utl_skymap recipe

This Page

The sinfo_utl_cube_arith recipe

sinfo_utl_cube_arith

Synopsis

Cube arithmetics

Description

This recipe perform cube arithmetics.

If parameter value is specified the input frame is a cube in a sof file with tag CUBE Else the input files are a cube and an images or a spectrum their associated tags should be respectively CUBE, IMA or SPECTRUM.

The output is a cube with tag PRO_CUBE resulting from the operation CUBE op IMA or CUBE op SPECTRUM or CUBE op value where op indicates the operation to be performed Information on relevant parameters can be found with esorex –params sinfo_utl_cube_arith esorex –help sinfo_utl_cube_arith

Constructor

cpl.Recipe("sinfo_utl_cube_arith")

Create an object for the recipe sinfo_utl_cube_arith.

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

Parameters

sinfo_utl_cube_arith.param.op

A possible operation: `/’,’*’,’+’ or `-‘ (str; default: ‘/’) [default=”/”].

sinfo_utl_cube_arith.param.value

A constant to add (float; default: 99999.0) [default=99999.0].

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

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

sinfo_utl_cube_arith.param.op = "/"
sinfo_utl_cube_arith.param.value = 99999.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_cube_arith = cpl.Recipe("sinfo_utl_cube_arith")
[...]
res = sinfo_utl_cube_arith( ..., param = {"op":"/", "value":99999.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.