In detail, ADJOIN is a little more complex, since it produces a spectrum in which the X data increase. This may involve the sorting of the various arrays, so ADJOIN can be regarded as a program that merges two spectra into increasing X order.
If neither spectrum has any X information (i.e. no wavelength array), the sort order will be first and then second. If one or both have X data, the resulting spectrum will be in order of X value.
A D J O I N
ADJOIN is a Figaro routine whose primary function is to
append one spectrum to another. That is, given two spectra,
it produces one output spectrum where the .X and .Z arrays
are formed by appending the second spectrum data onto the end
of the data from the first. In detail, ADJOIN is a little
more complex, since it produces a spectrum in which the
X data (the contents of the data object .X.DATA) increase.
This may involve the sorting of the various arrays, so ADJOIN
can be regarded as a program that merges two spectra into
increasing X order. The resulting spectrum makes perfect
sense if the data represent flux density measurements, but
may be misleading if the data represent total flux measured
within wavelength bins. The X array may well not represent
even a smooth wavelength vs channel relationship, let alone
scrunched data. Care should be taken in the use of this routine.
Command parameters -
SPECTRUM (Character) The first of the two spectra.
SPECTRUM1 (Character) The second of the two spectra.
OUTPUT (Character) The resulting output spectrum.
Command keywords - None
KS / AAO 18th June 1985
FIGARO A general data reduction system