Skip to main content

Gammapy-based pipeline for easy joint analysis of different gamma-ray datasets

Project description

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 -

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

asgardpy-0.5.3.tar.gz (22.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

asgardpy-0.5.3-py3-none-any.whl (97.7 kB view details)

Uploaded Python 3

File details

Details for the file asgardpy-0.5.3.tar.gz.

File metadata

  • Download URL: asgardpy-0.5.3.tar.gz
  • Upload date:
  • Size: 22.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for asgardpy-0.5.3.tar.gz
Algorithm Hash digest
SHA256 ed40587e1f752a96db335499b2ea461a33eac6bea2496acf619185189be11356
MD5 5b6195cd6e5e435bdede3587f47f5fc1
BLAKE2b-256 abdda441562632111ce2590d9be6e40be6e8554a1a589e3f691e0aa32cb57907

See more details on using hashes here.

Provenance

The following attestation bundles were made for asgardpy-0.5.3.tar.gz:

Publisher: main.yml on chaimain/asgardpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file asgardpy-0.5.3-py3-none-any.whl.

File metadata

  • Download URL: asgardpy-0.5.3-py3-none-any.whl
  • Upload date:
  • Size: 97.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for asgardpy-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 21fd2926c62fca7e0f5c7b890f280dca92d75684b0e8f59e404a1c8ac3ac8506
MD5 344e0dc4f9751235f769432d08dff2db
BLAKE2b-256 543a3876f47de4d5383f461e3b5a70698a3f3843fd328c3b8db64918b9cca9c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for asgardpy-0.5.3-py3-none-any.whl:

Publisher: main.yml on chaimain/asgardpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page