get_psf_image

sherpa.astro.ui.get_psf_image(id=None)

Return the data used by image_psf.

Parameters:

id (int or str, optional) – The data set. If not given then the default identifier is used, as returned by get_default_id.

Returns:

psf_data

Return type:

a sherpa.image.PSFImage instance

Raises:

sherpa.utils.err.IdentifierErr – If a PSF model has not been created for the data set.

See also

get_kernel_image

Return the data used by image_kernel.

image_kernel

Display the 2D kernel for a data set in the image viewer.

image_psf

Display the 2D PSF model for a data set in the image viewer.

Examples

Return the image data for the PSF for the default data set:

>>> iplot = get_psf_image()
>>> iplot.y.shape
(175, 200)