aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2017-03-06 16:52:39 +0800
committerAaron LI <aaronly.me@outlook.com>2017-03-06 16:52:39 +0800
commite4683cf714f4b3f5aeccc3c145b077bdd992054f (patch)
treeb8c4c40a91dd9e3760296aeefe15bf219f8cbffa
parent187124303eee7b45be78b8b7b9f93fde4b328dff (diff)
downloadchandra-acis-analysis-e4683cf714f4b3f5aeccc3c145b077bdd992054f.tar.bz2
make_sbprofile_reg.py: do not set default background file
-rwxr-xr-xbin/make_sbprofile_reg.py9
-rw-r--r--doc/HOWTO_chandra_acis_analysis.txt4
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'
(??) <TODO> 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'
(??) <TODO> Generate regions for SBP extraction (sbprofile.reg):
- $ make_sbprofile_reg.py -b <bkgd>
+ $ make_sbprofile_reg.py -b <bkgd> -V
(??) <TODO> Generate regions for deprojected spectral analysis (rspec.reg):
$ chandra_genspcreg.sh evt2_c*_clean.fits <bkgd> centroid.reg rspec.reg
$ manifest.py setpath rspec_reg rspec.reg