Skip to content

lbl-anp/GammaRayImagingWorkshop_EBSS2018

Repository files navigation

Welcome

Welcome to the high-resolution gamma-ray imaging workshop of the Exotic Beam Summer School, 2018 hosted by Lawrence Berkeley National Lab. This workshop provides a basic introduction to Compton imaging, a collimator-less, kinematic imaging technique used for imaging gamma-rays. This repository comprises the workshop, with hands-on activities divided into three lessons in the form of jupyter notebooks. It is assumed that the students for this workshop are familiar with python for scientific data analysis. If this is not the case (or you'd like to brush up in preparation for the workshop), there are many great tutorials on the subject, such as the Scipy Lecture Notes.

Preparation

All that is required to participate in this workshop is a computer with python installed, along with some of the most common scientific data analysis packages such as numpy, matplotlib, and pytables.

The LBNL computers that will be used for the workshop have all of the necessary installed and pre-configured on them. In addition, there are several options for being able to participate in the workshop remotely or after the specified dates:

Virtual Machine

We are providing a virtual machine running Ubuntu 16.04 that has all of the software required for this workshop pre-installed and configured. The VM can be downloaded here (N.B. The VM may be up to 17 GB in size, so the download may take a while.)

It is not required to download this on your personal machine prior to the workshop - the provided computers will have all the necessary software.

The default user for the installed OS is: imager The password for the default account is: compton

Python Package Managers

For users who already have python installed on their systems, a pip requirements.txt file is provided containing all of the packages needed for the data analysis covered in this workshop. Popular python package managers such as pip or conda can be used to install the necessary packages on your system, for example:

pip install -r requirements.txt

NOTE: Be careful if you're using your native system python... the above command can over-ride packages that are already installed. Consider using virtualenv to avoid this issue.

Data

The data used for the hands-on portion of this workshop was generated via simulation using the excellent Geant4 simulation toolkit. For more information about the setup of the simulation and the format of the data, please see lesson 1.

The data can be downloaded here. The following command can be used to download the data with the appropriate naming convention:

wget -L -O hits.h5 https://www.dropbox.com/s/ojq4i9fyz8f7205/hits.h5?dl=0

Make sure that the resultant hits.h5 file is stored in the top-level directory of this project (i.e. the same directory that this README.md file is in). Once the data have been downloaded, you can test that your system is configured properly with:

python compton_imaging.py

This should produce a Compton image created with 1000 cones from the simulated dataset. If the above command yields any errors, please notify the instructors (or create an issue on the GitHub page if working remotely).

Getting Started

Once you are confident that your system is properly configured and the dataset has been downloaded, you can begin the hands-on portion of the workshop by running jupyter-notebook from the top-level directory of this project. The workshop is split into three parts:

  1. Part I - Understanding the data and basic manipulation
  2. Part II - Event processing and image reconstruction
  3. Part III - Exploring uncertainties and image quality

Since the workshop sessions are about 1.5 hours long, an appropriate pace for the lessons would be about 20-25 min for each part. The ability to get through these lessons will depend a great deal on how familiar each individual student is with python for data analysis. Students who have experience with the tools will likely be able to complete the lessons on the scheduled pace, while beginners may struggle to even complete the first lesson. In an attempt to accomodate students of all skill-levels, the lessons contain optional extensions to the given exercises to provide potential directions for advanced students to explore. Additionally, a set of solutions is provided that can be accessed at any time. The solutions come in the form of populated jupyter-notebooks and are kept on a branch called solutions in this repository. The solutions branch can be accessed via:

git checkout --track origin/solutions

We recommend trying each exercise yourself before looking at the solutions, but you are welcome to pursue the activities however you see fit.

License

The code associated with this tutorial is licenses under BSD3. You are welcome to use and modify this code to your heart's content, as long as proper attribution is maintained.

About

High resolution gamma-ray imaging workshop for the Exotic Beams Summer School 2018 @ Lawrence Berkeley National Lab

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published