Skip to main content

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

License

This project is licensed under the [NAME HERE] License - see the LICENSE.md file for details

Acknowledgments

Inspiration, code snippets, etc.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

laff-0.6.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

laff-0.6.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file laff-0.6.0.tar.gz.

File metadata

  • Download URL: laff-0.6.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.8.8 Darwin/22.4.0

File hashes

Hashes for laff-0.6.0.tar.gz
Algorithm Hash digest
SHA256 a2c9e2018a30253de2fdb96c74d6f84adc867615e7022c1d29ff210e0343a084
MD5 0fbd61190464220978e4ee9b8b9e68e9
BLAKE2b-256 bf52ff01e1f9747b7e575cbc06a5fb4a441daed43e52f9206f9d8da19205dffa

See more details on using hashes here.

File details

Details for the file laff-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: laff-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.8.8 Darwin/22.4.0

File hashes

Hashes for laff-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 98a0fae6b978682c8bb415954587c5eb6636222f1a2e4ba86b83963166ef61c4
MD5 9e8a3ccb5160caf574bee9bc3f1cdb54
BLAKE2b-256 2d53599ceb71c000d9cb1bf5e4444c4b1e58a2dc588a832c4ea3df4fe4395262

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page