next up previous contents index
Next: BASE Up: AVERAGE Previous: AVERAGE /NOCHECK   Contents   Index


AVERAGE /RESAMPLE

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

      No /RESAMPLE
        Without  this option, a consistency test checks that the spectra all
        have the same X axes, according to the current SET  ALIGN  mode.  If
        yes,  the spectra are stacked channel by channel (no resampling). If
        not, an error is raised and /RESAMPLE is suggested.

      /RESAMPLE (without arguments)
        The /RESAMPLE option is a request to allow the resampling, but it is
        not  enforced. A consistency test first checks if the spectra X axes
        are identical or not, according to the current SET  ALIGN  mode.  If
        yes,  the spectra are stacked channel by channel (no resampling). If
        not, the X axes are resampled according to the SET ALIGN mode. The X
        axis of the output sum is automatically computed. In particular, the
        output spectrum has the coarsest resolution of  the  input  spectra.
        Those  are then internally resampled and stacked on the output axis.

      /RESAMPLE NX Xref Xval Xinc Unit
        A custom output X axis can be given with  the  syntax  /RESAMPLE  NX
        Xref  Xval  Xinc  Unit.  In this case, the resampling is always per-
        formed. The input spectra are internally resampled  and  stacked  on
        this axis. See HELP RESAMPLE for possible uses and caveats.

    Remember that if it is enabled, the resampling is time consuming and has
    non trivial effects on the spectra noise.


Gildas manager 2018-05-27