Transform (‘xrayvision.transform’)#

The transform submodule forward and reverse transforms.

xrayvision.transform Module#

Discrete Fourier Transform (DFT) and Inverse Discrete Fourier Transform (IDFT) related functions.

There are two implementations one a standard DFT dft and IDFT idft in terms of pixel space, i.e. the input has no positional information other than an arbitrary 0 origin and a length. The second takes inputs which have positional information dft_map and the inverse idft_map

Functions#

generate_xy(number_pixels, *[, ...])

Generate the x or y coordinates given the number of pixels, phase_center and pixel size.

generate_uv(number_pixels, *[, ...])

Generate the u or v coordinates given the number of pixels, phase_center and pixel size.

dft_map(input_array, *, u, v[, ...])

Discrete Fourier transform in terms of coordinates returning 1-D array complex visibilities.

idft_map(input_vis, *, u, v, shape[, ...])

Inverse discrete Fourier transform in terms of coordinates returning a 2D real array or image.