ridge/scripts/README.md
2024-10-31 13:56:16 +03:00

35 lines
1.1 KiB
Markdown

Don't forget to activate environment: `source <MY PATH>/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 / 01_bgdmodel.sh
Calibrates IBIS/ISGRI background model
### 01_crabmodel.py / 01_crabmodel.sh
Calibrates Crab detector count rate model.
### 02_grxe_resid.py / 01_grxe_resid.sh
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 / 01_grxe_map.sh
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```.