next up previous contents
Next: REMOVE-LINEAR-BASELINE Up: List of commands in Previous: RECOVER-FILE   Contents


REGRID-SPECTRUM

Resamples the current spectrum onto a new (regular) grid. The routine can generate spectra with either even or odd numbers of channels -- in either case the final spectrum is centered on the original centre frequency. The routine preserves the number of channels - in the case where the spectrum is regridded onto a coarser sampling the undefined end channels are set to zero; they can be eliminated using TRUNCATE-SPECTRUM or DROP-CHANNELS. If the original scale is flagged as non-linear (FCORRECT = T) the sampling of the output spectrum will be linear, and centred on the nominal centre value of the uncorrected spectrum. FCORRECT will be set to FALSE after the operation so the regridded spectrum is treated correctly from then on.

Examples:

    >> regrid-spectrum <CR>
    New gridding interval? (km/s  ) [ -0.97] -1 <CR>
    Odd or even # points? (O/E) [O]  <CR>
    First and last useful channels:           3          63
    ..

\begin{figure}
% latex2html id marker 2041
\psfig{psfile=regrid.ps hoffset=60 hs...
... effectively average the two input channels together.}
}\end{center}\end{figure}



Jamie Leech 2004-08-16