Images
rascil.processing_components.image.deconvolution Module
Image deconvolution functions
The standard deconvolution algorithms are provided:
hogbom: Hogbom CLEAN See: Hogbom CLEAN A&A Suppl, 15, 417, (1974)
msclean: MultiScale CLEAN See: Cornwell, T.J., Multiscale CLEAN (IEEE Journal of Selected Topics in Sig Proc, 2008 vol. 2 pp. 793-801)
mfsmsclean: MultiScale Multi-Frequency See: U. Rau and T. J. Cornwell, “A multi-scale multi-frequency deconvolution algorithm for synthesis imaging in radio interferometry,” A&A 532, A71 (2011).
For example to make dirty image and PSF, deconvolve, and then restore:
model = create_image_from_visibility(vt, cellsize=0.001, npixel=256)
dirty, sumwt = invert_visibility(vt, model, context="2d")
psf, sumwt = invert_visibility(vt, model, context="2d", dopsf=True)
comp, residual = deconvolve_cube(dirty, psf, niter=1000, threshold=0.001, fracthresh=0.01, window_shape='quarter',
gain=0.7, algorithm='msclean', scales=[0, 3, 10, 30])
restored = restore_cube(comp, psf, residual)
All functions return an image holding clean components and residual image
Functions
|
Clean using a variety of algorithms |
|
Restore the model image to the residuals |
|
Clean using a variety of algorithms |
|
Restore the model image to the residuals |
|
Fit a two dimensional Gaussian to a PSF using astropy.modeling |
rascil.processing_components.image.gather_scatter Module
Functions that perform gather/scatter operations on Images.
Functions
|
Gather a list of subimages back into an image |
|
Scatter an image into a list of subimages using the channels |
|
Gather a list of subimages back into an image using the image_raster_iterator |
|
Scatter an image into a list of subimages using the image_raster_iterator |
rascil.processing_components.image.gradients Module
Image operations visible to the Execution Framework as Components
Functions
|
Calculate image first order gradients numerically |
rascil.processing_components.image.iterators Module
Functions that define and manipulate images. Images are just data and a World Coordinate System.
Functions
|
Create a image_channel_iter generator, returning images |
|
One time iterator |
|
Create an image_raster_iter generator, returning a list of subimages, optionally with overlaps |
rascil.processing_components.image.operations Module
Image operations visible to the Execution Framework as Components
Functions
|
Add two images |
Integrate image across frequency |
|
|
Convert a polarisation image to stokes IQUV (complex) |
|
Convert a stokes image in IQUV to polarisation_frame |
Create an empty image like another in shape and wcs |
|
|
Create an empty image consistent with the inputs. |
|
Create an image from an array and optional wcs |
|
Create an image with a w term phase term in it: |
|
Create a window image using one of a number of methods |
|
Write an image to fits |
WCS-aware FFT of a canonical image |
|
Add ra, dec coordinates |
|
Is this Image canonical format? |
|
|
Read an Image from fits |
|
Pad an image to desired shape, adding equally to all edges |
|
Subsection an image to desired shape, cutting equally from all edges |
|
Convert wcs to polarisation_frame |
|
Assess the quality of an image |
|
Fit and remove continuum visibility in place |
|
Re-project an image to a new coordinate system |
|
Show components against an image |
|
Show an Image with coordinates using matplotlib, optionally with components |
|
Smooth an image with a 2D Gaussian kernel |
|
Scale and then rotate and image in x, y axes |
|
Apply a voltage pattern to an image |