diff options
-rw-r--r-- | doc/HOWTO_chandra_acis_analysis.txt | 17 | ||||
-rwxr-xr-x | scripts/ciao_calc_ct_csb.sh | 51 |
2 files changed, 7 insertions, 61 deletions
diff --git a/doc/HOWTO_chandra_acis_analysis.txt b/doc/HOWTO_chandra_acis_analysis.txt index a3a2f96..6c19d5c 100644 --- a/doc/HOWTO_chandra_acis_analysis.txt +++ b/doc/HOWTO_chandra_acis_analysis.txt @@ -129,15 +129,12 @@ Step-by-step guide to analyze ACIS data: $ getlxfx . 500 200 # for all results (with errors) ## -------------------------------------------------------- -(47) $ cd ..; cd spc/profile; - calculate cooling time and Csb value: - $ ciao_calc_ct_csb.sh - check the region whether exceeds ccd edge, and answer y/n - check results in file 'ct_csb_results.txt' - --- - Alternatively: +(47) $ cd ..; cd spc/profile +(48) Calculate cooling time: $ ciao_calc_ct.sh + check results in file 'cooling_results.txt' +(49) Calculate Csb (surface brightness concentration): $ ciao_calc_csb.sh - check the region whether exceeds ccd edge, and answer y/n - check results in file 'cooling_results.txt' and 'csb_results.txt' - --- + (it will open ds9 to show the regions, modify the regions if necessary; + and answer y/n/m to continue) + check results in file 'csb_results.txt' diff --git a/scripts/ciao_calc_ct_csb.sh b/scripts/ciao_calc_ct_csb.sh deleted file mode 100755 index 04ef343..0000000 --- a/scripts/ciao_calc_ct_csb.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/sh -## -## -## Invoke 'ciao_calc_ct.sh' and 'ciao_calc_csb.sh' -## to calculate cooling time and Csb value. -## -## Weitian LI -## 2014/06/18 -## -## Changelogs: -## v1.1, 2014/12/11, Weitian LI -## * test ${CT_RES} before read -## - -BASE_PATH=`dirname $0` -SCRIPT_CT="${BASE_PATH}/ciao_calc_ct.sh" -SCRIPT_CSB="${BASE_PATH}/ciao_calc_csb.sh" - -echo "### CALCULATE COOLING TIME ###" -echo "### ${SCRIPT_CT} ###" -#ciao_calc_ct.sh -${SCRIPT_CT} - -echo "### CALCULATE CSB VALUE ###" -echo "### ${SCRIPT_CSB} ###" -#ciao_calc_csb.sh -${SCRIPT_CSB} - -echo "### PROCESS RESULTS ###" -CT_RES="cooling_results.txt" -CSB_RES="csb_results.txt" - -# cooling time -if [ -r "${CT_RES}" ]; then - TITLE_CT=`grep -E '^#\s*[A-Z]+' ${CT_RES} | awk -F',' '{ print $3 }'` - DATA_CT=`grep -E '^#\s*[0-9]+' ${CT_RES} | awk -F',' '{ print $3 }'` -else - TITLE_CT="" - DATA_CT="" -fi - -# Csb -TITLE_CSB=`grep -E '^#\s*[A-Z]+' ${CSB_RES}` -DATA_CSB=`grep -E '^#\s*[0-9]+' ${CSB_RES}` - -# output data -echo "${TITLE_CSB},${TITLE_CT}" -echo "${DATA_CSB},${DATA_CT}" - -exit 0 - |