Skip to main content

Python package for INTEGRAL IBIS/ISGRI lightcurve analysis

Project description

isgri

Python package for ISGRI (INTEGRAL Soft Gamma-Ray Imager) lightcurve analysis.

Installation

pip install isgri

Or from source:

git clone https://github.com/yourusername/isgri.git
cd isgri
pip install -e .

Quick Start

from isgri.utils import LightCurve, QualityMetrics

# Load data
lc = LightCurve.load_data(
    events_path='/path/to/isgri_events.fits',
    pif_path='/path/to/source_model.fits'
)

# Create lightcurve
time, counts = lc.rebin(binsize=1.0, emin=30, emax=300)

# Create lightcurve per each module
times, module_counts = lc.rebin_by_modules(binsize=1.0, emin=30, emax=300)

# Compute quality metrics
qm = QualityMetrics(lc, binsize=1.0, emin=30, emax=300)
chi = qm.raw_chi_squared()

Features

  • Load ISGRI events and PIF files
  • Rebin lightcurves with custom binning
  • Module-by-module analysis (8 detector modules)
  • Quality metrics (chi-squared variability tests)
  • Time conversions (IJD ↔ UTC)
  • Custom event filtering

Documentation

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

isgri-0.1.0.tar.gz (49.1 MB view details)

Uploaded Source

Built Distribution

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

isgri-0.1.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file isgri-0.1.0.tar.gz.

File metadata

  • Download URL: isgri-0.1.0.tar.gz
  • Upload date:
  • Size: 49.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for isgri-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9a47e7a0687fd849a962a49b65c4acf0f4a966670a17cc7d4c3bbab439370f63
MD5 8780ca36658637d08b5439837b2293cd
BLAKE2b-256 630ed7f96f9aee5ae381da55ab67c377beb39505bfc65a75594b43e6e25da465

See more details on using hashes here.

File details

Details for the file isgri-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: isgri-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for isgri-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4aa404e7fb44865d18f6ef7361e836d78fa74951e8d61a656be0ce3eb2fbe2c0
MD5 1bfb25f9c25f6e249690caf6b0a61656
BLAKE2b-256 05c96faab1e8f1696839bcbe0be51003d64341c87b88e810c4c2a6d1004e2d01

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