Python package for GRB analysis
Project description
pygrb_lc
Package to load and handle GRB (Gamma-ray bursts) light curves, their furie transformations and various other functions.
To install run the following command
pip install --upgrade pygrb_lc
or
pip3 install --upgrade pygrb_lc
Main object in this package is LightCurve object and its children. Start by creating one
from pygrb_lc.light_curves import LightCurve # base class for ligth curve
lc = LightCurve()
print(lc)
It is created but empty, semplest way to provide data is by data argument, that requires numpy.ndarray with 2 (time, signal) or 4 (time, time_err, signal, signal_err) columns
import numpy as np
data = np.loadtxt('test.txt')
lc = LightCurve(data = data)
print(lc)
There are specific classes for INTERAL/SPI-ACS and Fermi/GBM instruments. They are able to load actual data from web, you need to specify it in loading_method parameter
from pygrb_lc.light_curves import SPI_ACS_LightCurve, GBM_LightCurve
lc1 = SPI_ACS_LightCurve('2020-01-01 00:00:00', 500, loading_method = 'web')
lc2 = GBM_LightCurve('2020-01-01 00:00:00', ['na'], duration = 500, loading_method = 'web')
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygrb_lc-0.0.7.tar.gz.
File metadata
- Download URL: pygrb_lc-0.0.7.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fc7045819ad0900a87c5929e3a1b4174468b119833b2c307886b77f45f38342
|
|
| MD5 |
916f44baaf835728541e723867f7eb5d
|
|
| BLAKE2b-256 |
e9982ed3ab53a753dc615298ef3c4044a5d618700e2d2acb1c8de6f328b644ce
|
File details
Details for the file pygrb_lc-0.0.7-py3-none-any.whl.
File metadata
- Download URL: pygrb_lc-0.0.7-py3-none-any.whl
- Upload date:
- Size: 17.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13c3dd567b636f63921ccfb275224da9e574b57c352937231f2f9802a55e6560
|
|
| MD5 |
d5be961609b6346d3f3287efb4c92fa6
|
|
| BLAKE2b-256 |
95a35288f098322b00d3d2bc67e5fb23583f91eee7edd2da67d5eb9ef77294ec
|