Set the model expression to be used for fitting a dataset
set_model( [id]; model=NULL );
The set_model command adds a model to the list of model
components. It may be used to establish model components for
use by commands such as eqwidth
("ahelp eqwidth").
-
id - the id of the dataset; if not given, uses the default dataset id (id=1 by default, see "ahelp get_default_id")
-
model - the model expression;
for a list of all available models, see
"ahelp models"
sherpa> set_model(xsphabs.abs1*powlaw1d.p1);
The model for the default dataset is set to photo-electric
absorption times a 1-D powerlaw.
sherpa> set_model("bkg1", gauss2d.g2d);
The model for dataset "bkg1" is set to a gauss2d model.
- sl.sherpa
-
add_user_pars,
calc_chisqr,
calc_energy_flux,
calc_model_sum,
calc_photon_flux,
calc_source_sum,
calc_stat,
clean,
contour_model,
contour_ratio,
contour_resid,
create_model_component,
delete_bkg_model,
delete_model,
delete_model_component,
delete_psf,
eqwidth,
get_bkg_plot,
get_model,
get_model_autoassign_func,
get_model_plot,
get_num_par,
get_order_plot,
get_par,
get_pileup_model,
get_ratio,
get_resid,
get_source,
image_model,
image_setregion,
image_source,
integrate,
link,
list_model_ids,
load_table_model,
load_user_model,
plot_model,
plot_source,
reset,
set_analysis,
set_areascal,
set_arf,
set_backscal,
set_bkg,
set_bkg_model,
set_coord,
set_counts,
set_covar_opt,
set_data,
set_default_id,
set_exposure,
set_grouping,
set_method,
set_method_opt,
set_model_autoassign_func,
set_par,
set_pileup_model,
set_proj_opt,
set_rmf,
set_source,
set_stat,
set_staterror,
set_syserror
- sl.sherpa_contrib
-
set_param_limits_from_image
|