GammaLib is a self-contained, instrument independent, open source, multi-platform C++ library and Python module that implements all code required for high-level science analysis of astronomical gamma-ray data.
GammaLib does not rely on any third-party software, except of HEASARC’s cfitsio library that is used to implement the FITS interface. Large parts of the code treat gamma-ray observations in an abstract representation, and do neither depend on the characteristics of the employed instrument, nor on the particular formats in which data and instrument response functions are delivered. Instrument specific aspects are implemented as isolated and well defined modules that interact with the rest of the library through a common interface. This philosophy also enables the joint analysis of data from different instruments, providing a framework that allows for consistent broad-band spectral fitting or imaging.
GammaLib is open source and released under the terms of the GNU General Public License v3 (GPL).
Some of the main features of GammaLib are:
- joint multi-instrument analysis
- supports Fermi/LAT binned analysis (Pass 7 data)
- supports CTA analysis (and IACT analysis in general)
- supports COMPTEL analysis
- inclusion of arbitrary multi-wavelength data in maximum likelihood fit
- supports creation of ftools
The latest version of the GammaLib code can be retrieved using Git
$ git clone https://cta-gitlab.irap.omp.eu/gammalib/gammalib.git
In case that you get
error: SSL certificate problem, verify that the CA cert is OK. you should add
$ export GIT_SSL_NO_VERIFY=true
before retrieving the code. Before you can build the GammaLib version obtained from Git you have to generate the configuration script using
Then you may proceed with the usual
$ ./configure $ make $ make check $ [sudo] make install
The GammaLib documentation is available on the dedicated web site http://cta.irap.omp.eu/gammalib/. This documentation refers to the last gammalib release. The documentation corresponding to the current development branch can be found at http://cta.irap.omp.eu/gammalib-devel/.Below a few important links:
- User Manual
- Coding Conventions
- Mathematical implementations (early draft version)
- Instrument-specific interface (early draft version)
Support & getting help¶
And also check the Most frequently encountered problems.
If you would like to contribute to the development of GammaLib, please send an e-mail to email@example.com by specifying in which area you would like to contribute.
Once you have a user ID and a password, please read Contributing to GammaLib before starting your software development.