aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/ciao_deproj_spectra_v8.sh
diff options
context:
space:
mode:
authorWeitian LI <liweitianux@gmail.com>2014-07-29 16:01:32 +0800
committerWeitian LI <liweitianux@gmail.com>2014-07-29 16:01:32 +0800
commit42a71c13678a0066eeb94812de1102eec5843bb9 (patch)
tree0cdfdea4672e68fd4e72085d03b6d2a79b408b81 /scripts/ciao_deproj_spectra_v8.sh
parentf9bf035529a0676d5291cffb2557699e3eaf310e (diff)
downloadchandra-acis-analysis-42a71c13678a0066eeb94812de1102eec5843bb9.tar.bz2
Updates scripts aganist CIAO-4.6
Diffstat (limited to 'scripts/ciao_deproj_spectra_v8.sh')
-rwxr-xr-xscripts/ciao_deproj_spectra_v8.sh16
1 files changed, 15 insertions, 1 deletions
diff --git a/scripts/ciao_deproj_spectra_v8.sh b/scripts/ciao_deproj_spectra_v8.sh
index 3818a44..abebc7c 100755
--- a/scripts/ciao_deproj_spectra_v8.sh
+++ b/scripts/ciao_deproj_spectra_v8.sh
@@ -39,6 +39,10 @@ export LC_COLLATE=C
## v8, 2012/08/14, LIweitiaNux
## use `cmdline' args instead of `cfg file'
## add `logging' function
+## v8.1, 2014/07/29, Weitian LI
+## fix variable 'ABUND=grsa'
+## v8.2, 2014/07/29, Weitian LI
+## fix 'pbkfile' parameters for CIAO-4.6
###########################################################
## about, used in `usage' {{{
@@ -88,6 +92,9 @@ DFT_BPIX_PAT="acis*repro*bpix?.fits"
DFT_PBK_PAT="acis*pbk?.fits"
# default `msk file pattern'
DFT_MSK_PAT="acis*msk?.fits"
+
+## abundance standard
+ABUND="grsa"
## default parameters }}}
## error code {{{
@@ -416,10 +423,17 @@ for i in `seq ${LINES}`; do
# NO background response files
# NO background spectrum (generate by self)
# NO spectrum grouping (group by self using `grppha')
+ # 'pbkfile' parameter deprecated in CIAO-4.6
+ if `pget specextract pbkfile >/dev/null 2>&1`; then
+ P_PBKFILE="pbkfile='${PBK}'"
+ else
+ P_PBKFILE=""
+ fi
+ #
punlearn specextract
specextract infile="${EVT}[sky=region(${REG_CIAO})]" \
outroot="r${i}_${ROOTNAME}" bkgfile="" asp="@${ASOLIS}" \
- pbkfile="${PBK}" mskfile="${MSK}" badpixfile="${BPIX}" \
+ ${P_PBKFILE} mskfile="${MSK}" badpixfile="${BPIX}" \
weight=yes correct=no bkgresp=no \
energy="0.3:11.0:0.01" channel="1:1024:1" \
combine=no binarfwmap=2 \