wbin

 WBIN N1 N2 N3 W1 W2 NP METHOD [FRAC] -- Rebins to uniform wavelength scale

 The earth's velocity will be removed, or in other words the spectrum is
 rebinned to a heliocentric frame. Edit out Vearth if you don't want this.
 Selection criteria can be applied. The program interpolates bad pixels
 prior to rebinning but masks output pixels if they are more than FRAC
 covered by bad input pixels.

 Parameters: 
     
  N1    -- Slot number of first spectrum to rebin
  N2    -- Slot number of last spectrum to rebin
  N3    -- Slot in which to start results
  W1    -- Start wavelength in Angstroms (left edge of first pixel)
  W2    -- End wavelength in Angstroms (right edge of last pixel)
  NP    -- Number of pixels
  METHOD - Interpolation method. Choices:
           L(inear), Q(uadratic), S(inc)

           Quadratic rebinning is recommended for most purposes. Linear
           rebinning is only in case speed is of the essence. Both linear
           and quadratic rebinning cause significant smoothing of the data
           (especially linear). In an effort to reduce this rebinning using
           a (Sin X)/X = "Sinc" has been implemented. This is much slower, but 
           may be necessary if you are interested in measuring broadening at 
           a level near your spectral resolution for example. The sinc
           function is tapered by a window function to reduce overshoot in
           frequency space. If you do use sinc rebinning, it would be well to
           get rid of cosmic rays and other bad pixels first since their
           effects can spread. A check is made to see if the rebinning 
           requested is really just a shift in which case a fast version
           of sinc interpolation is used.

  FRAC --  (Not prompted for) Minimum fraction of output pixel covered
           by input pixel for it to be masked.

Related commands: vbin , tbin

This command belongs to the class: manipulation


Tom Marsh, Warwick