get_kernel_contour

sherpa.astro.ui.get_kernel_contour(id=None, recalc=True)

Return the data used by contour_kernel.

Parameters:
  • id (int or str, 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_kernel (or get_kernel_contour) are returned, otherwise the data is re-generated.

Returns:

psf_data

Return type:

a sherpa.plot.PSFKernelContour instance

Raises:

See also

get_psf_contour

Return the data used by contour_psf.

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 kernel for the default data set:

>>> kplot = get_kernel_contour()