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