From e4683cf714f4b3f5aeccc3c145b077bdd992054f Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 6 Mar 2017 16:52:39 +0800 Subject: make_sbprofile_reg.py: do not set default background file --- bin/make_sbprofile_reg.py | 9 ++------- doc/HOWTO_chandra_acis_analysis.txt | 4 ++-- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/bin/make_sbprofile_reg.py b/bin/make_sbprofile_reg.py index 112d43f..49561b1 100755 --- a/bin/make_sbprofile_reg.py +++ b/bin/make_sbprofile_reg.py @@ -222,8 +222,7 @@ def main(): help="overwrite existing files") parser.add_argument("-b", "--bkg", dest="bkg", help="background file for SNR calculation; " + - "may be the corrected background spectrum " + - "(default: 'bkg_blank' from manifest)") + "may be blanksky or corrected background spectrum") parser.add_argument("-c", "--center", dest="center", help="Region file specifying the center " + "(default: 'reg_centroid' from manifest)") @@ -249,10 +248,6 @@ def main(): infile = args.infile else: infile = manifest.getpath("evt2_clean", relative=True) - if args.bkg: - bkg = args.bkg - else: - bkg = manifest.getpath("bkg_blank", relative=True) if args.center: center_reg = args.center else: @@ -260,7 +255,7 @@ def main(): region = Regions(center_reg).regions[0] center = (region.xc, region.yc) - regions = gen_regions(center=center, evt=infile, bkg=bkg, + regions = gen_regions(center=center, evt=infile, bkg=args.bkg, n_inner=args.n_inner, min_counts=args.min_counts, min_width=args.min_width, diff --git a/doc/HOWTO_chandra_acis_analysis.txt b/doc/HOWTO_chandra_acis_analysis.txt index 9935816..7cc1e37 100644 --- a/doc/HOWTO_chandra_acis_analysis.txt +++ b/doc/HOWTO_chandra_acis_analysis.txt @@ -53,11 +53,11 @@ Step-by-step guide to analyze ACIS data: (13) $ ds9 evt2*_clean.fits Roughly select the source center and save the region as 'cstart.reg' (??) Calculate the X-ray centroid: - $ calc_centroid.py -i img_c*_e700-2000.fits -V + $ calc_centroid.py -s cstart.reg -i img_c*_e700-2000.fits -V Check whether the calculated centroid is OK; if not, manually adjust the centroid position, and overwrite 'centroid.reg' (??) Generate regions for SBP extraction (sbprofile.reg): - $ make_sbprofile_reg.py -b + $ make_sbprofile_reg.py -b -V (??) Generate regions for deprojected spectral analysis (rspec.reg): $ chandra_genspcreg.sh evt2_c*_clean.fits centroid.reg rspec.reg $ manifest.py setpath rspec_reg rspec.reg -- cgit v1.2.2