DESPIKE

##
DESPIKE

            MIRA\DESPIKE [ifb] [/PIXEL [ipix]] [/ITERATE niter]
                            [/WINDOW vMin vMax] [/THRESHOLD value]

        DESPIKE removes spikes from spectra, OTF data, and continuum drifts, re-
        spectively. If the frontend-backend identification  number  ifb  is  not
        specified, the first frontend-backend combination of the current scan is
        despiked.

        DESPIKE /PIXEL [ipix]
        Allows to specify the pixel number ipix for array observations.  Default
        is pixel 1 (for HERA1 and HERA2: pixel 5, the central one).

        DESPIKE /ITERATE niter
        Allows to remove up to niter spikes (default is niter = 10).

        DESPIKE /WINDOW vMin vMax
        Spectral  channels with velocities between vMin and vMax are not consid-
        ered in the search for spikes. Used to avoid confusion between e.g. nar-
        row spectral lines and spikes.

        DESPIKE /THRESHOLD value
        By  default,  the  threshold  for searching for spikes is 5 sigma (rms),
        i.e.  records where the difference between the data value and the median
        of  the  spectrum or the time series is higher than 5 sigma are despiked
        (i.e. attributed  the  blanking  value).  With  option  /THRESHOLD,  the
        threshold can be set to another value.