Skip to main content

Agardpy: Analysis Software for GAmma-Ray Data in Python

Build Status codecov Scrutinizer Code Quality DOI PyPI OpenSSF Best Practices gammapy astropy

'User-friendly' configuration-centred pipeline built over Gammapy to allow for easy simultaneous analysis of various datasets of different formats. Example: 3D Fermi-LAT (with various source models in the Region of Interest stored in XML file) + 1D energy-dependent directional cuts MAGIC/LST [PointSkyRegion geometry for ON region] + 1D global directional cut VERITAS [CircleSkyRegion geometry for ON region].

Follow the documentation at https://asgardpy.readthedocs.io/en/latest/ for the main functionality of this pipeline. Follow the Gammapy v1.3 documentation for understanding the core Gammapy objects.

Check this documentation page for seeing the list of reasons to use Asgardpy over Gammapy v1.3 and this documentation page for seeing an extended example of the usage of Asgardpy in analyzing multi-instrument data of Crab Nebula.

The various Data Levels used here follow the descriptions suggested by GADF v0.3 and CTAO Data Model.

NOTE

For requiring support only for Gammapy v1.1, one may follow the latest Hotfix release v0.4.4 which benefits from the correct usage of getting EBL-deabsorbed data products as included in v0.5.0. This can be done by using

git fetch --tags
git switch -c tags/v0.4.4

For creating a conda environment, for this Hotfix release, one can use

conda env create -f environment_0.4.4.yml

and in general, for the latest release,

conda env create -f environment.yml

This method was included after v0.5.0, and for earlier (<v0.4.4) releases, one can simply use the gammapy conda environment and install asgardpy on top of it.

Pipeline development

The pipeline was developed with first testing with Fermi-LAT (enrico and fermipy) files and LST-1 (cta-lstchain) DL3 files (with energy-dependent and global directional cuts) for point-like sources. It also allows for a preliminary analysis of HAWC datasets (stored in Gammapy-readable data). The pipeline can be further expanded to support more types of DL3 files of gamma-ray instruments.

Examples with Data

An example of configuration file that can be used with asgardpy can be found at asgardpy/config/template.yaml

For working with some public data to check the pipeline functionality, one should first download the public dataset available with Gammapy as indicated in Gammapy v1.3 Introduction and then run the scripts/download_asgardpy_data.sh script to add datasets for the full usage of the pipeline.

Examples of usage of Asgardpy is shown in jupyter notebooks.

Cite

If you use Asgardpy in a publication, please cite the exact version you used from Zenodo Cite as https://doi.org/10.5281/zenodo.8106369

Pipeline Template

Pipeline generated based on the template by python-package-template with additional standards being followed -

Release files for asgardpy 0.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for asgardpy 0.5.3
File Size Uploaded
asgardpy-0.5.3.tar.gz 22.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for asgardpy 0.5.3
File Interpreter ABI Platform
asgardpy-0.5.3-py3-none-any.whl Python 3 none any Details

Total release size: 22.9 MB

Release files / asgardpy-0.5.3.tar.gz

Download URL asgardpy-0.5.3.tar.gz
Size 22.8 MB
Tags Source
SHA-256 checksum
How to use checksums
ed40587e1f752a96db335499b2ea461a33eac6bea2496acf619185189be11356
BLAKE2b-256 checksum
How to use checksums
abdda441562632111ce2590d9be6e40be6e8554a1a589e3f691e0aa32cb57907
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 31, 2025.

Transparency log

Release files / asgardpy-0.5.3-py3-none-any.whl

Download URL asgardpy-0.5.3-py3-none-any.whl
Size 97.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
21fd2926c62fca7e0f5c7b890f280dca92d75684b0e8f59e404a1c8ac3ac8506
BLAKE2b-256 checksum
How to use checksums
543a3876f47de4d5383f461e3b5a70698a3f3843fd328c3b8db64918b9cca9c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 31, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.5.3 This release

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.0

2 release files

0.2.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page