S C R O S S
Main body of the Figaro SCROSS function. This computes
the cross-correlation of two spectra and the location of the
central peak of the cross-correlation. It can be used to
determine a relative shift between two spectra. The cross
correlation function can also be saved in a disk structure.
SCROSS uses the Fourier cross-correlation technique, which is
described in, for example:
R. W. Hunstead, 1980, Proc. Astron. Soc. Australia, vol. 4, no. 1,
pp. 77-80.
J. Tonry and M. Davis, 1979, Astron. J, vol. 84, pp.1511-1525.
Command parameters -
SPECTRUM (Character) The spectrum to be compared with
a template spectrum.
TEMPLATE (Character) The template spectrum to be used.
The two spectra should be the same length.
XSTART (Numeric) Data with an axis data value less than XSTART
will be ignored in the cross-correlation.
XEND (Numeric) Data with an axis data value greater than XEND
will also be ignored. Note that these values are
used to determine the channel numbers to be used
for SPECTRUM, and the same ones will be used for
TEMPLATE, even if TEMPLATE has a different axis
structure.
CBPC (Numeric) Percentage of spectrum covered by a cosine
bell prior to application of the FFT.
CROSS (Character) the name of the data structure to hold
the cross-correlation, if it is to be saved.
The file created will be cross.dst, and will look
like an ordinary spectrum - i.e. can be plotted by
SPLOT, etc. CROSS is ignored if RECORD is not
set.
Command keywords -
FITCONT If set, a continuum fit is performed on the two
spectra prior to application of the cosine bell.
RECORD If set, the cross-correlation of the two spectra
will be recorded as a new data structure.
User variables used -
SHIFT (Numeric) The relative shift of the two spectra.
KS / CIT 3rd Oct 1983
FIGARO A general data reduction system