Don't forget to activate environment: `source /venv/bin/activate` The script number indicates the sequence of execution. The results are placed in `ridge/products/`. The corresponding shell scripts run Python code with different parameters. ### 01_bgdmodel.py Calibrates IBIS/ISGRI background model ### 01_crabmodel.py Calibrates Crab detector count rate model. ### 01_crabmodel_plot_poly.py Plot long-term Crab detector count rate approximated by cubic polynomial function (Fig. B7 in paper). ### 01_crabmodel_plot_sys.py Plots the normalized distribution of the residuals between the IBIS/ISGRI Crab count rate and the corresponding polynomial fit (Fig. B8 in paper). The distribution is approximated with a Gaussian function. ### 02_grxe_resid.py Calculates difference between detector count rate and that predicted by background model in mCrab units for `GAL` (Galaxy), `BKG` (Extragalactic), or `ALL` (all-sky) regions. ### 02_grxe_resid_plot.py Plots normalized distribution of the relative residuals of the background model obtained in three energy bands for BKG region (Figs. A5 and A6 in paper). ### 02_grxe_map.py Makes the map of the residuals in mCrab units (not covered in the paper). ### 03_grxe_spec.py Extract spectrum of selected sky region, e.g.: ```./03_grxe_spec.py GC``` or ```./03_grxe_spec.py M81``` If you do not specify the sky region, the script makes spectra for all regions. Sky regions are defined in ```config.py```. Spectra are stored in `./products/Spec`. After spectra files are ready, go to directory `./products/Spec` and run ```perl ../../scripts/do_pha_igr_v3_mCrab.pl M81.spec```.