Gammapy v2.0: An upgrade of the Python package for gamma-ray astronomy
Gammapy team, K. Feijen, Q. Remy, A. Sinha, R. Terrier, A. Donath, F. Acero, T. Bylund, C. Galelli, B. Khélifi, D. Berge, C. Boisson, J. L. Contreras, S. Funk, M. Füßling, J. Hinton, R. López-Coto, F. Pintore, E. de Oña Wilhelmi, C. van Eldik, R. Zanin, A. Aguasca-Cabot, T. Arnesen, L. Barrios-Jimenez, J. Bernete, N. Biederbeck, J. Buchner, J. Djuvsland, K. Egg, G. Emery, S. Fröse, L. Gréaux, J. Konrad, P. Kornecki, M. Linhoff, M. Lundy, K. McKee, S. Mender, E. Molina, L. Mohrmann, D. Morcuende, M. Nievas Rosillo, L. Olivera-Nieto, S. Panny, R. D. Parsons, N. Pigoux, M. Peresano, T. Preis, M. Punch, M. Regeard, G. Roellinghoff, L. Schlegel, B. M. Sipőcz, H. Stapel, K. Streil, G. S. Subramanya, M. Takahashi, T. Unbehaun, S. Wong, P. Yu
Abstract
Open-source, community-driven software is increasingly central to modern astronomy, enabling reproducible and transparent high-level science analysis across multiple instruments and collaborations. Gammapy, an open-source Python package for γ-ray astronomy, provides a unified analysis framework accessible to the high-energy astrophysics community. In this paper, we present the second long term release of Gammapy, v2.0, introducing major statistical and methodological improvements to the analysis framework compared to paper for Gammapy, v1.0. New features include a joint test statistic and combined significance map estimation over multiple datasets, improved spectral uncertainty estimation via parameter sampling, Bayesian inference through nested sampling, a generalised sensitivity estimation framework, an energy-dependent morphology estimator, and new timing analysis utilities. Improvements have also been made in the documentation and the developer operations. As examples of the newly implemented features, we show combined significance maps from Fermi-LAT and H.E.S.S. observations for RX J1713.7-3946 and a HAWC sensitivity for an extended source with multiple event types. Comparison of "butterfly plots" between the previous version and current implementation are shown, as well as detailed discussions on upper limit calculations for very weak/non-existent sources. The power of nested sampling in probing multi-modal distributions is compared with traditional fitting results using a gradient descent from the minuit minimizer. Gammapy v2.0 consolidates a unified, instrument-agnostic framework for current and next-generation γ-ray observatories within a common analysis environment. Compared to the previous stable release, v2.0 brings significantly greater statistical rigour, equipping the community with more robust and trustworthy tools for high-level science analysis.
Create a lesson
Metadata
- Comments
- 12 pages, 11 figures. Accepted to A&A; Corresponding authors: K. Feijen, Q. Remy, A. Sinha, R. Terrier, B. Khélifi, F. Acero, T, Bylund, C. Galelli
Related papers
Rapid gamma-ray spectral variability during an exceptional flare of PKS 1510-089
Shared title terminologyastro-ph.HEPierre Pichard, Matteo Cerruti, Felix Jankowsky et al.
Kinematic and gamma-ray limits on a binary origin for the offset broad Hα line of PKS 0903-57
Shared title terminologyastro-ph.HEAlberto Domínguez, Adithiya Dinesh, Pablo Peñil et al.
Exploring Young Stellar Variability with THESEUS: Multi-wavelength Synergies and Gamma-ray Megaflare Prospects
Shared title terminologyastro-ph.HENóra Varga, Áron Juhász, L. Viktor Tóth
Constraining the Leptonic and Hadronic Contributions to the Gamma-Ray Emission of SNR HESS J1731-347 with CTAO Forecasts
Shared title terminologyastro-ph.HED. B. Götz, M. F. Sousa, R. C. Anjos
The Gamma-ray Luminosity Function of Fermi BL Lacertae Objects
Shared title terminologyastro-ph.HEGarima Rajguru, Lea Marcotulli, Marco Ajello et al.
The Sensitivity of Gamma-Ray Searches for Dark Matter Annihilation in Milky Way Dwarf Galaxies: the LSST Era and Beyond
Shared title terminologyastro-ph.HEIlumi Chavez, Aditya Ghosh, Chris Kelso et al.