Module functions that return lists of defined Sherpa source and instrument models
Array_Type get_defined_models()
Array_Type get_defined_inst_models()
Error Return Value: NULL
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.
Define two models; list their names:
sherpa> SOURCE = GAUSS[g] + POW[p]
sherpa> mnames = get_defined_models()
sherpa> printarr(mnames)
g
p
- sherpa
-
autoest,
background,
create,
create_model,
createparamset,
fit,
freeze,
get_model_params,
get_models,
get_num_par,
get_par,
get_stackexpr,
getx,
gety,
guess,
instrument,
integrate,
is_paramset,
jointmode,
kernel,
lineid,
linkparam,
mdl,
modelexpr,
modelstack,
nestedmodel,
noise,
paramprompt,
paramset,
pileup,
rename,
run_fit,
set_par,
set_paramset,
set_stackexpr,
source,
thaw,
truncate,
unlink
|