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

URL: http://cxc.harvard.edu/sherpa/list_model_components.html
Jump to: Description · Example · Bugs · See Also


AHELP for CIAO 4.3 Sherpa v1

list_model_components

Context: models

Synopsis

List all models established in a Sherpa session.

Syntax

list_model_components()

Description

Sherpa allows users to construct arbitrarily complex models from model components (e.g., Gaussians, Lorentzians, XSPEC models, etc.). This function returns a list of the user-defined names of all model components that have been established in a Sherpa session (including model components that have been established but not yet assigned to a model expression to be fit to a data set). The list_model_components() function accepts no arguments.

Example

sherpa> list_model_components()

This function returns the user-defined names of model components established during a Sherpa session:

            sherpa> set_model(2, xswabs.abs1*powerlaw1d.p1)
            sherpa> set_model(4, bbody.b1 + powlaw1d.p1)
            sherpa> set_model("model3", gauss1d.g1)
            
            sherpa> list_model_components()
            ['p1', 'abs1', 'g1', 'b1']
          

In this example, set_model() is used to assign model expressions to data sets 2 and 4, as well as to set "model3" to the gauss1d model (to be fit to data set 3 at a later time).

Bugs

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

See Also

info
list_functions, list_response_ids
methods
list_iter_methods, list_methods
models
atten, bbody, bbodyfreq, beta1d, beta2d, box1d, box2d, bpl1d, const1d, const2d, cos, delta1d, delta2d, dered, devaucouleurs2d, edge, erf, erfc, exp, exp10, gauss1d, gauss2d, hubblereynolds, jdpileup, linebroad, list_models, log, log10, logparabola, lorentz1d, lorentz2d, models, normbeta1d, normgauss1d, poisson, polynom1d, polynom2d, powlaw1d, scale1d, scale2d, schechter, sin, sqrt, stephi1d, steplo1d, tablemodel, tan, xs, xsabsori, xsacisabs, xsapec, xsbapec, xsbbody, xsbbodyrad, xsbexrav, xsbexriv, xsbkn2pow, xsbknpower, xsbmc, xsbremss, xsbvapec, xsc6mekl, xsc6pmekl, xsc6pvmkl, xsc6vmekl, xscabs, xscemekl, xscevmkl, xscflow, xscompbb, xscompls, xscompps, xscompst, xscomptt, xsconstant, xscutoffpl, xscyclabs, xsdisk, xsdiskbb, xsdiskir, xsdiskline, xsdiskm, xsdisko, xsdiskpbb, xsdiskpn, xsdust, xsedge, xsequil, xsexpabs, xsexpdec, xsexpfac, xsezdiskbb, xsgabs, xsgaussian, xsgnei, xsgrad, xsgrbm, xshighecut, xshrefl, xskerrbb, xskerrd, xskerrdisk, xslaor, xslaor2, xslorentz, xsmeka, xsmekal, xsmkcflow, xsnei, xsnotch, xsnpshock, xsnsa, xsnsagrav, xsnsatmos, xsnsmax, xsnteea, xsnthcomp, xspcfabs, xspegpwrlw, xspexrav, xspexriv, xsphabs, xsplabs, xsplcabs, xsposm, xspowerlaw, xspshock, xspwab, xsraymond, xsredden, xsredge, xsrefsch, xssedov, xssmedge, xsspexpcut, xsspline, xssrcut, xssresc, xssss_ice, xsstep, xsswind1, xstbabs, xstbgrain, xstbvarabs, xsuvred, xsvapec, xsvarabs, xsvbremss, xsvequil, xsvgnei, xsvmcflow, xsvmeka, xsvmekal, xsvnei, xsvnpshock, xsvphabs, xsvpshock, xsvraymond, xsvsedov, xswabs, xswndabs, xsxion, xszbbody, xszbremss, xszdust, xszedge, xszgauss, xszhighect, xszpcfabs, xszphabs, xszpowerlw, xszredden, xszsmdust, xsztbabs, xszvarabs, xszvfeabs, xszvphabs, xszwabs, xszwndabs, xszxipcf

Last modified: December 2010
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-2019. All rights reserved.