From 5e63753e578310c9f7e72388638d105d799e67a8 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sun, 8 Nov 2015 11:57:43 +0800 Subject: chandra_xcentroid.sh: Use previously generated skyfov.fits --- scripts/chandra_xcentroid.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'scripts') 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" -- cgit v1.2.2