pad_mid

ska_sdp_func_python.fourier_transforms.fft_support.pad_mid(ff, npixel)[source]

Pad a far field image with zeroes to make it the given size.

Effectively as if we were multiplying with a box function of the original field’s size, which is equivalent to a convolution with a sinc pattern in the uv-grid.

Note

Only the two innermost axes are transformed.

This function does not handle odd-sized dimensions properly.

Parameters:
  • ff – The input far field. Should be smaller than npixelxnpixel.

  • npixel – The desired far field size

Returns:

Padded array