aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2017-02-16 19:34:51 +0800
committerAaron LI <aaronly.me@outlook.com>2017-02-17 01:16:46 +0800
commitad90767adfda621046c0af580b75780a7426087c (patch)
treea9fccec1d7ac7648be05f174be0eea37fb784370 /scripts
parent2ad29581329bcd8f6c4b948e324e36de8e92c218 (diff)
downloadchandra-acis-analysis-ad90767adfda621046c0af580b75780a7426087c.tar.bz2
event2image.py: Fix a typo; Add short-version arguments
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/event2image.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/event2image.py b/scripts/event2image.py
index 76d8297..cba1d89 100755
--- a/scripts/event2image.py
+++ b/scripts/event2image.py
@@ -51,10 +51,10 @@ def make_image(infile, outfile, chips, erange, fov, clobber=False):
def main():
parser = argparse.ArgumentParser(
description="Make image by binning the event file")
- parser.add_argument("--elow", dest="elow", type=int, default=700,
+ parser.add_argument("-L", "--elow", dest="elow", type=int, default=700,
help="lower energy limit [eV] of the output image " +
"(default: 700 [eV])")
- parser.add_argument("--ehigh", dest="ehigh", type=int,
+ parser.add_argument("-H", "--ehigh", dest="ehigh", type=int,
help="upper energy limit [eV] of the output image " +
"(default: 7000 [eV])")
parser.add_argument("-i", "--infile", dest="infile",
@@ -80,7 +80,7 @@ def main():
outfile = args.outfile
else:
outfile = "img_c{chips}_e{erange}.fits".format(
- chips=chips, elow=erange)
+ chips=chips, erange=erange)
if args.verbose:
print("infile:", infile, file=sys.stderr)
print("outfile:", outfile, file=sys.stderr)