vis_ms_clean#
- xrayvision.clean.vis_ms_clean(vis, shape, pixel_size, scales, clean_beam_width=4.0, niter=5000, map=True, gain=0.1, thres=0.01)[source]#
Clean the visibilities using a multiscale clean method.
A wrapper around
ms_cleanwhich calculates the dirty map and psf.- Parameters:
vis (Visibilities) – The visibilities to clean
pixel_size (Annotated[Quantity, Unit("arcsec / pix")]) – The pixel size in arcsec
scales (array-like, optional, optional) – The scales to use eg
[1, 2, 4, 8]clean_beam_width (Annotated[Quantity, Unit("arcsec")] | None) – The width of the gaussian to convolve the model with. If set to 0.0 the gaussian convolution is disabled
gain (float | None) – The gain per loop or loop gain
thres (float | None) – Terminates clean when
residuals.max() <= thres`niter (int | None) – Maximum number of iterations to perform
map (bool | None) – Return a
sunpy.map.Mapby default or array only ifFalse
- Returns:
Cleaned image
- Return type: