Search arXiv⌕ Search

arXiv · 2611.40885

Gammapy v2.0: An upgrade of the Python package for gamma-ray astronomy

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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

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. 2026-12-02. Gammapy v2.0: An upgrade of the Python package for gamma-ray astronomy. https://searcharxiv.org/abs/2611.40885

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Compact Accretion Disks in the Aftermath of Tidal Disruption Events: Parameter Inference from Joint X-ray Spectra and UV/Optical Photometry Fitting

We present a multi-wavelength analysis of 16 tidal disruption events (TDEs)---including an off-nuclear event in an ultra-compact dwarf galaxy---selected for having available thermal X-ray spectra during their late-time UV/optical plateau phase. We show that at these stages, the full spectral energy distribution---X-ray spectra and UV/optical photometry---is well described by a compact, yet standard accretion disk, the same disk which powers the X-rays at all times. By fitting up to three epochs per source with a fully relativistic disk model, we show that many system properties can be reliably recovered, including importantly the black hole mass ($M_{\bullet}$). These accretion-based $M_{\bullet}$ values, spanning three orders of magnitude in the sample, are consistent with galactic scaling relations, but are significantly more precise (typical uncertainty of $ \sim\pm 0.2$ dex) and physically motivated. Expected accretion scaling relations ($L_{\rm Bol}^{\rm disk}/ L_{\rm Edd} \propto T_p^4 \propto M_{\bullet}^{-1}$), TDE-specific physics correlations ($L_{\rm{plat}} \propto M_{\bullet}^{2/3}$ and $R_{\rm out}/r_g \propto M_{\bullet}^{-2/3}$) and black hole--host galaxy correlations ($M_{\bullet}$-$M_{\rm gal}$ and $M_{\bullet}$-$σ_{\rm *}$) naturally emerge from the data and, for the first time, are self-consistently extended into the intermediate-mass (IMBH, $M_{\bullet} < 10^{5} M_{\odot}$) regime. We discuss the implications of these results for TDE physics and modeling. We also review and discuss different methods for $M_{\bullet}$ inference in TDEs, and show that approaches based on physical models of the early-time UV/optical emission are not able to recover black hole--host galaxy correlations, implying $M_{\bullet}$ inferred by these methods may not be reliable.

astro-ph.HE↗

The KM3NeT event: a primordial high energy neutrino?

High energy neutrinos can be injected in the early Universe from the decay or annihilation of long lived primordial relics. We analyse the possibility that the ultrahigh energy neutrino event recently observed by the KM3NeT neutrino telescope could have such an origin. This possibility has the advantage of leading to a sharp spectral feature in such a way that the neutrino flux can be small at all energies except at the KM3NeT event energy. Thus, along this scenario the tension with null results from other experiments is reduced with respect to the usual power law case analysed by the KM3NeT and IceCube experiments, down to nearly the irreducible tension between these datasets. At such energies and for an emission around the recombination time, interactions of these neutrinos with background neutrinos prove to be relevant and must be determined from the development of a dedicated code. These interactions, as well as final state radiation processes, modify the spectrum. Interestingly, it turns out that the scenario can also leave an imprint in the CMB that could be probed in the near future. Interestingly too, this scenario does not predict an associated $γ$-ray flux beyond observation. All in all we do find that the high energy neutrino could be a primordial high energy neutrino, provided it has been produced around the recombination time or later. More generally, the KM3NeT event constitutes an excellent case study of how the spectrum of primordial high energy neutrinos is distorted by medium effects.

astro-ph.HE↗

CRESCENDO II: Spectral cosmic rays with improved energy losses and realistic supernova seeding

Context. Cosmological simulation codes with subgrid models for cosmic rays (CRs) help us better understand their impact on baryonic feedback and non-thermal radiation in galaxies and galaxy clusters. An accurate numerical description requires a spectrally resolved treatment of the CR population, because virtually all transport, acceleration and loss processes depend on energy. Aims. We advance the treatment of CR electrons and protons in the on-the-fly spectral CR solver CRESCENDO in OpenGadget3. Methods. We implement several new energy loss processes for both protons and electrons and improve the computation of their energies and pressures beyond the ultra-relativistic approximation. Moreover, we present a subgrid model for CR seeding by supernova remnants, in which physically motivated spectra are injected at sites of ongoing star formation. Results. We test the newly implemented loss processes and the coupling between CR injection and star formation in idealized setups. We also highlight numerical subtleties, such as the differences arising when hadronic losses are modelled as continuous or catastrophic process, and the advantages of using a flexible spectral cut-off and abandoning the ultra-relativistic approximation. Furthermore, we show that using analytical approximations to compute energy fluxes can cause the slope reconstruction to fail. Conclusions. Future applications of our spectral cosmic-ray model in large-scale, full-physics cosmological simulations will represent an important step towards building a robust and observationally verifiable link between the microphysical and macrophysical aspects of the CR component in the modern paradigm of galaxy evolution.

astro-ph.HE↗