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

URL: http://cxc.harvard.edu/sherpa/ahelp/set_rmf.html
Jump to: Description · Examples · Bugs · See Also


AHELP for CIAO 4.6 Sherpa v1

set_rmf

Context: data

Synopsis

Set an RMF dataset

Syntax

set_rmf( [id], rmf, [resp_id=1, bkg_id=None] )

Description

The set_rmf command assigns an RMF to a dataset.

  • 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")
  • rmf - an RMF dataset, e.g. created by unpack_rmf ("ahelp unpack_rmf")
  • resp_id - the id of the response, if multiple responses exist for the dataset; default is id=1
  • bkg_id - the id of the background, if the response is a background response; default=None

Example 1

sherpa> rmf1 = unpack_rmf("rmf.fits")
sherpa> set_rmf("src", rmf1)

Create a Sherpa dataset called "rmf1" from the file rmf.fits. It is then assigned as the first response for the dataset "src".

Example 2

sherpa> set_rmf( 2, myrmf, resp_id=3)

Set the data in "myrmf" as the third RMF of dataset 2.

Bugs

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

See Also

confidence
set_conf_opt, set_covar_opt, set_proj_opt
data
get_bkg, get_rmf, load_bkg_rmf, load_multi_rmfs, load_rmf, set_areascal, set_arf, set_backscal, set_bkg, set_coord, set_counts, set_data, set_exposure, set_grouping, set_quality, set_staterror, set_syserror, unpack_rmf
filtering
set_filter
info
list_response_ids
methods
set_iter_method, set_iter_method_opt, set_method, set_method_opt
modeling
get_par, get_response, set_bkg_model, set_full_model, set_par, set_pileup_model, set_source, set_xsabund, set_xscosmo, set_xsxsect, set_xsxset
statistics
set_prior, set_sampler, set_sampler_opt, set_stat
utilities
set_analysis, set_default_id
visualization
image_setregion

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:   cxcweb@head.cfa.harvard.edu Smithsonian Institution, Copyright © 1998-2014. All rights reserved.