Gammapy is a Python package for analysing gamma-ray astronomy data. It builds on NumPy, SciPy and Astropy and provides a common framework for reducing, modelling and interpreting observations from high-energy astronomical instruments.
The software is used as a core library for the Cherenkov Telescope Array Observatory’s science analysis software and is recommended by the H.E.S.S. collaboration for scientific publications. It is also used with observations from instruments including MAGIC, VERITAS and HAWC.
Gammapy represents prepared observations using datasets which can then be analysed individually or combined. Its modelling system supports spatial, spectral and temporal models, allowing astronomical sources and diffuse emission to be described using built-in models or user-defined alternatives. Models can be fitted to datasets through a common fitting and parameter interface.
The package supports map-based and spectral analysis as well as workflows involving event data, instrument response functions and source models. Higher-level estimators can derive scientific products such as flux points and maps from fitted datasets. Configuration can be performed through Python or YAML-based descriptions, which is useful when constructing reproducible analysis pipelines.
Gammapy integrates closely with the broader scientific Python ecosystem rather than attempting to provide an isolated environment. Its Astropy foundations supply units, coordinates and other astronomical infrastructure, while NumPy and SciPy provide the numerical foundations.
This is free and open source software.
Key Features
- Analysis of gamma-ray astronomical observations.
- Map-based, spectral and joint dataset analysis.
- Spatial, spectral and temporal source models.
- Model fitting and parameter estimation.
- Support for user-defined models.
- Python and YAML-driven analysis workflows.
- Built on NumPy, SciPy and Astropy.
Website: github.com/gammapy/gammapy
Support:
Developer: Gammapy Project
License: BSD 3-Clause “New” or “Revised” License
Gammapy is written in Python. Learn Python with our recommended free books and free tutorials.
Related Software
| Astronomical Data Analysis Tools | |
|---|---|
| Astropy | Collection of Python software packages for astronomy |
| CARTA | Cube Analysis and Rendering Tool for Astronomy |
| AstroImageJ | Powerful tool for astronomical image analysis and precise photometry |
| TOPCAT | Tool for OPerations on Catalogues And Tables |
| astroML | Python module for machine learning and data mining |
| DS9 | Astronomical imaging and data visualization application |
| Siril | Astronomical image (pre-)processing software |
| Skyfield | Pure-Python astronomy package |
| Sherpa | Modeling and fitting application for Python |
| IRAF | Image Reduction and Analysis Facility |
| PyRAF | Python-based IRAF command language |
| THELI | Tool for the automated reduction of astronomical images |
| SunPy | Python ecosystem for accessing and analysing solar physics data |
| Gammapy | Python package for analysing gamma-ray astronomical observations |
| jdaviz | Interactive visualisation and analysis suite for astronomical data |
| Gnuastro | Processes and analyses astronomical datasets |
| ASTAP | Astrometric STAcking Program |
| FIPS | OpenGL FITS image viewer for astronomical data |
| ORSA | Framework for celestial mechanics investigations |
| CRUSH | Data reduction and imaging for select astronomical cameras |
Read our verdict in the software roundup.
Explore our carefully curated directory of recommended free and open source software, covering every major software category.The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more. Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form. |


Please read our Comment Policy before commenting.