diff options
author | Aaron LI <aaronly.me@outlook.com> | 2017-03-06 16:52:39 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2017-03-06 16:52:39 +0800 |
commit | e4683cf714f4b3f5aeccc3c145b077bdd992054f (patch) | |
tree | b8c4c40a91dd9e3760296aeefe15bf219f8cbffa /bin | |
parent | 187124303eee7b45be78b8b7b9f93fde4b328dff (diff) | |
download | chandra-acis-analysis-e4683cf714f4b3f5aeccc3c145b077bdd992054f.tar.bz2 |
make_sbprofile_reg.py: do not set default background file
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/make_sbprofile_reg.py | 9 |
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, |