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 2006

URL: http://cxc.harvard.edu/ciao3.4/get_models.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 get_models Context: sherpa

Synopsis

Module functions that return lists of available source and instrument models

Syntax

Array_Type get_models([String_Type])
Array_Type get_inst_models([String_Type])

Error Return Value: NULL

Argument:

(1) matching string (default none: get all model names)

Description

Returns a string array containing the names of all appropriate Sherpa source or instrument models. (This includes XSPEC models and user-defined models.) If a string argument is provided (e.g., "xs"), only those models whose names contain matching substrings will be returned. Beware of case-sensitivity: upper-case matching strings will yield a NULL return.

Example

List all models with psf in their names.

sherpa> psfmods = get_inst_models("psf")
sherpa> printarr(psfmods)
fpsf1d
fpsf2d
tpsf1d
tpsf2d

Bugs

See the Sherpa bug pages online for an up-to-date listing of known bugs.

Hardcopy (PDF): A4 | Letter
Last modified: December 2006



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.