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.3.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.3.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for isgri-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ff501469024674e0e8d164cb7da2b2767ea5d0a4111c4cfb9947b11688ce8edb
MD5 78fa5085954d483bd59c8242111d001c
BLAKE2b-256 d4a49f137718204b34cc55b09a7f580c146f85444703c8541193d3325d9a0d2f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for isgri-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1eff0c60621c3c5e440681a203e9ee5b1b8279572be68163711bf079061bfb9d
MD5 33f09eb84579a33afbdfca36dfdab3c1
BLAKE2b-256 5740e05a82bd8c51808fe9511f53829a221cf2854fabd5c55bcbbafb584faae1

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