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


        LAS\AVERAGE [/RESAMPLE [NX Xref Xval Xinc Unit]] [/NOCHECK [Arg1 ...

    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 stacked 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.

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


Gildas manager 2020-10-13