aboutsummaryrefslogtreecommitdiffstats
path: root/bin
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 /bin
parent187124303eee7b45be78b8b7b9f93fde4b328dff (diff)
downloadchandra-acis-analysis-e4683cf714f4b3f5aeccc3c145b077bdd992054f.tar.bz2
make_sbprofile_reg.py: do not set default background file
Diffstat (limited to 'bin')
-rwxr-xr-xbin/make_sbprofile_reg.py9
1 files changed, 2 insertions, 7 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,