Gammapy: A Python package for gamma-ray astronomy
arXiv:2308.13584 · doi:10.1051/0004-6361/202346488
Abstract
In this article, we present Gammapy, an open-source Python package for the analysis of astronomical -ray data, and illustrate the functionalities of its first long-term-support release, version 1.0. Built on the modern Python scientific ecosystem, Gammapy provides a uniform platform for reducing and modeling data from different -ray instruments for many analysis scenarios. Gammapy complies with several well-established data conventions in high-energy astrophysics, providing serialized data products that are interoperable with other software packages. Starting from event lists and instrument response functions, Gammapy provides functionalities to reduce these data by binning them in energy and sky coordinates. Several techniques for background estimation are implemented in the package to handle the residual hadronic background affecting -ray instruments. After the data are binned, the flux and morphology of one or more -ray sources can be estimated using Poisson maximum likelihood fitting and assuming a variety of spectral, temporal, and spatial models. Estimation of flux points, likelihood profiles, and light curves is also supported. After describing the structure of the package, we show, using publicly available -ray data, the capabilities of Gammapy in multiple traditional and novel -ray analysis scenarios, such as spectral and spectro-morphological modeling and estimations of a spectral energy distribution and a light curve. Its flexibility and power are displayed in a final multi-instrument example, where datasets from different instruments, at different stages of data reduction, are simultaneously fitted with an astrophysical flux model.
26 pages, 16 figures
References in corpus (37)
- SciPy 1.0--Fundamental Algorithms for Scientific Computing in Python
- Array Programming with NumPy
- Astropy: A Community Python Package for Astronomy
- scikit-image: Image processing in Python
- The Large Area Telescope on the Fermi Gamma-ray Space Telescope Mission
- Fermi Large Area Telescope Fourth Source Catalog
- The extragalactic optical-infrared background radiations, their time evolution and the cosmic photon-photon opacity
- The Evolution and Structure of Pulsar Wind Nebulae
- astroquery: An Astronomical Web-Querying Package in Python
- PPPC 4 DM ID: A Poor Particle Physicist Cookbook for Dark Matter Indirect Detection
- Birth and Evolution of Isolated Radio Pulsars
- Extragalactic Background Light Inferred from AEGIS Galaxy SED-type Fractions
- The Parkes multibeam pulsar survey: VI. Discovery and timing of 142 pulsars and a Galactic population analysis
- Modeling the Extragalactic Background Light from Stars and Dust
- The major upgrade of the MAGIC telescopes, Part II: A performance study using observations of the Crab Nebula
- The H.E.S.S. Galactic plane survey
- 3FHL: The Third Catalog of Hard Fermi-LAT Sources
- Background Modelling in Very-High-Energy gamma-ray Astronomy
- The 2HWC HAWC Observatory Gamma Ray Catalog
- 2FHL: The Second Catalog of Hard Fermi-LAT Sources
- Stingray: A Modern Python Library For Spectral Timing
- 3HWC: The Third HAWC Catalog of Very-High-Energy Gamma-ray Sources
- The extragalactic background light revisited and the cosmic photon-photon opacity
- PINT: A Modern Software Package for Pulsar Timing
- The population of TeV pulsar wind nebulae in the H.E.S.S. Galactic Plane Survey
- Measurement of the Crab Nebula Spectrum Past 100 TeV with HAWC
- Simultaneous multiwavelength observations of the second exceptional gamma-ray flare of PKS 2155-304 in July 2006
- Ground-based detectors in very-high-energy gamma-ray astronomy
- GammaLib and ctools: A software framework for the analysis of astronomical gamma-ray data
- Towards open and reproducible multi-instrument analysis in gamma-ray astronomy
- Population study of Galactic supernova remnants at very high -ray energies with H.E.S.S.
- ASTRI Mini-Array Core Science at the Observatorio del Teide
- Validation of open-source science tools and background model construction in -ray astronomy
- agnpy: An open-source python package modelling the radiative processes of jetted active galactic nuclei
- Software Use in Astronomy: an Informal Survey
- Archiving and referencing source code with Software Heritage
- Survey of the Galactic Plane with the CherenkovTelescope Array
Cited by in corpus (54)
- Acceleration and transport of relativistic electrons in the jets of the microquasar SS 433
- Spectrum and extension of the inverse-Compton emission of the Crab Nebula from a combined Fermi-LAT and H.E.S.S. analysis
- The Spectra of IceCube Neutrino (SIN) candidate sources -- V. Modeling and interpretation of multiwavelength and neutrino data
- Curvature in the very-high energy gamma-ray spectrum of M87
- Detection of RS Oph with LST-1 and modelling of its HE/VHE gamma-ray emission
- Very-high-energy -ray emission from young massive star clusters in the Large Magellanic Cloud
- Multi-messenger emission from magnetic reconnection in blazar jets: the case of TXS 0506+056
- Galactic transient sources with the Cherenkov Telescope Array Observatory
- Constraints on Lorentz invariance violation from the extraordinary Mrk 421 flare of 2014 using a novel analysis method
- Prospects for gamma-ray emission from magnetar regions in CTAO observations
- Improvements to monoscopic analysis for imaging atmospheric Cherenkov telescopes: Application to H.E.S.S
- Time-Dependent Modeling of the Sub-Hour Spectral Evolution During the 2013 Outburst of Mrk 421
- The optimal on-source region size for detections with counting-type telescopes
- Prediction of radio-quiet gamma-ray pulsar distances using the Fundamental Plane relation
- Hillas meets Eddington: The case for blazars as ultra-high-energy neutrino sources
- GRB 221009A: Observations with LST-1 of CTAO and Implications for Structured Jets in Long Gamma-Ray Bursts
- Ultra High Energy Neutrino Event KM3-230213A as a Signal of Electroweak Vacuum Turbulence in Merging Black Hole Binaries
- Detection of very-high-energy gamma-ray emission from Eta Carinae during its 2020 periastron passage
- A Unified Multi-Wavelength Data Analysis Workflow with gammapy. Constraining the Broadband Emission of FSRQ OP 313
- Gamma-ray signature of superluminous supernovae: Fermi-LAT GeV detection of SN 2017egm and evidence of a central engine
- A new method of reconstructing images of gamma-ray telescopes applied to the LST-1 of CTAO
- VHE -ray observations of bright BL Lacs with the Large-Sized Telescope prototype (LST-1) of the CTAO
- Recasting Experimental Constraints on Relativistic Magnetic Monopoles
- Benchmarking Quantum Convolutional Neural Networks for Signal Classification in Simulated Gamma-Ray Burst Detection
- Cosmic rays, gas and dust in the Central Molecular Zone I -- factors, cosmic-ray densities and dust opacities
- A Systematic Assessment of Data Volume Reduction for IACTs
- Recasting and Forecasting Dark Matter Limits Without Raw Data: A Generalized Algorithm for Gamma-Ray Telescopes
- Detection of the Geminga pulsar at energies down to 20 GeV with the LST-1 of CTAO
- Constraints on the VHE counterpart of two binary black hole mergers observed by the MAGIC and CTAO LST-1 telescopes
- Overview of the ESCAPE Dark Matter Test Science Project for Astronomers
- The Effect of Pulsar Geometry on the Observed Gamma-ray Spectrum of Millisecond Pulsars
- Unveiling extended gamma-ray emission around HESS J1813-178
- Finding strangelets in cosmic rays from HESS J1731-347, a possible strange quark star using the Cherenkov Telescope Array Observatory
- Search for long-term variability of HESS J1745-290
- Hunting Star-Forming Galaxies in the Gamma-Ray Domain
- The GPSP Atlas: High-resolution Galactic Photon Survival Probability Atlas for Very-High- and Ultra-High-Energy Gamma-Ray Astronomy
- Standardised formats and open-source analysis tools for the MAGIC telescopes data
- Gamma-ray emission toward supergiant shells in the Large Magellanic Cloud
- UHECRs Propagation and their Multimessengers: Upper limits and the Impact of the Extragalactic Magnetic Field
- Constraining the TeV gamma-ray emission of SN 2024bch, a possible type IIn-L from a red supergiant progenitor. Multiwavelength observations and analysis of the progenitor
- Energy-dependent gamma-ray morphology estimation tool in Gammapy
- Multiwavelength study of non-thermal emission in the Swift J1834.9-0846/W41 region
- Hadronic origin of gamma rays and neutrinos from blazars: Multi-messenger implications and observational constraints
- Enhancing the Cherenkov Telescope Array Observatory high-level performance through an event-type-based analysis
- The Array Control and Data Acquisition software of the Cherenkov Telescope Array Observatory
- Morphology of Young Massive Stellar Clusters with Next-Generation IACTs
- Chasing Gamma-Ray Signals from Binary Neutron Star Coalescences with the Cherenkov Telescope Array: Prospects and Observing Strategies
- Extreme Blazars Observed with MAGIC: Second Catalog Release
- Constraining the synchrotron peak and estimating the VHE brightness of a sample of extreme high synchrotron peak blazars
- Projected sensitivity of CTAO to axion-like particles from blazars with a machine learning approach
- Probing a cosmogenic origin of astrophysical neutrinos and cosmic rays using gamma-ray observations of TXS 0506+056
- Direct observation of the X-ray counterpart of the Hα filaments and of the sloshing spiral in the Perseus galaxy cluster
- Prospects for Observing the Microquasar SS 433 with the LACT Array
- Event types in H.E.S.S.: a combined analysis for different telescope types and energy ranges