ska_sdp_spectral_line_imaging.data_procs.deconvolution.restore_image module

ska_sdp_spectral_line_imaging.data_procs.deconvolution.restore_image.convert_clean_beam_to_pixels(cellsize, clean_beam)[source]

Convert clean beam to pixels.

Parameters:
  • cellsize -- cellsize in radians

  • clean_beam -- e.g. {"bmaj":0.1, "bmin":0.05, "bpa":-60.0}. Units are deg, deg, deg

Returns:

Beam size in pixels

ska_sdp_spectral_line_imaging.data_procs.deconvolution.restore_image.fit_psf(psf)[source]

Fit a two-dimensional Gaussian to a PSF using astropy.modeling.

Params psf:

Input 2D PSF, with dimensions nx * ny, where nx = ny

Returns:

Beam size in pixels

ska_sdp_spectral_line_imaging.data_procs.deconvolution.restore_image.restore_channel(model, beam_pixels)[source]
ska_sdp_spectral_line_imaging.data_procs.deconvolution.restore_image.restore_cube(model, psf, residual=None, clean_beam={'bmaj': None, 'bmin': None, 'bpa': None})[source]

Note: This documentation copied from ska_sdp_func_python.image.deconvolution.restore_cube.

Restore the model image to the residuals.

The clean beam can be specified as a dictionary with fields "bmaj", "bmin" (both in arcsec) and "bpa" in degrees.

Parameters:
  • model (Image) -- Model image (i.e. deconvolved)

  • psf (Image) -- Input PSF

  • residual (Image, default: None) -- Residual Image

  • clean_beam (dict, default: {'bmaj': None, 'bmin': None, 'bpa': None}) -- Clean beam e.g. {"bmaj":0.1, "bmin":0.05, "bpa":-60.0}. Units are deg, deg, deg

Return type:

Image

Returns:

restored image