Deconvolution Algorithms

africanus.deconv.hogbom.hogbom_clean(dirty, psf, gamma=0.1, threshold='default', niter='default')[source]

Performs Hogbom Clean on the dirty image given the psf.

Parameters:

dirty : np.ndarray

float64 dirty image of shape (ny, nx)

psf : np.ndarray

float64 Point Spread Function of shape (2*ny, 2*nx)

gamma (optional) float

the gain factor (must be less than one)

threshold (optional) : float or str

the threshold to clean to

niter (optional : integer

the maximum number of iterations allowed

Returns:

np.ndarray

float64 clean image of shape (ny, nx)

np.ndarray

float64 residual image of shape (ny, nx)