https://github.com/johannesbuchner/addspec.py
Merging X-ray spectra
https://github.com/johannesbuchner/addspec.py
Last synced: 7 months ago
JSON representation
Merging X-ray spectra
- Host: GitHub
- URL: https://github.com/johannesbuchner/addspec.py
- Owner: JohannesBuchner
- Created: 2016-04-28T15:54:47.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-04-23T08:03:15.000Z (over 4 years ago)
- Last Synced: 2025-01-23T20:52:14.406Z (8 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Summing/Merging/Adding X-ray point source spectra
==================================================The HEASOFT/ftools/addspec commands adds background spectra counts
inconsistent with poisson statistic.You can detect this problem by seeing the number of counts in the various
energy bins in the background spectrum. If they are 0,1,2,3,4, there is no
problem, if they are 0,510,1020,1530 the file is incorrect.The python script (python addspec.py filelist prefix) provides and
executes the correct mathpha command to create the correct background file.Improvements are welcome.
Usage
------::
$ addspec.py prefix file1.pha file2.pha file3.pha
or::
$ addspec.py prefix @src.txt
where src.txt contains the filenames (one line each).
Licence
--------MIT