aboutsummaryrefslogtreecommitdiffstats
path: root/mass_profile/calc_lxfx.sh
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2017-02-17 23:06:46 +0800
committerAaron LI <aaronly.me@outlook.com>2017-02-17 23:06:46 +0800
commit77b72c9bbba87e834bd80abf40fcd09e8f7a005f (patch)
treee8f68c7a9ab2740a8b63eb174717bac75d59a80a /mass_profile/calc_lxfx.sh
parent2252cc5760404615602e7c0127f5711b9da59f79 (diff)
downloadchandra-acis-analysis-77b72c9bbba87e834bd80abf40fcd09e8f7a005f.tar.bz2
Explain the 'nH=0' and output units differences and usages.
Diffstat (limited to 'mass_profile/calc_lxfx.sh')
-rwxr-xr-xmass_profile/calc_lxfx.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/mass_profile/calc_lxfx.sh b/mass_profile/calc_lxfx.sh
index a8cb053..f1954db 100755
--- a/mass_profile/calc_lxfx.sh
+++ b/mass_profile/calc_lxfx.sh
@@ -47,7 +47,6 @@ esac
base_path=$(dirname $(realpath $0))
## Extract settings/values from the config file
-nh=`grep '^nh' ${mass_cfg} | awk '{ print $2 }'`
abund=`grep '^abund' ${mass_cfg} | awk '{ print $2 }'`
tprofile_data=`grep '^tprofile_data' ${mass_cfg} | awk '{ print $2 }'`
tprofile_cfg=`grep '^tprofile_cfg' ${mass_cfg} | awk '{ print $2 }'`
@@ -79,8 +78,11 @@ bolo
0.1 2.4
_EOF_
+# NOTE:
+# Set 'nh=0' when calculating the cooling function values, and use the
+# value given by 'flux' with unit 'erg/s/cm^2'.
${base_path}/calc_coolfunc_bands.sh ${tprofile} ${abund} \
- ${nh} ${z} "cfunc_" ${BLIST}
+ 0 ${z} "cfunc_" ${BLIST}
PROG="calc_lx_${MODEL}"
LXF_RES="lx_${MODEL}_param.txt"
@@ -139,7 +141,7 @@ for i in `seq 1 ${MC_TIMES}`; do
echo "### `pwd -P`"
echo "### ${i} / ${MC_TIMES} ###"
${base_path}/calc_coolfunc_bands.sh ${tprofile} ${abund} \
- ${nh} ${z} "cfunc_" ${BLIST}
+ 0 ${z} "cfunc_" ${BLIST}
${base_path}/${PROG} ${TMP_SBP_CFG} ${rout} \
cfunc_bolo.dat \
cfunc_0.7-7.dat \