Skip to main content

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


Download files

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

Source Distribution

pygrb_lc-0.0.6.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygrb_lc-0.0.6-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file pygrb_lc-0.0.6.tar.gz.

File metadata

  • Download URL: pygrb_lc-0.0.6.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

Hashes for pygrb_lc-0.0.6.tar.gz
Algorithm Hash digest
SHA256 bf7a05118099a762509f487446f1fb29d659f28237128b5e41f44f5aa4bcfdb9
MD5 0e3b94f761057a03fd0088f87a31613f
BLAKE2b-256 626d8a0538f5bf69953e2b115300088b6c2919fcf37a821331a7d27efcc56e04

See more details on using hashes here.

File details

Details for the file pygrb_lc-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: pygrb_lc-0.0.6-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

Hashes for pygrb_lc-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1a026ee33c9992c17d0e27191ebec7b783aebfe9a338dc81f6ddb4d0aa72a2ca
MD5 203cfe2fb681d6b7a9a74f0808f13ed7
BLAKE2b-256 2c33f3a109b89d3b9476d86d0a9da285517ef881a45a759bef8b8aafab56a47d

See more details on using hashes here.

Supported by

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