About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2008

URL: http://cxc.harvard.edu/sherpa4.1/load_psf.sl.html
AHELP for Sherpa 4.1

load_psf

Context: sl.sherpa

Synopsis

Load a PSF model

Syntax

load_psf( modelname, filename|model );

Description

The load_psf command loads a PSF kernel from file or model. The PSF model can then be used to convolve (fold) a given source model by using the set_psf command ("ahelp set_psf").

  • modelname - a name for the PSF model
  • filename|model - the name of a file, including path, which contains the PSF image or the name of a model to use in creating the PSF model

If the function is being loaded from a file, some additional options are allowed. A table will accept the arguments to load_table: ncols, colkeys, dstype ("ahelp load_table") . An image will accept the argument associated with load_image: coord ("ahelp load_image") .

Example 1

sherpa> load_psf( "psf", "psf_0.25pix.fits" );

Load a PSF image from the file psf_0.25pix.fits, using the id "psf".

Example 2

sherpa> load_psf( "modpsf", gauss2d.g1 );

Create a model-based PSF from the model component "gauss2d.g1".

Bugs

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

Last modified: December 2008



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