This commit is contained in:
2024-11-01 14:56:46 +03:00
parent 2dc9aa6a8d
commit 908e25b200
51 changed files with 338 additions and 432 deletions

View File

@@ -20,7 +20,7 @@ Plot long-term Crab detector count rate approximated by cubic polynomial functio
### 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.
Plots the normalized distribution of the residuals between the IBIS/ISGRI Crab count rate and the corresponding polynomial fit (Fig. B8 in the paper). The distribution is approximated with a Gaussian function.
### 02_grxe_resid.py
@@ -28,21 +28,46 @@ Calculates difference between detector count rate and that predicted by backgrou
### 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).
Plots normalized distribution of the relative residuals of the background model obtained in three energy bands for BKG region (Figs. A5 and A6 in the paper).
### 02_grxe_map.py
Makes the map of the residuals in mCrab units (not covered in the paper).
Makes the map of the residuals in mCrab units (not shown in the paper).
### 03_grxe_flux.py
Estimates flux in regions defined in config.py, and places result in products/Flux, e.g.:
```
cat ../products/Flux/GB.dat
GB A01 25.00 60.00 154.886019 3.087652
GB A02 60.00 80.00 96.472798 9.218161
GB A03 80.00 200.00 102.207302 13.291950
```
wgere GB means Galactic Bulge region (see Table 1 in the paper).
### 03_grxe_galprof.py/03_grxe_galprof.sh and 03_grxe_galprof_plot.py
Makes Galactic longitude profile and plots it.
### 03_grxe_spec.py
Extract spectrum of selected sky region, e.g.:
```./03_grxe_spec.py GC``` or ```./03_grxe_spec.py M81```
```./03_grxe_spec.py GB``` or ```./03_grxe_spec.py L+20```
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```.
Spectra are stored in `../products/Spectra`.
To load the spectrum, e.g. Galactic Bulge, do the following steps:
```
cd ../products/Spectra
cp ../../models/xspec/* .
xspec
@load_gb_cutoffpl.xcm
fit
```