aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/chandra_xcentroid.sh
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2015-11-08 11:57:43 +0800
committerAaron LI <aaronly.me@outlook.com>2015-11-08 11:57:43 +0800
commit5e63753e578310c9f7e72388638d105d799e67a8 (patch)
treed04ec8197623abfef82cb32badcb19322faefb5d /scripts/chandra_xcentroid.sh
parentf793a4529761a0a0742bbc6f49d8eca7a357ee9a (diff)
downloadchandra-acis-analysis-5e63753e578310c9f7e72388638d105d799e67a8.tar.bz2
chandra_xcentroid.sh: Use previously generated skyfov.fits
Diffstat (limited to 'scripts/chandra_xcentroid.sh')
-rwxr-xr-xscripts/chandra_xcentroid.sh15
1 files changed, 7 insertions, 8 deletions
diff --git a/scripts/chandra_xcentroid.sh b/scripts/chandra_xcentroid.sh
index 5a1e908..98d21b3 100755
--- a/scripts/chandra_xcentroid.sh
+++ b/scripts/chandra_xcentroid.sh
@@ -16,10 +16,12 @@
## 2012/11/08 ##
###########################################################
##
-VERSION="v3.0"
-UPDATED="2015/06/03"
+VERSION="v3.1"
+UPDATED="2015-11-08"
##
## ChangeLogs:
+## v3.1, 2015-11-08, Aaron LI
+## * Use previously generated skyfov instead to make a new one without asol
## v3.0, 2015/06/03, Aaron LI
## * Copy needed pfiles to current working directory, and
## set environment variable $PFILES to use these first.
@@ -201,7 +203,7 @@ fi
## parameters }}}
## prepare parameter files (pfiles) {{{
-CIAO_TOOLS="dmkeypar dmcopy dmstat dmcoords skyfov aconvolve"
+CIAO_TOOLS="dmkeypar dmcopy dmstat dmcoords aconvolve"
# Copy necessary pfiles for localized usage
for tool in ${CIAO_TOOLS}; do
@@ -214,11 +216,8 @@ export PFILES="./:${PFILES}"
## pfiles }}}
## main part {{{
-# generate `skyfov'
-SKYFOV="_skyfov.fits"
-printf "generate skyfov: \`${SKYFOV}' ...\n"
-punlearn skyfov
-skyfov infile="${EVT}" outfile="${SKYFOV}" clobber=yes
+# Use previously generated `skyfov'
+SKYFOV=`\ls *skyfov*.fits 2>/dev/null | head -n 1`
# generate image
IMG="img_c`echo ${CHIP} | tr ':' '-'`_e`echo ${E_RANGE} | tr ':' '-'`.fits"