Installation #
Written byJoysankar MajumdarThe Fermi mission provides a suite of tools called the Fermitools for the analysis of LAT. We are not going to use Fermitools directly; rather, we are going to use FermiPy.
A Linux-based operating system is best for Fermi LAT analysis. We are going to follow the installation procedure for Ubuntu 24.04.2 LTS.
We need to install the conda-forge distribution from the GitHub repository. From the latest release, download the Miniforge**-Linux-x86_64.sh file.
Run this script file with the bash command.
bash Miniforge3-25.3.1-0-Linux-x86_64.shIt will be installed in your system. Generally, it creates a folder miniforge in the home directory.
You need to export the path of the installed miniforge.
export PATH=path_to_the_diretory/miniforge/condabin:$PATHAnd now, in that same terminal, you need to initialise conda.
conda initNow close this terminal and open another terminal, and it should look like below
The (base) indicates the activation of the base environment in conda.
We have to create another environment for FermiPy. Run the command below in the terminal.
mamba create --name fermipy -c conda-forge -c fermi python=3.9 "fermitools>=2.2.0" healpy gammapyAfter this, to activate the new fermipy environment, run
mamba activate fermipyYou have to install the fermipy package inside the fermipy environment
pip install fermipyAdditionally, you should install the Jupyter Notebook for better coding
pip install notebook
You have successfully installed fermitools and FermiPy. Make sure to use FermiPy; you need to activate the fermipy environment each time.