next up previous 530
Next: CALC - Evaluates a mathematical expression
Up: Specifications of KAPPA applications
Previous: BLOCK - Smooths an NDF using an n-dimensional rectangular box filter.


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:




next up previous 530
Next: CALC - Evaluates a mathematical expression
Up: Specifications of KAPPA applications
Previous: BLOCK - Smooths an NDF using an n-dimensional rectangular box filter.

KAPPA --- Kernel Application Package
Starlink User Note 95
Malcolm J. Currie & David S. Berry
2013 February 14
E-mail:starlink@jiscmail.ac.uk

Copyright © 2013 Science and Technology Facilities Council