get_psf_contour

sherpa.astro.ui.get_psf_contour(id: IdType | None = None, recalc=True)

Return the data used by contour_psf.

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

  • recalc (bool, optional) – If False then the results from the last call to contour_psf (or get_psf_contour) are returned, otherwise the data is re-generated.

Returns:

psf_data

Return type:

a sherpa.plot.PSFContour instance

Raises:

See also

get_kernel_contour

Return the data used by contour_kernel.

contour_kernel

Contour the kernel applied to the model of an image data set.

contour_psf

Contour the PSF applied to the model of an image data set.

Examples

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

>>> cplot = get_psf_contour()