Skip to main content

Download, process, visualize and classify Gamma-Ray-Bursts (GRB) from the Swift/BAT Telescope database.

Project description

Logo

ClassiPyGRB is a Python 3 package to download, process, visualize and classify Gamma-Ray-Bursts (GRBs) from the Swift/BAT Telescope (https://swift.gsfc.nasa.gov/about_swift/bat_desc.html) database. It is distributed over the GNU General Public License Version 2 (1991). Please, read the complete description of the method and its application to GRBs in this publication.

Attribution

If you use this code in a publication, please refer to the package by its name and cite Garcia-Cifuentes et al.(2023) -> arXiv link. Any question, please email Keneth Garcia-Cifuentes.

Dependencies

This repository requires Python 3.8 or high, and a list of packages downloaded automatically (numpy, scikit-learn, etc). In addition, it is required to install all the dependencies related to Tkinter, Pillow, and ImageTK. In Debian-based distros you can install these packages by running the following commands:

$ sudo apt-get install python3-tk
$ sudo apt-get install python3-pil python3-pil.imagetk

Other data management packages as Numpy or Pandas will be required in Documentation.

Installation

The latest sources from ClassiPyGRB are avaiable by cloning the repository:

$ git clone https://github.com/KenethGarcia/ClassiPyGRB
$ cd ClassiPyGRB
$ pip install .

Or, using pip:

$ pip install ClassiPyGRB@git+https://github.com/KenethGarcia/ClassiPyGRB

or by using the stable PyPI compiled version:

$ pip install ClassiPyGRB

Features

In ClassiPyGRB, it is possible to retrieve data from the Swift/BAT catalog by a three-line code:

from ClassiPyGRB import SWIFT
swift = SWIFT(res=64)
df = swift.obtain_data(name='GRB211211A')

Moreover, you can plot a light curve using one single line:

swift.plot_any_grb(name='GRB060614')

You can do specialized tasks to see the convergence of t-Distributed Stochastic Neighbor Embedding (TSNE):

convergence

or use a Graphical User Interface (GUI) to analyze the embeddings obtained by TSNE:

GUI

We strongly encourage you to read the Documentation of ClassiPyGRB before start. This documentation includes all the details and follow-up for managing and processing data from Swift/BAT, performing TSNE, plotting and animating their results, and how to use the internal GUI. Moreover, we developed intuitive notebooks to support you in your research.

Enhancement and Support

ClassiPyGRB is a open-source package where all kinds of contributions are welcome. Whether you want to report a bug or submit a pull request, your feedback, comments and suggestions will be very welcome.

Here are some ways you can get involved in this project:

  • Report a bug or issue on our GitHub Issues page.
  • Suggest a new feature or improvement by opening a new issue.
  • Submit a pull request with your code changes or enhancements.
  • Share ClassiPyGRB on social media or with your colleagues.

We appreciate your interest in this package. Please, do not hesitate to email Keneth Garcia to discuss any topic related to ClassiPyGRB.

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

ClassiPyGRB-1.0.0.tar.gz (287.8 kB view details)

Uploaded Source

Built Distribution

ClassiPyGRB-1.0.0-py3-none-any.whl (270.2 kB view details)

Uploaded Python 3

File details

Details for the file ClassiPyGRB-1.0.0.tar.gz.

File metadata

  • Download URL: ClassiPyGRB-1.0.0.tar.gz
  • Upload date:
  • Size: 287.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for ClassiPyGRB-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7275a08d6a8838c73392db8f87179d571962c54abaa3543813e7a9079c39e2dc
MD5 bd7dd298ef3522a9c76341535a322316
BLAKE2b-256 7977d30aa4b268795d2c1b3b1ba9129cb64de40a41d817ef1ce638a28b6e9f4a

See more details on using hashes here.

File details

Details for the file ClassiPyGRB-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ClassiPyGRB-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 270.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for ClassiPyGRB-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c1dc6a123946b10d226d0a2778fc8a7fa174b2d6a6cd55051f3579090703912
MD5 0acbbc8e4fb0eda802a1bd2e639d15fb
BLAKE2b-256 143d3befd0a7475dcb9c7b05b8fed012f3cb9a3cbf0dd3aeeeb3f19d578833d1

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