|
|
Set the source model expression to be used for fitting a dataset
The set_source command sets the source model expression to be used
for fitting the dataset.
-
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 to use as the source;
for a list of all available models, see
"ahelp models"
sherpa> set_source(powlaw1d.pl)
Set the source model of the default dataset to a 1-D
powerlaw named "pl".
sherpa> set_source(2, xswabs.a1 * xsbbody.b2)
Set the source model for dataset 2 to "xswabs.a1 * xsbbody.b2".
sherpa>
set_source("src","bbody.bb+powlaw1d.pl+gauss1d.line1+gauss1d.line2")
The source model for dataset "src" is built from four different
model components.
- py.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,
set_model_autoassign_func,
set_par,
set_pileup_model,
set_proj_opt,
set_rmf,
set_stat,
set_staterror,
set_syserror
- py.sherpa_contrib
-
set_param_limits_from_image
|