aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@gmail.com>2016-06-07 20:04:15 +0800
committerAaron LI <aaronly.me@gmail.com>2016-06-07 20:04:15 +0800
commit5dc8f1fd5357b3bb09e82c0f4aa1c8928b81562f (patch)
treed460a6208d788011b022176dfc0c2efe785aeb75
parent547ab098192509a48b280969db20475fdcef4143 (diff)
downloadchandra-acis-analysis-5dc8f1fd5357b3bb09e82c0f4aa1c8928b81562f.tar.bz2
Remove obsolete 'get_center_params.sh'.
This script was written to temporarily calculate the central values for a list of sources/objects only.
-rwxr-xr-xmass_profile/get_center_params.sh46
1 files changed, 0 insertions, 46 deletions
diff --git a/mass_profile/get_center_params.sh b/mass_profile/get_center_params.sh
deleted file mode 100755
index a250e07..0000000
--- a/mass_profile/get_center_params.sh
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/bin/bash
-origin_point=$PWD
-ZERO=`readlink -f $0`
-basedir=`dirname $ZERO`
-
-for i in `cat list.txt`
-do
-# echo $i
- file_path=`dirname $i`
- cd $file_path
- mkdir -p center_results
- cp global.cfg center_results
- t_data_file=`grep ^t_data_file global.cfg|awk '{print $2}'`
- t_param_file=`grep ^t_param_file global.cfg|awk '{print $2}'`
- sbp_cfg=`grep ^sbp_cfg global.cfg|awk '{print $2}'`
- cm_per_pixel=`grep '^cm_per_pixel' $sbp_cfg|awk '{print $2}'`
- radius_sbp_file=`grep '^radius_sbp_file' global.cfg|awk '{print $2}'`
- radius_file=`grep '^radius_file' $sbp_cfg|awk '{print $2}'`
- sbp_file=`grep '^sbp_file' $sbp_cfg|awk '{print $2}'`
- cfunc_file=`grep '^cfunc_file' $sbp_cfg|awk '{print $2}'`
- T_file=`grep '^T_file' $sbp_cfg |awk '{print $2}'`
-
- cp $t_data_file $t_param_file $sbp_cfg $radius_sbp_file $radius_file $sbp_file $cfunc_file center_results
- cd center_results
- nh=`grep '^nh' global.cfg |awk '{print $2}'`
- z=`grep '^z' ${sbp_cfg}|awk '{print $2}'`
- abund=`grep '^abund' global.cfg |awk '{print $2}'`
-
- $basedir/fit_wang2012_model $t_data_file $t_param_file $cm_per_pixel
- #echo $t_param_file
- mv wang2012_dump.qdp wang2012_center_dump.qdp
- cp -f wang2012_center_dump.qdp t_profile_dump.qdp
- $basedir/coolfunc_calc.sh wang2012_center_dump.qdp $abund $nh $z cfunc.dat
- if grep '^beta2' ${sbp_cfg}
- then
- $basedir/fit_dbeta_sbp $sbp_cfg
- mv dbeta_param.txt sbp_param_center.txt
- else
- $basedir/fit_beta_sbp $sbp_cfg
- mv beta_param.txt sbp_param_center.txt
- fi
-
- $basedir/fit_nfw_mass mass_int.dat $z >nfw_param_center.txt
-
- cd $origin_point
-done