CADD

Adds a scalar to an NDF data structure

Description:

The routine adds a scalar (i.e. constant) value to each pixel of an NDF’s  data array to produce a new NDF data structure.

Usage:

cadd in scalar out

Parameters:

IN = NDF (Read)
Input NDF data structure, to which the value is to be added.
OUT = NDF (Write)
Output NDF data structure.
SCALAR = _DOUBLE (Read)
The value to be added to the NDF’s data array.
TITLE = LITERAL (Read)
The title for the output NDF. A null value will cause the title of the NDF supplied for Parameter IN to be used instead. [!]

Examples:

cadd a 10 b
This adds ten to the NDF called a, to make the NDF called b. NDF b inherits its title from a.
cadd title="HD123456" out=b in=a scalar=17.3
This adds 17.3 to the NDF called a, to make the NDF called b. NDF b has the title "HD123456".

Related Applications

KAPPA: ADD, CDIV, CMULT, CSUB, DIV, MATHS, MULT, SUB.

Implementation Status: