next up previous 530
Next: CUMULVEC - Sums the values cumulatively in a one-dimensional NDF
Up: Specifications of KAPPA applications
Previous: CREFRAME - Generates a test two-dimensional NDF with a selection of several forms


CSUB - Subtracts a scalar from an NDF data structure

Description:
The routine subtracts a scalar (i.e. constant) value from each pixel of an NDF's  data array to produce a new NDF data structure.

Usage:
csub in scalar out

Parameters:
IN = NDF (Read)
Input NDF data structure, from which the value is to be subtracted.
OUT = NDF (Write)
Output NDF data structure.
SCALAR = _DOUBLE (Read)
The value to be subtracted from 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:
csub a 10 b
This subtracts ten from the NDF called a, to make the NDF called b. NDF b inherits its title from a.
csub title="HD123456" out=b in=a scalar=21.9
This subtracts 21.9 from the NDF called a, to make the NDF called b. NDF b has the title "HD123456".

Related Applications :
KAPPA: ADD, CADD, CDIV, CMULT, DIV, MATHS, MULT, SUB.

Implementation Status:





next up previous 530
Next: CUMULVEC - Sums the values cumulatively in a one-dimensional NDF
Up: Specifications of KAPPA applications
Previous: CREFRAME - Generates a test two-dimensional NDF with a selection of several forms

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