Skip to main content

compute and plot cta IRF

Project description

ctaplot is a collection of functions to make instrument response functions (IRF) and reconstruction quality-checks plots for Imaging Atmospheric Cherenkov Telescopes such as CTA

Given a list of reconstructed and simulated quantities, compute and plot the Instrument Response Functions such as:

  • angular resolution

  • energy resolution

  • effective surface

  • impact point resolution

You may find examples in the documentation. Or you can run a simple one here:

https://mybinder.org/badge_logo.svg

The CTA instrument response functions data used in ctaplot come from the CTA Consortium and Observatory and may be found on the cta-observatory website .

In cases for which the CTA instrument response functions are used in a research project, we ask to add the following acknowledgement in any resulting publication:

“This research has made use of the CTA instrument response functions provided by the CTA Consortium and Observatory, see http://www.cta-observatory.org/science/cta-performance/ (version prod3b-v2) for more details.”


Continuous Integration Action Documentation Status License: MIT

Install

Requirements packages:

  • python > 3.6

  • numpy

  • scipy>=0.19

  • matplotlib>=2.0

  • astropy

We recommend the use of anaconda

The package is available through pip:

pip install ctaplot
export GAMMABOARD_DATA=path_to_the_data_directory

We recommend that you add this line to your bash source file ($HOME/.bashrc or $HOME/.bash_profile)

GammaBoard

A dashboard to show them all.

GammaBoard is a simple jupyter dashboard thought to display metrics assessing the reconstructions performances of Imaging Atmospheric Cherenkov Telescopes (IACTs). Deep learning is a lot about bookkeeping and trials and errors. GammaBoard ease this bookkeeping and allows quick comparison of the reconstruction performances of your machine learning experiments.

It is a working prototype used in CTA, especially by the [GammaLearn](https://gitlab.lapp.in2p3.fr/GammaLearn/) project.

Run GammaBoard

To launch the dashboard, you can simply try the command:

gammaboard

This will run a temporary copy of the dashboard (a jupyter notebook). Local changes that you make in the dashboard will be discarded afterwards.

GammaBoard is using data in a specific directory storing all your experiments files. This directory is known under $GAMMABOARD_DATA by default. However, you can change the path access at any time in the dashboard itself.

Demo

Here is a simple demo of GammaBoard:

  • On top the plots (metrics) such as angular resolution and energy resolution.

  • Below, the list of experiments in the user folder.

When an experiment is selected in the list, the data is automatically loaded, the metrics computed and displayed. A list of information provided during the training phase is also displayed. As many experiments results can be overlaid. When an experiment is deselected, it simply is removed from the plots.

gammaboard_demo

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

ctaplot-0.5.0.tar.gz (4.3 MB view details)

Uploaded Source

File details

Details for the file ctaplot-0.5.0.tar.gz.

File metadata

  • Download URL: ctaplot-0.5.0.tar.gz
  • Upload date:
  • Size: 4.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200119 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for ctaplot-0.5.0.tar.gz
Algorithm Hash digest
SHA256 73d97898e724cbed5b42972f2e7f19a50ed97b1d1bed1104d0b5c085e9c778b9
MD5 0fa786fb4c3988a7a6446750c4fb96d4
BLAKE2b-256 9e82e70a0e25a2f5d7cdf34ac261a5680fa702a540d9beaf94c692693b93a5bc

See more details on using hashes here.

Supported by

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