rcatool.stats.convolve.fft_prep
- rcatool.stats.convolve.fft_prep(array, kernel, fill_value, boundary='fill', psf_pad=False, fft_pad=True)[source]
Prepare data array and kernel for fft computation.
- Parameters:
boundary ({'fill', 'wrap'}, optional) –
A flag indicating how to handle boundaries:
’fill’: set values outside the array boundary to fill_value (default)
’wrap’: periodic boundary
fft_pad (bool, optional) – Default on. Zero-pad image to the nearest 2^n
psf_pad (bool, optional) – Default off. Zero-pad image to be at least the sum of the image sizes (in order to avoid edge-wrapping when smoothing)