|
User Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./guide gshift.pro
gshift |
procedure gshift, offset, [buffer=integer], [/wrap], [ftol=floating point], [/linear], [/quadratic], [/lsquadratic], [/spline], [/cubic], [/nowelsh], [/nopad], [ok=variable] |
Procedure to shift data in a GUIDE data buffer by a given number of channels.
This uses dcshift. Please read the documentation for that toolbox function for all the details about how shifting of data containers is implemented. This documentation is very thin and is primarily useful as a syntax reminder for the usage procedure.
See fshift or vshift for examples showing how this is used to align spectra prior to averaging.
getps, 30 accum ; first in, no alignment needed yet getps, 31 fs = fshift() ; shift to align in frequency gshift, fs ; actually do the shift accum ; now it can be added to the accumulation ave
Parameters | |
offset |
The number of channels to shift the data (positive shifts things towards higher channels, negative shifts things towards lower channels). |