GRB lightcurve flare and continuum fitter.
Project description
Lightcurve and Flare Fitter - LAFF
A python package for automatic lightcurve and flare fitting in GRB lightcurves.
Description
This program looks to provide automatic and consistent fitting of GRB lightcurves, ultimately intended for statistical studies of a large collection of GRBs. Initially it looks for any 'significant' rises in flux which can be marked as a potential flare. Each potential flare is then refined and cut down until a set of start, peak and end times for flares are designated. This flare data is temporarily removed in order to fit a broken powerlaw to the continuum data - the best solution between 0 and up to 5 breaks is used. The flare data can then be readded and the flares fitted with either a simple gaussian, or more appropriately, a fast-rise slow-decay (FRED) curve.
With a fully fitted model, the program will output useful information, either printed to terminal or into a csv table. Such information includes flare timings, durations, number of breaks and fluence of the flares and continuum.
To run the program, the user simply needs to point LAFF towards an appropriate lightcurve file (current and planned formats are shown below). See below for full commands and optional instructions.
Getting Started
Dependencies
- Python 3
- lmfit (v1.0.3 or newer)
- astropy (v5.1 or newer)
- pandas (v1.4 or newer)
- matplotlib (v3.5 or newer)
- scipy (v1.8 or newer)
- numpy (v1.23 or newer)
All available through standard python package installation methods (e.g. pip). Earlier versions of these may work but have not been explicility tested.
Installing
To download as pip package:
pip install laff
Executing program
- How to run the program
- Step-by-step bullets
code blocks for commands
Help
Any advise for common problems or issues.
command to run if program contains helper info
Authors
Contributors names and contact info
ex. Dominique Pizzie
ex. @DomPizzie
Version History
- 0.2
- Various bug fixes and optimizations
- See commit change or See release history
- 0.1
- Initial Release
License
This project is licensed under the [NAME HERE] License - see the LICENSE.md file for details
Acknowledgments
Inspiration, code snippets, etc.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file laff-0.9.5.tar.gz
.
File metadata
- Download URL: laff-0.9.5.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.8.8 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 207c02269c03d60c096bd52b123695e3eda6407337a797d3041e65b0d5c7e78d |
|
MD5 | 7e28a89d3023bb759d3456e520c3538d |
|
BLAKE2b-256 | 978ed6ffe4ca52c7e4df93baec7a59409e309ce53f556e4674dee0a5aa4aec9e |
File details
Details for the file laff-0.9.5-py3-none-any.whl
.
File metadata
- Download URL: laff-0.9.5-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.8.8 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d13f06566d4596a04f102456fab2b125a8078edfe680a1bba7a64c3ddc173ed0 |
|
MD5 | 9f83fdb3ac3abcbc5cf62bf0868cbbed |
|
BLAKE2b-256 | 8b57bbc31ddc563f3c5b2616d939cd502f66e05e3581d4c89c97968278e19107 |