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

URL: http://cxc.harvard.edu/sherpa/ahelp/lmod.html
Jump to: Description · Example · Bugs


AHELP for CIAO 4.9 Sherpa v1

lmod

Context: contrib

Synopsis

Load a X-Spec local model, compiled with convert_xspec_user_model, into Sherpa

Syntax

lmod(module, dirname=".", verbose=True)

Description

The lmod command loads a set of X-Spec user models, compiled with the convert_xspec_user_model script, into Sherpa, and displays the newly-loaded models to the screen (unless verbose is False).

Loading the routine

The routine can be loaded into Sherpa by saying:

sherpa> from sherpa_contrib.xspec.local import lmod

Example

If a X-Spec user model has been compiled by saying

unix% cd /data/models/relxill
unix% convert_xspec_user_model relxill lmodel_relxill.dat

then the model can be loaded into Sherpa by saying

sherpa> lmod('relxill')

if in the same working directory, or by explicitly giving the diretory if not

sherpa> lmod('relxill', '/data/models/relxill')

where both forms assume that the following has already been called:

sherpa> from sherpa_contrib.xspec.local import lmod

Bugs

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


Last modified: September 2014
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.