LINCOMB: Fit a Linear Combination of Images to an Image

Form: LINCOMB source BUF=i1,i2,... [BOX=box] [WBUF=wbuf] [LOAD]
 $$
[DIV] [SUB] [CONST=c] [SILENT]
source
is the image to fit
BUF=i1,i2,...
gives the buffer numbers of the images to form the linear combination
BOX=box
operates only in BOX box
WBUF=buf
uses buffer buf as weights for the fit
SUB
subtracts the fit from the input image
DIV
divides the image by the fit
LOAD
load the fit coefficients into VISTA variables L0, L1, L2, ...., errors into DL0, DL1, ..., and unbiased standard deviation from fit into STDDEV
SILENT
suppress terminal output
CONST=c
do not fit the constant term, use c instead

LINCOMB fits a linear combination of input images, stored in VISTA buffers to an image stored in another VISTA buffer. The user can load the coefficients of the fit into VISTA variables using the LOAD keyword. The default action is to replace the image to fit with the fitted image; however, the input image will be divided by the fit with the DIV keyword, or the fit will be subtracted from the input image with the SUB keyword.

The default action is also to fit a constant term in addition to the specified input images. This can be overridden with the CONST= keyword, which will use the specified value as the constant term (use CONST=0 to eliminate constant term altogether).