Manipulate a stack of spectra in Sherpa.
The methods in the SpecStack class provide a way to automatically apply familiar Sherpa commands such as set_par or freeze or plot_fit to a stack of PHA spectra. This simplifies simultaneous fitting of multiple spectra.
Note that the specstack module is currently distributed within with the deproject package. Specstack is not yet fully documented or tested outside the context of deproject.
| Copyright: | Smithsonian Astrophysical Observatory (2009) |
|---|---|
| Author: | Tom Aldcroft (aldcroft@head.cfa.harvard.edu) |
Bases: object
Manipulate a stack of spectra in Sherpa.
Find the normalization value for the shell model. Check for multiple or missing norms.
| Parameters: | shell – shell index |
|---|---|
| Return type: | norm value |
Find the value of the first parameter with the given parname. Ignore case when matching.
| Parameters: | parname – parameter name |
|---|---|
| Return type: | parameter value |
Apply freeze command to specified parameter for each dataset.
| Parameters: | par – parameter specifier in format <model_type>.<par_name> |
|---|---|
| Return type: | None |
Get array of parameter values for datasets.
| Parameters: |
|
|---|---|
| Return type: | numpy array of parameter value ordered by dataset |
Apply Sherpa ignore command to each dataset.
Load a pha file and add to the datasets for stacked analysis.
| Parameters: |
|
|---|
Return the number of datasets :rtype: int
Apply Sherpa notice command to each dataset.
Print window for each dataset.
| Parameters: |
|
|---|---|
| Return type: | None |
Set parameter value for each dataset.
| Parameters: |
|
|---|---|
| Return type: | None |
Subtract background from each dataset
Apply thaw command to specified parameter for each dataset.
| Parameters: | par – parameter specifier in format <model_type>.<par_name> |
|---|---|
| Return type: | None |