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/dominp/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()

About PIF files: PIF (Pixel Illumination Fraction) files contain per-pixel sensitivity maps generated by OSA task ii_pif. They weight events based on source position to improve signal-to-noise ratio. Using PIF files is recommended but optional.

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

  • Tutorial: - Tutorial: See demo notebook on GitHub
  • API docs: All functions have docstrings - use help(LightCurve)

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.2.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.2.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: isgri-0.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 864394242775a151cc977f08a3594f5e17ba19708b22d755bea28d17abfd3287
MD5 a7c750e9ea959666d1641aef8411d83e
BLAKE2b-256 9247aedb93d9551593ed245b8033cb1c0e4e616cea5d2e0e30203852baf1628e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: isgri-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cddb62c758d575071e1393accf11c692a9277634884d1d6b78f1b53c19084e86
MD5 a03f2da4f0c6cf96357f2b619496594a
BLAKE2b-256 20711858b1d89c70bb587b6a033faa9cdd5c0a6ca8d7d6259e864be64cb830dd

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