next up previous contents
Next: 10.2 Resampling Spectra Up: 10 MORE WAYS TO Previous: 10 MORE WAYS TO

10.1 Merging Two Spectra

The procedure IUEMERGE may be used to join together two spectra with adjoining wavelength regions (e.g., SWP and LWP spectra, or adjacent orders in a high dispersion spectrum). The newsips keyword should be set if your spectra were processed with NEWSIPS so that IUEMERGE will realize that the quality flags (q1 and q2) are $\nu$ flags; otherwise they will be considered to be $\epsilon$ flags. The calling sequence is:

IUEMERGE,W1,F1,q1,W2,F2,q2,KIND,W3,F3,q3,/newsips 

W1,F1,q1 Wavelengths, fluxes, and optional quality flags for first input spectrum.
W2,F2,q2 Wavelengths, fluxes, and optional quality flags for second input spectrum.
KIND The type of merging desired:
$\lambda$ Splice vectors where the wavelength vectors equal $\lambda$(Å. In this case, the values of ``W1'' must be smaller than the values of ``W2''. Example:

IUEMERGE,w1,f1,q1,w2,f2,q2,2000,w3,f3,q3

will result in ``W3'', ``F3'', and ``E3'' being equal to ``W1'', ``F1'', and ``E1'' in the region <2000 Å but equal to ``W2'', ``F2'', and ``E2'' in the region >2000 Å.

'A' Average the fluxes in the region of overlap. Resample ``F2'' to the same wavelengths as ``W1'' and average ``F1'' and ``F2'' (weighted by ``Q1'' and ``Q2'', if they are present).

'M' Merge (concatenate) all values of ``W1'' and ``W2'', ``F1'' and ``F2'', and ``Q1'' and ``Q2'', keeping all data points.

W3,F3,q3 Output (merged) wavelengths, fluxes, and optional quality flags.

You must either include no quality flags whatsoever, or include q1, q2, and q3.


next up previous contents
Next: 10.2 Resampling Spectra Up: 10 MORE WAYS TO Previous: 10 MORE WAYS TO

2/9/1998