function wsa

Compute weighted shift-and-add of the fits cube X (must be a file). The shift location is defined by xcen, ycen. thresh gives the fraction of the maximum pixel which will be regarded as a speckle. speckles determines the maximum number of speckles used (if there are more, then the image will be smoothed until it is not exceeded). smooth optionally gives the fwhm of a gaussian with which the image where speckles are searched for is smoothed. If bigmask is given, the centroid of mask will be shifted to the centroid of bigmask for each individual image.

Syntax
result = wsa(X, XCENTER, YCENTER, THRESHOLD, SPECKLES, SMOOTH, SKY, FLAT, DPL, MASK [, BIGMASK])

Arguments
X:   A FITS filename (enclosed in single quotes).
XCENTER:   An integer number specifying the shift position in the first dimension.
YCENTER:   An integer number specifying the shift position in the second dimension.
THRESHOLD:   A real number.
SPECKLES:   An integer number.
SMOOTH:   An integer number.
SKY:   A matrix.
FLAT:   A matrix.
DPL:   A matrix.
MASK:   A matrix.
BIGMASK:   A matrix.