foxsi / foxsi-smex

Tools for scientists to investigate the capabilities of FOXSI
MIT License
2 stars 8 forks source link

Adding more options for user provided spectral information and adding counting statistics. #19

Closed samuel-badman closed 8 years ago

samuel-badman commented 8 years ago

Two new features:

-Users are now able to specify either the max and min energy values of the highest energy bin and lowest energy bins respectively in their data or provide an explicit array with energy bin boundary values (with dimensions equal to the height of their data cube + 1). There are also defaults in place in case neither of these are provided and the programme outputs text warnings that these parameters are missing.

-Counting statistics in each pixel are now accounted for in order to hopefully produce more realistic images. This is done by replacing each pixel in the final data cube with a value drawn pseudorandomly (from the idl RANDOMU routine) from a poisson distribution with a mean given by the number of counts in that pixel.