From 04683a56e493133086193bba2f85ac0f7b5d4a81 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 21 Feb 2017 23:32:01 +0800 Subject: fit_{mass,sbp}.sh: Update to use 'calc_coolfunc_{table,profile}.py' --- bin/fit_sbp.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'bin/fit_sbp.sh') diff --git a/bin/fit_sbp.sh b/bin/fit_sbp.sh index 9e98bc4..679caf6 100755 --- a/bin/fit_sbp.sh +++ b/bin/fit_sbp.sh @@ -41,6 +41,8 @@ sed -i'' "s/^cm_per_pixel.*$/cm_per_pixel ${cm_per_pixel}/" ${sbp_cfg} cfunc_profile=`grep '^cfunc_profile' ${sbp_cfg} | awk '{ print $2 }'` tprofile=`grep '^tprofile' ${sbp_cfg} | awk '{ print $2 }'` +cfunc_table="coolfunc_table_photon.txt" + if grep -q '^beta2' ${sbp_cfg}; then MODEL="double-beta" PROG=fit_dbeta_sbp @@ -52,10 +54,12 @@ fi ${base_path}/fit_wang2012_model ${tprofile_data} ${tprofile_cfg} \ ${cm_per_pixel} 2> /dev/null cp wang2012_dump.qdp ${tprofile} -if [ ! -f ${cfunc_profile} ]; then - ${base_path}/calc_coolfunc.sh ${tprofile} ${abund} ${nh} ${z} \ - ${cfunc_profile} +if [ ! -f ${cfunc_table} ]; then + ${base_path}/calc_coolfunc_table.py -Z ${abund} -n ${nh} -z ${z} \ + -u photon -o ${cfunc_table} fi +${base_path}/calc_coolfunc_profile.py -C -t ${cfunc_table} -T ${tprofile} \ + -o ${cfunc_profile} ${base_path}/${PROG} ${sbp_cfg} echo "## MODEL: ${MODEL}" echo "## z: ${z}" -- cgit v1.2.2