Chandra X-Ray Observatory
	(CXC)
Skip to the navigation links
Last modified: December 2013

URL: http://cxc.harvard.edu/sherpa/ahelp/plot_psf.html
Jump to: Description · Examples · Bugs · See Also


AHELP for CIAO 4.9 Sherpa v1

plot_psf

Context: psfs

Synopsis

Plot the PSF

Syntax

plot_psf( [id], [replot=False, overplot=False] )

Description

The plot_psf command plots the PSF associated with a dataset. To plot the filtered kernel which will be used in the convolution, use the plot_kernel command.

  • id - the id of the dataset to use; if not given, uses the default dataset id (id=1 by default, see "ahelp get_default_id")
  • replot - should the cached arrays be used in the plot? False (default)=do the calculation, True=redisplay the existing values
  • overplot - should the new plot be overlaid in the plotting window? False (default)=clear the window, True=overplot on any existing plots

The plot is displayed in a ChIPS plotting window. If there is no plotting window open, one is created. If a plotting window exists, the overplot parameter value determines whether the new plot is overlaid on any existing plots in the window or if the window is cleared before the plot is drawn.

ChIPS commands may be used within Sherpa to modify plot characteristics and create hardcopies; refer to the ChIPS website for information.

Plotting Multiple Objects

To plot multiple Sherpa objects - e.g. data, model, fit, residuals - in a single window, use the plot command.

What is the difference between the PSF and the kernel?

The point spread function (PSF) is defined by the full (unfiltered) PSF image loaded into Sherpa or the PSF model expression evaluated over the full range of the dataset; both types of PSFs are established with the load_psf() command. The kernel is the subsection of the PSF image or model which is used to convolve the data. This subsection is created from the PSF when the size and center of the kernel are defined by the command set_psf(). While the kernel and PSF might be congruent, defining a smaller kernel helps speed the convolution process by restricting the number of points within the PSF that Sherpa must evaluate.

Example 1

sherpa> plot_psf()

Plot the PSF for the default dataset.

Example 2

sherpa> plot_psf("src", overplot=True)

Plot the PSF for the "src" dataset, overlaying on any existing plots.

Bugs

See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.

See Also

psfs
contour_kernel, contour_psf, delete_psf, get_kernel, get_psf, image_kernel, image_psf, load_conv, load_psf, plot_kernel, set_psf, show_kernel, show_psf

Last modified: December 2013
Smithsonian Institute Smithsonian Institute

The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory. 60 Garden Street, Cambridge, MA 02138 USA.   Email:   cxchelp@head.cfa.harvard.edu Smithsonian Institution, Copyright © 1998-2017. All rights reserved.