dft_map#

xrayvision.transform.dft_map(input_array, *, u, v, center=<Quantity [0., 0.] arcsec>, pixel_size=<Quantity [1., 1.] arcsec>)[source]#

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

Parameters:
  • input_array (numpy.ndarray) – Input array to be transformed should be 2D (m, n)

  • uv (numpy.array) – Array of 2xN u, v coordinates where the visibilities will be evaluated

  • center (float (x, y), optional) – Coordinates of the center of the map e.g. (0,0) or [5.0, -2.0]

  • pixel_size (float (dx, dy), optional) – The pixel size in x and y directions, need not be square e.g. (1, 3)

Returns:

numpy.ndarray – Array of N complex visibilities evaluated at the u, v coordinates given by uv