aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: 39128ad0e2f1f0c1d3a658dc745cf5b946f48c20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Chandra ACIS analysis tools and documents
=========================================

Weitian (Aaron) LI, Junhu GU, and Zhenghao ZHU


Install/Compile
---------------
Dependence:
+ ``libgsl-dev``

1. ``mass_profile``
```
$ cd mass_profile
$ make clean
$ heainit   # initilize heasoft, to link libpgplot.a and libcpgplot.a
$ ./init.sh
$ make
```

2. ``cosmo_calc``
```
$ cd tools/cosmo_calc
$ make clean; make
$ cp cosmo_calc ~/bin   # within $PATH
```


Settings
--------
Add the following settings to your shell's initialization file
(e.g., ``~/.bashrc`` or ``~/.zshrc``).
```
# environment variables:
export MASS_PROFILE_DIR="/path/to/mass_profile"
export CHANDRA_SCRIPT_DIR="/path/to/script"
# aliaes
# ciao scripts
alias chcld="${CIAO_SCRIPT_DIR}/chandra_collect_data_v3.sh"
alias chr500="${CIAO_SCRIPT_DIR}/ciao_r500avgt_v3.sh"
# mass_profile related
alias fitmass="${MASS_PROFILE_DIR}/fit_mass.sh"
alias fitnfw="${MASS_PROFILE_DIR}/fit_nfw_mass mass_int.dat"
alias fitsbp="${MASS_PROFILE_DIR}/fit_sbp.sh"
alias fitwang="${MASS_PROFILE_DIR}/fit_wang2012_model tcl_temp_profile.txt"
alias calclxfx="${MASS_PROFILE_DIR}/calc_lxfx_simple.sh"
alias getlxfx="${MASS_PROFILE_DIR}/get_lxfx_data.sh"
```


Usage
-----
See the doc ``HOWTO_chandra_acis_analysis.txt``


License
-------
The tools are distributed under the **MIT license** unless otherwise declared.
The documents are distributed under the ??? license (comming...).