Chandra X-Ray Observatory
Skip to the navigation links
Last modified: December 2013

Jump to: Description · Examples · Bugs · See Also

AHELP for CIAO 4.9 Sherpa v1


Context: data


Set the systematic errors


set_syserror([id], val, [fractional,] [bkg_id])


The set_syserror command sets the systematic errors for a dataset. The error value may be an array or a single value to be repeated for every bin. Setting the fractional argument uses the scalar value as the fractional portion of the dependent array as the errors.

  • id - the id of the dataset to use; if not given, uses the default dataset id (id=1 by default, see "ahelp get_default_id")
  • val - array or scalar error values
  • fractional - use a fractional portion of the dependent array as the error? default=False . May be set to True , only if the "val" is a scalar.
  • bkg_id - the id of the background, if setting the background value; default=None

Sherpa reads in the grouping flags from file and turns on grouping by default, if possible. The errors will be grouped if grouping is on.

Example 1

sherpa> set_syserror([0.040, 0.039, 0.041, ...])

Set the syserrors to an array of error values.

Example 2

sherpa> set_syserror(2, 0.04)

Set the systematic errors for dataset id=2 to 0.04 for all bins.

Example 3

sherpa> set_syserror(0.05, fractional=True)

Use a fractional portion (0.05) of the dependent array as the errors for the default dataset.


See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.

See Also

set_conf_opt, set_covar_opt, set_proj_opt
set_areascal, set_arf, set_backscal, set_bkg, set_coord, set_counts, set_data, set_exposure, set_grouping, set_quality, set_rmf, set_staterror
set_iter_method, set_iter_method_opt, set_method, set_method_opt
get_par, set_bkg_model, set_full_model, set_par, set_pileup_model, set_source, set_xsabund, set_xscosmo, set_xsxsect, set_xsxset
set_prior, set_sampler, set_sampler_opt, set_stat
set_analysis, set_default_id

Last modified: December 2013
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.