diff options
| author | Aaron LI <aaronly.me@outlook.com> | 2017-02-21 23:25:13 +0800 | 
|---|---|---|
| committer | Aaron LI <aaronly.me@outlook.com> | 2017-02-21 23:25:13 +0800 | 
| commit | a25e7664ae76d699533a5cbd92f38b45c2fba72a (patch) | |
| tree | 10481255c8cf7509a53d05dd268932d8d088ce84 /bin | |
| parent | d813448c1b9a16d58c8d24d27267893b39c4b908 (diff) | |
| download | chandra-acis-analysis-a25e7664ae76d699533a5cbd92f38b45c2fba72a.tar.bz2 | |
Update to use 'cosmo_calc.py' instead of 'cosmo_calc'
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/fit_mass.sh | 2 | ||||
| -rwxr-xr-x | bin/fit_sbp.sh | 2 | 
2 files changed, 2 insertions, 2 deletions
| diff --git a/bin/fit_mass.sh b/bin/fit_mass.sh index f349f24..8df5966 100755 --- a/bin/fit_mass.sh +++ b/bin/fit_mass.sh @@ -71,7 +71,7 @@ sbp_data=`grep      '^sbp_data'      ${sbp_cfg} | awk '{ print $2 }'`  tprofile=`grep      '^tprofile'      ${sbp_cfg} | awk '{ print $2 }'`  cfunc_profile=`grep '^cfunc_profile' ${sbp_cfg} | awk '{ print $2 }'`  z=`grep             '^z'             ${sbp_cfg} | awk '{ print $2 }'` -cm_per_pixel=`cosmo_calc ${z} | grep 'cm/pixel' | awk -F':' '{ print $2 }'` +cm_per_pixel=`cosmo_calc.py -b --cm-per-pixel ${z}`  sed -i'' "s/^cm_per_pixel.*$/cm_per_pixel   ${cm_per_pixel}/" ${sbp_cfg}  if grep -q '^beta2' $sbp_cfg; then diff --git a/bin/fit_sbp.sh b/bin/fit_sbp.sh index 5989ff1..9e98bc4 100755 --- a/bin/fit_sbp.sh +++ b/bin/fit_sbp.sh @@ -36,7 +36,7 @@ tprofile_data=`grep '^tprofile_data' ${mass_cfg} | awk '{ print $2 }'`  tprofile_cfg=`grep '^tprofile_cfg' ${mass_cfg} | awk '{ print $2 }'`  z=`grep '^z' ${sbp_cfg} | awk '{ print $2 }'` -cm_per_pixel=`cosmo_calc ${z} | grep 'cm/pixel' | awk -F':' '{ print $2 }'` +cm_per_pixel=`cosmo_calc.py -b --cm-per-pixel ${z}`  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 }'` | 
