From e32be999c9a9b3bbd281186e53d1647c58c8fda1 Mon Sep 17 00:00:00 2001 From: Weitian LI Date: Wed, 11 Feb 2015 22:32:14 +0800 Subject: Fixed a bug with F_PBKFILE within 'ciao_bkg_spectra.sh' --- HOWTO_chandra_acis_process.txt | 8 ++++---- scripts/ciao_bkg_spectra.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/HOWTO_chandra_acis_process.txt b/HOWTO_chandra_acis_process.txt index ec46110..44ca0ad 100644 --- a/HOWTO_chandra_acis_process.txt +++ b/HOWTO_chandra_acis_process.txt @@ -39,12 +39,12 @@ nH tool: https://heasarc.gsfc.nasa.gov/cgi-bin/Tools/w3nh/w3nh.pl (3) $ cd evt; ln -s ../acis*evt2.fits .; (4) $ ciao_procevt.sh (5) $ cd ../bkg; ln -s ../evt/evt2*_clean.fits .; - (6) $ ciao_blanksky_v4.sh + (6) $ ciao_blanksky.sh (7) ds9 open 'evt2*_clean.fits'; select edge region as the *local background*, save as 'lbkg.reg'; and estimate the phonton counts: (8) $ dmlist "evt2_clean.fits[sky=region(lbkg.reg)][energy=400:8000]" blocks - (9) $ ciao_bkg_spectra_v4.sh reg="lbkg.reg" basedir=.. nh= z= + (9) $ ciao_bkg_spectra.sh reg="lbkg.reg" basedir=.. nh= z= (10) $ xspec (11) xspec> @xspec_lbkg_model.xcm xspec> fit @@ -54,7 +54,7 @@ nH tool: https://heasarc.gsfc.nasa.gov/cgi-bin/Tools/w3nh/w3nh.pl (12) cd ../img; ln -s ../evt/evt2*_clean.fits .; (13) ds9 open 'evt2*_clean.fits', select the center of cluster, save the region as 'center.reg' -(14) $ ciao_genregs_v1.sh reg_in=center.reg bkgd= +(14) $ ciao_genregs.sh reg_in=center.reg bkgd= (15) $ cd ../spc/profile; $ ln -s ../../evt/evt2*_clean.fits .; $ ln -s ../../bkg/bkgcorr_blanksky_lbkg.pi .; (maybe 'lbkg.pi') @@ -67,7 +67,7 @@ nH tool: https://heasarc.gsfc.nasa.gov/cgi-bin/Tools/w3nh/w3nh.pl bkgd bkgcorr_blanksky_lbkg.pi | lbkg.pi nh z -(18) $ ciao_deproj_spectra_v8.sh reg="rspec.reg" bkgd= basedir="../.." nh= z= +(18) $ ciao_deproj_spectra.sh reg="rspec.reg" bkgd= basedir="../.." nh= z= (19) $ xspec xspec> @xspec_deproj.xcm xspec> fit diff --git a/scripts/ciao_bkg_spectra.sh b/scripts/ciao_bkg_spectra.sh index b4dbbbd..4cb8475 100755 --- a/scripts/ciao_bkg_spectra.sh +++ b/scripts/ciao_bkg_spectra.sh @@ -311,7 +311,7 @@ for reg_i in ${REGLIST}; do # 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}'" + P_PBKFILE="pbkfile=${PBK}" else P_PBKFILE="" fi -- cgit v1.2.2