| AHELP for CIAO 4.5 Sherpa v1 | list_response_ids |
Context: info |
Synopsis
List all response IDs associated with a data set.
Syntax
list_response_ids( [id], [bkg_id=None] )
Description
A spectral data set can have instrument response data (RMF and ARF files) assigned to it automatically with load_pha(), or manually by the user with load_arf() / load_rmf(). The list_response_ids() function returns a list of all response files associated with a data set, by data set ID.
- 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")
- bkg_id - the id of the background, if the response is a background response; default=None
Example
sherpa> list_response_ids() sherpa> list_response_ids(1)
This function lists the response associated with a data set. If no argument is given, then the default data set ID is assumed, and the response (if any) associated with that data set is listed, by ID. listed.
sherpa> load_pha(1, "acis_2019_pha.fits")
read ARF file acis_2019_arf.fits
read RMF file acis_2019_rmf.fits
read background file acis_2019_pha.fits
sherpa> load_arf(1, "acis_2019_arf2.fits", 2)
sherpa> load_rmf(1, "acis_2019_rmf2.fits", "rmf2")
sherpa> list_response_ids()
[1, 2, 'rmf2']
Bugs
See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.
See Also
- data
- copy_data, dataspace1d, dataspace2d, delete_data, fake, get_arf, get_axes, get_bkg, get_bkg_plot, get_counts, get_data, get_data_plot, get_dep, get_dims, get_error, get_quality, get_rmf, get_specresp, get_staterror, get_syserror, group, load_arf, load_ascii, load_bkg_arf, load_bkg_rmf, load_data, load_grouping, load_multi_arfs, load_multi_rmfs, load_quality, load_rmf, set_arf, set_data, set_quality, set_rmf, ungroup, unpack_arf, unpack_ascii, unpack_data, unpack_rmf
- filtering
- get_filter, load_filter, set_filter
- info
- get_default_id, list_data_ids, list_functions
- methods
- list_iter_methods, list_methods
- modeling
- clean, get_response
- models
- list_model_components, list_models
- plotting
- plot_arf, plot_data, set_xlinear, set_xlog, set_ylinear, set_ylog
- saving
- save_error, save_filter, save_grouping, save_quality, save_staterror, save_syserror
- statistics
- list_priors, list_samplers
- utilities
- calc_data_sum, calc_data_sum2d, calc_ftest, calc_kcorr, calc_mlr, calc_model_sum2d, calc_source_sum2d, get_rate
- visualization
- contour, contour_data, contour_ratio, get_ratio, get_resid, histogram1d, histogram2d, image_data, rebin

![[Sherpa Logo]](../imgs/sherpa_logo_navbar.gif)