aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@gmail.com>2016-06-08 01:20:58 +0800
committerAaron LI <aaronly.me@gmail.com>2016-06-08 01:20:58 +0800
commitd3741c8aa225f49f48faa561c4900dc6335b9837 (patch)
treed4b1b1652b6ffedceeb8312a2643b8212ea7a355
parent71c8853e9cfb9bedc9710328f910a976930d828a (diff)
downloadchandra-acis-analysis-d3741c8aa225f49f48faa561c4900dc6335b9837.tar.bz2
calc_lxfx.sh: clean up a bit
-rwxr-xr-xmass_profile/calc_lxfx.sh11
1 files changed, 4 insertions, 7 deletions
diff --git a/mass_profile/calc_lxfx.sh b/mass_profile/calc_lxfx.sh
index 1bce198..922c8fc 100755
--- a/mass_profile/calc_lxfx.sh
+++ b/mass_profile/calc_lxfx.sh
@@ -62,13 +62,10 @@ sbp_data_file=`grep '^sbp_file' $sbp_cfg | awk '{ print $2 }'`
T_file=`grep '^T_file' $sbp_cfg | awk '{ print $2 }'`
# filename of the cooling function data
cfunc_file=`grep '^cfunc_file' $sbp_cfg |awk '{ print $2 }'`
-nfw_rmin_kpc=`grep '^nfw_rmin_kpc' $cfg_file | awk '{ print $2 }'`
cm_per_pixel=`grep '^cm_per_pixel' $sbp_cfg | awk '{ print $2 }'`
z=`grep '^z' $sbp_cfg | awk '{ print $2 }'`
nh=`grep '^nh' $cfg_file |awk '{ print $2 }'`
abund=`grep '^abund' $cfg_file |awk '{ print $2 }'`
-da=`python -c "print($cm_per_pixel/(0.492/3600/180*3.1415926))"`
-dl=`python -c "print($da*(1+$z)**2)"`
if grep -q '^beta2' $sbp_cfg; then
MODEL="dbeta"
@@ -76,13 +73,13 @@ else
MODEL="beta"
fi
-if [ "$t_profile_type" = "wang2012" ]; then
- ${base_path}/fit_wang2012_model $t_data_file $t_param_file $cm_per_pixel 2> /dev/null
- mv -f wang2012_dump.qdp ${T_file}
-else
+# only 'wang2012' model supported
+if [ "X${t_profile_type}" != "Xwang2012" ]; then
echo "ERROR: unsupported temperature profile: ${t_profile_type}"
exit 11
fi
+${base_path}/fit_wang2012_model $t_data_file $t_param_file $cm_per_pixel 2> /dev/null
+mv -f wang2012_dump.qdp ${T_file}
# energy bands for which the cooling function data will be calculated
BLIST="blist.txt"