From ad90767adfda621046c0af580b75780a7426087c Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 16 Feb 2017 19:34:51 +0800 Subject: event2image.py: Fix a typo; Add short-version arguments --- scripts/event2image.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') 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) -- cgit v1.2.2