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

Jump to: Description · Example · Bugs

AHELP for CIAO 4.10 Sherpa v1


Context: contrib


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


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


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


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


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: Smithsonian Institution, Copyright © 1998-2017. All rights reserved.