Hi, I am Enrico, and I will help you run your Fermi data analysis!
- Code: https://github.com/gammapy/enrico
- Issues: https://github.com/gammapy/enrico/issues
- Documentation: http://enrico.readthedocs.org/
- Mailing List: http://groups.google.com/group/gammapy_enrico
- Fermi Science Tools: http://fermi.gsfc.nasa.gov/ssc/
- Get your results easy and fast by using the enrico command line tools.
- Results are reproducible, because config files and logs are used.
- The enrico command line tools are just frontends for functions and classes in the enrico python package, so if you know the Fermi tools and some python it is easy for you to modify things to your needs.
- A Graphical User Interface (GUI) has been developed to simply the use of the package.
Enrico is based on a configuration file which contains all the setup for your analysis. For each enrico tool, you just have to type
You need to have the Fermi ScienceTools installed on you machine.
The provided scripts enrico-init.sh will set up enrico for you. Before you need to define few global variables.
export FERMI_DIR=< location of your Fermi software installation >
export FERMI_DATA_DIR=< location of your Fermi weekly and preprocessed data >
# (not mandatory)
export ENRICO_DIR=< location of your Enrico software checkout >
Sourcing init_enrico.sh will setup your environment. You can check your installation by typing
For more informations, go to Setup
A simple analysis¶
After you have done the Setup, running an analysis is as simple as typing these commands:
enrico_config Myconfig.conf <answer a few questions like the position of your target>
It will create an file named Myconfig.conf. Be sure that it contains all your setup. After you should generate an xml file for the sky model :
Now run the likelihood analysis for the full spectrum and data points:
If you like, a light curve or a TS map:
Note that if you have a computing cluster at your disposal, these compute-time-intensive tasks can be run in parallel.
Finally at the end you should plot your results using:
enrico_plot_sed Myconfig.conf (plot the SED)
enrico_plot_lc Myconfig.conf (plot the lightcurve)
enrico_plot_tsmap Myconfig.conf (generate a fits file for the TS map)
For more information, see Tutorial
Table of Contents¶
- Folder management
- Make a config file
- Make a model xml file
- Get data
- Run global fit
- Make flux points
- Make a light curve
- Make a TS map
- Upper Limits
- Plot results
- Check results
- Make Profile likelihood
- Make Confidence contour
- Get the highest energy events
- Refine source position
- Check different models
- Test a particular model list
- Configuration Files
- Events and IRFs
- LightCurve : running the analyse in time bins
- Folded LightCurve
- Ebin : running the analyse in energy bins
- TSMap : creating a TS map
- Findsrc : Finding the position of a source
- srcprob : Get the highest energy event
- Contours : Compute confidence contour
- Graphical User Interface (GUI)
- Developer Information
- Acknowledging or citing Enrico
- Enrico Developers
Other tools and tutorials¶
You can find further examples how to use Enrico in the fermi-hero tutorial given at the IMPRS 2013 summer school on high-energy astrophysics.
Other tools to simplify the use of the Fermi ScienceTools have been collected on this page: Fermi user-contributed tools