Skip to content

Gammapy lectures and tutorials at Thai-CTA workshop

Notifications You must be signed in to change notification settings

AtreyeeS/gammapy-thai-cta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gammapy lectures and tutorials at Thai-CTA workshop

Installation and set-up

We reccomend that you install gammapy via conda

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

  • $ gammapy download tutorials
  • $ cd gammapy-tutorials
  • $ export GAMMAPY_DATA=$PWD/datasets

To check if everything is working fine, open a new terminal and type

  • $ conda activate gammapy-0.18.2
  • ipython

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

In case of any trouble, please contact

About

Gammapy lectures and tutorials at Thai-CTA workshop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published