Fermi-LAT
The Fermi Large Area Telescope (LAT) observes the gamma-ray sky from 20 MeV up to 1 TeV. It does so by scanning the entire sky three times a day, hence, there is gamma-ray data available for each day for every position on the sky. For more information, please check out the official Fermi webpage at https://fermi.gsfc.nasa.gov.
Installation & preparation
To analyse data from Fermi-LAT, the Fermitools are needed. Additionally, there is a python package, called fermipy, such that one can do the data analysis from within a python environment. There are analysis scripts, written with fermipy, available to create either a spectrum or a light curve. Those are globally available at $FERMITOOLS, which links to /software/Science/satscripts/fermiscripts.
To run those scripts, it is necessary to have both the Fermitools and fermipy installed, ideally in a conda environment. There are two options for the user to do so: calling a currently existing conda environment, or creating the corresponding conda environment yourself. The first version is, at the current moment, the recommended choice, also because the pipeline scripts are written for python 2.7, while for the latter one needs to make sure the correct versions of the Fermitools and fermipy are installed.
Option 1 - Using the existing conda environment (Fermitools 1.2.23 & fermipy version 0.20.0)
The pipeline scripts for a standard Fermi-LAT analysis (spectrum or light curve) are optimized to run with the version of this conda environment. In order to envoke it, it is necessary to source the conda installation, where the environment for a Fermi-LAT analysis has been created, before activating the environment. In order to simplify this, you can copy the following in your .cshrc file.
#!/bin/tcsh -f source /userdata/data/gokus/conda/miniconda2/etc/profile.d/conda.csh alias fermipy "conda activate fermipy"
If you already have your own conda installation, which you regularly use, make sure that you create an alias instead of sourcing that conda installtion by default! Using the command fermipy, you can change into the conda environment, in which the necessary tools for using the pipeline scripts are installed. Now you're ready to do some Science!
Option 2 - Installing and creating a conda environment yourself
Both the Fermitools and fermipy are managed via GitHub and the full code, documentation and installation can be found at
Fermitools: https://github.com/fermi-lat/Fermitools-conda
fermipy: https://github.com/fermiPy/fermipy (Github), https://fermipy.readthedocs.io/en/latest/ (Documentation)
Please make sure to be sure
Troubleshooting
Contact person
The scripts and this wiki entry has been written by Andrea Gokus. In case of any further questions or problems, please contact her via andrea.gokus[at]fau.de.
Last status update on this wiki page: Mai 16, 2021