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. ### 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_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```.