msclean

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

Perform multiscale clean.

Multiscale CLEAN (IEEE Journal of Selected Topics in Sig Proc, 2008 vol. 2 pp. 793-801).

This version operates on numpy arrays.

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, all of the dirty image is allowed

  • sensitivity – Inverse noise image, scaled to peak 1.0

  • 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

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

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

  • scales – Scales (in pixels width) to be used

  • prefix – Informational prefix for log messages

Returns:

clean component image, residual image