-
Notifications
You must be signed in to change notification settings - Fork 22
Add SpectrumFileProcessor class for automated spectral data conversion and formatting #257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Add SpectrumFileProcessor class for automated spectral data conversion and formatting #257
Conversation
krishnatejavedula
commented
Oct 24, 2024
- Implemented SpectrumFileProcessor class to handle energy and flux data conversion for spectrum files not in the MEGAlib spectrum file format.
- Added energy conversion feature: converts frequency (Hz) to energy (keV) and flux from ergs/cm²/sec to ph/cm²/sec/keV using astropy units.
- Implemented data filtering to restrict energy range to 100 keV - 10,000 keV for accurate source injector functionality.
- Reformatted output to ensure compatibility with SpecFromDat class and consistency across cosipy and DCs spectral files.
…n and formatting - Implemented SpectrumFileProcessor class to handle energy and flux data conversion for spectrum files not in the MEGAlib spectrum file format. - Added energy conversion feature: converts frequency (Hz) to energy (keV) and flux from ergs/cm²/sec to ph/cm²/sec/keV using astropy units. - Implemented data filtering to restrict energy range to 100 keV - 10,000 keV for accurate source injector functionality. - Reformatted output to ensure compatibility with SpecFromDat class and consistency across cosipy and DCs spectral files.
Codecov ReportAttention: Patch coverage is
❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (100.00%). You can increase the patch coverage or adjust the target coverage.
🚀 New features to boost your workflow:
|
@krishnatejavedula Thanks for this work. Looks good. I have a quick comment. |
Thanks @krishnatejavedula. Any updates to this?
|