aboutsummaryrefslogtreecommitdiffstats
path: root/mass_profile/calc_all_entropy.sh
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@gmail.com>2016-06-07 22:35:21 +0800
committerAaron LI <aaronly.me@gmail.com>2016-06-07 22:35:21 +0800
commit4266698e75f6bab5488c6fa3b5ad999d27db8cfe (patch)
tree2928bd4903e3d4261ec83864e61911db8d8d4aca /mass_profile/calc_all_entropy.sh
parent7c0645760b49958d339d79ea89834abe35e055e5 (diff)
downloadchandra-acis-analysis-4266698e75f6bab5488c6fa3b5ad999d27db8cfe.tar.bz2
Rewrite 'calc_entropy.py' from 'analyze_entropy_profile.py'
* XXX: 'calc_entropy.py' needs test * XXX: check the uncertainty/error estimation/calculation * Remove obsolete 'fit_{d,}beta_entropy.sh' and 'calc_all_entropy.sh'
Diffstat (limited to 'mass_profile/calc_all_entropy.sh')
-rwxr-xr-xmass_profile/calc_all_entropy.sh39
1 files changed, 0 insertions, 39 deletions
diff --git a/mass_profile/calc_all_entropy.sh b/mass_profile/calc_all_entropy.sh
deleted file mode 100755
index 5506ab8..0000000
--- a/mass_profile/calc_all_entropy.sh
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/usr/bin/env bash
-
-if [ $# -eq 1 ]
-then
- :
-else
- echo "Usage: <global.cfg list file>"
- exit
-fi
-
-bdir=`pwd`
-
-for i in `cat $1`
-do
- dname=`dirname $i`
- #dname=`dirname $dname`
- echo $dname
- cd $dname ||continue
-# mkdir -p profile_entropy
-# cp -rf profile/* profile_entropy/
-# cd profile/
-
- [ -e result ] && r200file=result
- [ -e result ] || r200file=result_checked
-
- r200=`grep r200 $r200file|awk -F = '{print $2}' |awk -F '-' '{print $1}'`
- rout=`python -c "print($r200*.1)"`
- echo $rout
- if grep n01 source.cfg >/dev/null
- then
- echo "dbeta"
- fit_dbeta_entropy.sh global.cfg $rout
- else
- echo "beta"
- fit_beta_entropy.sh global.cfg $rout
- fi
-
- cd $bdir
-done