Module functions that return lists of available source and instrument models
Array_Type get_models([String_Type])
Array_Type get_inst_models([String_Type])
Error Return Value: NULL
Argument:
(1) matching string (default none: get all model names)
Returns a string array containing the names of all appropriate
Sherpa source or instrument models. (This includes
XSPEC models and user-defined models.)
If a string argument is
provided (e.g., "xs"), only those models whose names contain matching
substrings will be returned. Beware of case-sensitivity: upper-case
matching strings will yield a NULL return.
List all models with psf in their names.
sherpa> psfmods = get_inst_models("psf")
sherpa> printarr(psfmods)
fpsf1d
fpsf2d
tpsf1d
tpsf2d
- sherpa
-
autoest,
background,
create,
create_model,
createparamset,
fit,
freeze,
get_defined_models,
get_model_params,
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
|