Create and view spectral files for ChaRT2 (CIAO contributed package).
from sherpa_contrib.chart import *
Loading the routines
The module can be loaded into Sherpa by saying either of:
from sherpa_contrib.chart import * from sherpa_contrib.all import *
where the second form loads in all the Sherpa contributed routines, not just the chart module.
The chart module currenly provides the following routines:
|save_chart_spectum||Writes out the model spectrum in the units used by by ChaRT2|
|plot_chart_spectum||Plot the model spectrum in the units used by ChaRT2|
|get_chart_spectum||Get the model spectrum in the units used by ChaRT2|
See the ahelp file for the routine and the contributed scripts page for further information.
Changes in the scripts 4.11.4 (2019) release
Plotting can now use matplotlib
The plot_chart_spectrum() routine now uses the Sherpa plot backend (controlled by the plot_pkg setting in a user's ~/.sherpa.rc file), rather than always using ChIPS. As part of this change the extra labelling in the plot - that gave the model name and dataset identifier - have been removed (although the model name is now included in the plot title).
Changes in the scripts 4.8.2 (January 2016) release
The routines have been updated to work with version 2 of ChART.
See the bugs pages for an up-to-date listing of known bugs.