From ca58bc93bb96f10e20f5d657fd6af84a2231160a Mon Sep 17 00:00:00 2001
From: Aaron LI <aaronly.me@outlook.com>
Date: Sun, 22 Nov 2015 12:15:41 +0800
Subject: chandra_update_xpeak2.sh: fix the wrong filename

---
 scripts/chandra_update_xpeak2.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/chandra_update_xpeak2.sh b/scripts/chandra_update_xpeak2.sh
index d8cab0c..6ab6d8c 100755
--- a/scripts/chandra_update_xpeak2.sh
+++ b/scripts/chandra_update_xpeak2.sh
@@ -227,7 +227,7 @@ if [ -r "${IMG}" ]; then
 else
     printf "generate image: \`${IMG}' ...\n"
     punlearn dmcopy
-    dmcopy infile="${EVT_DEFLARE}[sky=region(${SKYFOV}[ccd_id=${CHIP}])][energy=${E_RANGE}][bin sky=::1]" outfile="${IMG}" clobber=yes
+    dmcopy infile="${EVT}[sky=region(${SKYFOV}[ccd_id=${CHIP}])][energy=${E_RANGE}][bin sky=::1]" outfile="${IMG}" clobber=yes
 fi
 
 # aconvolve
-- 
cgit v1.2.2