Search arXiv⌕ Search

arXiv subjects

L. Schlegel

Publications and source records attributed to L. Schlegel.

2 recordsLinked to original sources

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

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.

astro-ph.HE↗

Interpolation of turbulent magnetic fields and its consequences on diffusive cosmic ray propagation

Numerical simulations of the propagation of charged particles through magnetic fields solving the equation of motion often leads to the usage of an interpolation in case of discretely defined magnetic fields, typically given on a homogeneous grid structure. However, the interpolation method influences the magnetic field properties on the scales of the grid spacing and the choice of interpolation routine can therefore change the result. At the same time, it provides an impact, i.e.\ error, on the spatial particle distribution. We compare three different interpolation routines -- trilinear, tricubic and nearest neighbor interpolation -- in the case of turbulent magnetic fields and show that there is no benefit in using trilinear interpolation. We show that in comparison, the nearest neighbor interpolation provides the best performance, i.e.\ requires least CPU time and results in the smallest error. In addition, we optimize the performance of an algorithm that generates a continuous grid-less turbulent magnetic field by more than an order of magnitude. This continuous method becomes practicable for the simulation of large particle numbers and its accuracy is only limited by the used number of wave-modes. We show that by using more than 100 wave-modes the diffusive behavior of the spatial particle distribution in form of the diffusion coefficient is determined with an error less than a few percentage.

astro-ph.HE↗