Next: fileptr, Previous: fftexpand, Up: Internal Routines [Contents][Index]

`fftshift(`

`data`, `distance`)

`fftshift, `

`data`, `distance`

Shifts the

over some `data`

, using
Fourier interpolation. The shift distances may be fractional. Each
next specified shift distance is applied to the next dimension of
`distance`

. If fewer shift distances are specified than there
are dimensions in `data`

, then the shift distances for the
remaining dimensions are assumed equal to zero.
`data`

Because Fourier interpolation is used, the shifting is cyclical (i.e., values that shifts out of the array on one side reappear on the other side), and the power spectrum of the shifted data is equal to the power spectrum of the original.

See also: shift