next up previous 79
Next: ICDIV-Divides an image by a constant
Up: Applications in detail
Previous: IARC-Given fit to single spectrum, fit all spectra in a 2-D arc


ICADD-Adds a constant to an image

Description:
A constant value FACTOR is added to each pixel in the dataset IMAGE.

Parameters:
IMAGE
Name of image to be added to.
FACTOR
Additive constant.
OUTPUT
Name of resulting image.

See also:
FIGARO: ICSUB, ICMULT, ICDIV, IADD, ISUB, IMULT, IDIV.
KAPPA: CADD, CDIV, CMULT, CSUB, MATHS, ADD, SUB, MULT, DIV.

Source comments:
 I C O N S T

 This routine is the main body of ICMULT,ICDIV,ICADD and ICSUB,
 and of XCMULT, XCDIV, XCADD and XCSUB.  The Ixxxx routines
 operate on the data in an image, the Xxxx routines operate on
 the data in the X array of the input file.
 ICMULT multiplies an image by a constant.  Since the constant
 can be less than 1., this function will also divide an
 image by a constant, but ICDIV saves the caller from having
 to calculate a reciprocal. ICADD adds a constant to an image and
 ICSUB subtracts a constant from an image.

 Command parameters -

 IMAGE  (Character) The name of the structure containing the image.
        Uses main data array, or the x-axis data for the XCxxx routines.

 FACTOR (Numeric) The value of the constant factor.

 OUTPUT (Character) The name of the result of the operation.  This
        can be the same as for IMAGE.  If not, a new structure
        is created, with everything but the data a direct
        copy of the input.

 The command name is used to distinguish between the
 possible operations.
                                  KS / CIT 12th June 1984


next up previous 79
Next: ICDIV-Divides an image by a constant
Up: Applications in detail
Previous: IARC-Given fit to single spectrum, fit all spectra in a 2-D arc

FIGARO A general data reduction system
Starlink User Note 86
Keith Shortridge, Horst Meyerdierks,
Malcolm Currie, Martin Clayton, Jon Lockley,
Anne Charles, Clive Davenhall,
Mark Taylor, Tim Ash, Tim Wilkins, Dave Axon,
John Palmer, Anthony Holloway and
Vito Graffagnino
2004 February 17
E-mail:starlink@jiscmail.ac.uk

Copyright © 2013 Science and Technology Facilities Council