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_defined_models.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 get_defined_models Context: sherpa

Synopsis

Module functions that return lists of defined Sherpa source and instrument models

Syntax

Array_Type get_defined_models()
Array_Type get_defined_inst_models()

Error Return Value: NULL

Description

Returns a string array containing the names given by the user to all instantiated Sherpa source or instrument models, for use in record-keeping, GUIs, etc. (This includes XSPEC models and user-defined models.)

See the related Sherpa command SHOW for more information.

Example

Define two models; list their names:

sherpa> SOURCE = GAUSS[g] + POW[p]
sherpa> mnames = get_defined_models()
sherpa> printarr(mnames)
g
p

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.