Compton program - installation and usage:
1) Download the compton program .
2) Copy compton.tar.gz to <PATH>, where <PATH> is an arbitrary location and then:
- go to <PATH>: cd <PATH>
- unpack archive: tar -xvvf compton.tar.gz
3) Compilation:
- If previous compton binaries exist, do: make clean.
- Run install.sh: ./install.sh
4) Generate arbitrary input SEED spectra using XSPEC:
- Run XSPEC.
- In XSPEC shell, choose the model: XSPEC>mo <xspec model>.
- Define the energy array: XSPEC>dummy <E_min> <E_max> <N_bins>.
- Choose output device for plotting: XSPEC>cpd /xw.
- Plot spectrum (EF(E)): XSPEC>plot eemo.
- Go to interactive plotting shell: XSPEC>ipl.
- Save spectrum: XSPEC>wdat <seed_file.dat>.
5) Run compton, using the run_compton.sh script: ./run_compton.sh <tau> <kTe> <distribution> <seed_file.dat>, where:
- <tau> - Thomson optical depth;
- <kTe> - electron temperature in keV;
- <distribution> - distribution type: HOMOGENEOUS, CENTRAL, S_T, CONST_IRRADIATION, THIN_SOURCE or THICK_SOURCE.
- <seed_file.dat> - SEED input file generated in step 4).
6) The output file comp_tau<tau>_kTe<kTe>_<distribution>_<seed_file.dat> should appear.
- First column in output file is Energy in keV;
- Second column contains resulting spectrum (EF(E)).
7) More control parameters can be set in run_compton.sh file.
More information can be found in arXiv
Questions: mitsza@camk.edu.pl