Coder Social home page Coder Social logo

gammapy_adelaide_2024's Introduction

alt text

Hands-on workshop on VHE data analysis using Gammapy

This folder contains the analysis notebooks shown in the Gammapy hands on sessions for University of Adelaide and CTA-Oz. The related indico page can be found at https://indico.cta-observatory.org/event/5395/

Installation and set-up

These instructions assume that you have previously installed a version of Anaconda or Miniconda on your machine.

Gammapy installation

We recommend that you install the latest version of gammapy as follows:

curl -O https://gammapy.org/download/install/gammapy-1.2-environment.yml
conda env create -f gammapy-1.2-environment.yml
conda activate gammapy-1.2

OR with pip

python -m pip install gammapy[all]

Download tutorials & associated data

To download the tutorials and associated datasets (necessary for the tutorials in this workshop)

gammapy download notebooks
gammapy download datasets

If using conda environment, set GAMMAPY_DATA with conda

conda env config vars set GAMMAPY_DATA=$PWD/gammapy-datasets/1.2
conda activate gammapy-1.2

else set with shell:

export GAMMAPY_DATA=$PWD/gammapy-datasets/1.2

Check your installation

To check that the gammapy environment is working, open a new terminal and type

conda activate gammapy-1.2
gammapy info

To further check that you have correctly set up the data folder type

ipython

Then in the ipython window, type

from gammapy.data import DataStore
ds = DataStore.from_dir("$GAMMAPY_DATA/hess-dl3-dr1")
obs = ds.get_observations()
print(len(obs))

If the cells run without any error and prints 105, Congratulations! You have correctly set-up gammapy

If you have any issues with installation please contact Kirsty via email [email protected]

Tutorials and timetable

Session 1 - 1D spectral simulation

Session 2 - Simulation of sky maps

Session 3 - Internal Science Data Challenge (Sabrina)

Session 4 - Producing 1D spectra

Session 5 - Producing skymaps through 3D analysis

gammapy_adelaide_2024's People

Contributors

astro-kirsty avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.