Spectra with CountSpectrum from event files are different from loading the same data with Xspec/astropy using pha files #833
Labels
bug
It's a bug! Unexpected or unwanted behavior.
help wanted
We need additional help with these issues!
Description of the Bug
Per the title, the spectra loaded with the two different methods look slightly different. The script below uses the same obsid as the documentation, and compares the (detector space) spectra produced by 1) Stingray 2) pyXspec 3) loading in the ungrouped data with Astropy and 4) loading in the grouped data with Astropy. For the last two, I loaded the response matrix using nDspec, but that should not affect the results (that part of the code just wraps around Astropy).
The obsid is identical to the obsid used in the documentation, but I re-reduced the observation on my machine and used my own event file. The spectrum/response files were produces taking my own event file and running it through nicerl3 as standard.
Steps/Code to Replicate the Bug
Expected Results
In the plot produced at the end, the four spectra should be identical.
Actual Results
Instead, the spectra read with xspec/astropy look identical, but the one loaded with Stingray is offset slightly in some bins and/or shows some features.
The text was updated successfully, but these errors were encountered: