next up previous contents index
Next: AVERAGE /RESAMPLE Up: LAS Language Internal Help Previous: ASSOCIATE   Contents   Index


AVERAGE

        LAS\AVERAGE   [/RESAMPLE   [NX   Xref  Xval  Xinc  Unit]]  [/NOCHECK
    [SOURCE|POSITION|LINE|SPECTROSCOPY|CALIBRATION|SWITCHING]]      [/WEIGHT
    TIME|SIGMA|EQUAL|ASSOCIATED]

    Average  all  the  spectra  of  the  current  index  using the specified
    (/WEIGHT) or current (SET  WEIGHT)  weighting  function  (see  HELP  SET
    WEIGHT  for  details).  The  spectra are added channel by channel by de-
    fault, if possible. Else the  option  /RESAMPLE  must  be  invoked  (see
    subtopic for details).

    On  return  the  R spectrum contains the average spectrum. If /WEIGHT or
    SET WEIGHT is ASSOCIATED (see HELP SET WEIGHT for details),  the  weight
    array  of the average spectrum is saved in the associated array named W.

    Bad channels are handled according to SET BAD. A sum may be  interrupted
    by <^C>, but the result is then undefined.

    The command checks the consistency of the index, in particular the posi-
    tional  coincidence  and  calibration  homogeneity  according   to   SET
    [NO]MATCH  and  SET CALIBRATION respectively. The option /NOCHECK allows
    to disable some (using one or several names) or all (no name  given)  of
    these checks.

    AVERAGE  also works on Continuum drift. The alignement may be Channel or
    Position in this case.


Subsections

Gildas manager 2018-02-21