I A R C
Performs a 2-D fit to an arc spectrum, given an initial fit
to a single arc spectrum as a starting point. Generally, the
starting spectrum will have been extracted from the center of the
2-D arc. IARC then starts at a suitable cross-section in the
2-D arc - usually the central one - and works out from there,
fitting each cross-section individually, looking for the lines in
the starting spectrum. For each line, the program looks for a
peak close to where it was found in the previous fit. If a line
does not show up in one cross-section, the previous position will
be used, but if it fails to show up in the next cross-section, it
will be dropped from the search list. In many cases, there may be
strong lines which were not indentified; these cannot be used to
improve the fit, but they can be used to 'lock' it down in the
regions where there are few or no identified lines.
Command parameters -
IMAGE (Character) The name of the image containing the 2-D arc.
RSTART (Numeric) The starting cross-section to be used.
RWIDTH (Numeric) The number of cross-sections to be added
together for each fit - if the arc is weak, this will
need to be increased.
RSIGMA (Numeric) Normally, the sigma value from the arc line
file is used, but this can be overidden by RSIGMA.
GAP (Numeric) Number of cross sections over which IARC can
fail to find a line before deleting it from the lists.
FILE (Character) The name of the file to which the results
are to be written. If an extension is not given, .IAR
will be used.
SIGMIN (Numeric) The minimum acceptable value for the sigma of
an arc line found in the locking process. Sigma here is
the height of the line relative to the square root of the
continuum. Only used if LOCK set.
Command keywords -
LOCK Indicates that a search is to be made for lines to
'lock' the fit.
SPREAD Indicates that IARC looks for lines first with an
increased sigma, then with the specified sigma in order
to refine the fit. If SPREAD is not set, the search
is just with the specified sigma value.
DETAIL Indicates that full details of the fits are to be output
(This is mainly a diagnostic tool.)
XCORR If set, IARC will attempt to determine a linear shift
between successive spectra using cross-correlation. This
is particularly applicable to fibre data, where such linear
shifts may occur. It is probably not useful for cases such
as image tube distortion, where the spectra should change
in a constant manner.
WEIGHT Indicates whether the least-squares fit is to be weighted
using the peak intensity of each line (so that more weight
is given to strong lines).
User variables used -
(<) IARC_WMAX (Numeric) Maximum wavelength for any of the spectra.
(<) IARC_WMIN (Numeric) Minimum " " " " " "
(<) NOFITS (Numeric) The number of rows that could not be fitted.
(<) ORDER (Numeric) The order of the original fit.
(<) RMSMAX (Numeric) Maximum RMS error from the fits.
Input files -
ARLINES.LIS Contains the details of the starting fit. For format
details see comments for subroutine ARGETL, or the
ARC command.
Output files -
As named by Contains the details of the 2-D fit. Format :
the FILE Name of image, (24X,A).
parameter. Dimensions, NX, NY (17X,I5,4X,I5).
# rows not fitted properly, (42X,I5).
Maximum RMS error, (20X,F10.2).
Maximum order used, - ORDER - (33X,I3).
Then, for each row, row number and ORDER+1 polynomial
coefficients, the constant term being the last
non-zero term. (I14,10X,2D24.16,3(/3D24.16)).
KS / CIT 15th June 1984
FIGARO A general data reduction system