Data Formats¶
Note
Since November 2015 there is the main-page project. This page contains extra information about which formats we support in Gammapy and which class corresponds to which format.
Where available and useful existing standards are used, e.g. for spectral data
the X-ray community has developed the PHA
, ARF
and RMF
file formats
and they have developed powerful tools to work with data in that format.
Overview¶
Here’s an overview of the file formats supported by Gammapy and Gammalib:
Type |
Format Name |
Gammapy |
Gammalib |
---|---|---|---|
Events |
EVENTS |
||
Effective area |
AEFF_2D |
||
Effective area |
ARF |
||
Energy dispersion |
EDISP_2D |
||
Energy dispersion |
RMF |
||
PSF |
PSF_2D_GAUSS |
||
PSF |
PSF_2D_KING |
||
PSF |
no spec available |
||
PSF |
gtpsf output |
N/A |
|
PSF |
psf_table |
||
PSF |
no spec available |
N/A |
|
Background |
BACKGROUND_3D |
||
Background |
BACKGROUND_2D |
N/A |
|
Background |
no spec available |
N/A |
|
Background |
no spec available |
N/A |
|
Exposure |
EXPOSURE_3D |
||
Counts |
3D |
||
Counts |
Image |
||
Counts |
PHA |
Notes¶
The Gammalib docs contain a nice overview of IRFs here and detailed explanations of some IRF here.
We probably should unify / shorten the IRF class names in Gammapy.
There’s quite a few classes in Gammapy that don’t have a well-defined format. We should add a way to serialise every class and document the format for easier interop.
Maybe add info which format is used by Fermi, HESS HD/PA, CTA?
For every format there should be one or several test data files. This could even be in a repo that’s shared by Gammalib / Gammapy.