hogbom

ska_sdp_func_python.image.cleaners.hogbom(dirty, psf, window, gain, thresh, niter, fracthresh, prefix='')[source]

Clean the point spread function from a dirty image.

See Hogbom CLEAN (1974A&AS…15..417H).

This version operates on numpy arrays. :py:func:’ska_sdp_func_python.image.deconvolution.deconvolve_cube’ provides a version for Images.

Parameters:
  • dirty – The dirty Image, i.e., the Image to be deconvolved

  • psf – The point spread-function

  • window – Regions where clean components are allowed. If True, entire dirty Image is allowed

  • gain – The “loop gain”, i.e., the fraction of the brightest pixel that is removed in each iteration

  • thresh – Cleaning stops when the maximum of the absolute deviation of the residual is less than this value

  • niter – Maximum number of components to make if the threshold thresh is not hit

  • fracthresh – The predefined fractional threshold at which to stop cleaning

  • prefix – Informational prefix for log messages

Returns:

clean component Image, residual Image