diff options
author | Aaron LI <aly@aaronly.me> | 2017-11-19 15:57:58 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-11-19 15:57:58 +0800 |
commit | f1d9b0cd9a0345d9b4c50f3cde5adfdd359ce129 (patch) | |
tree | f665cdb3fd47d524193cd6e0d6fe363176830ab0 /astro/ps2d.py | |
parent | 3f9da58ce86ca6b11789ef6f00b96710df53ada4 (diff) | |
download | atoolbox-f1d9b0cd9a0345d9b4c50f3cde5adfdd359ce129.tar.bz2 |
calc_psd.py & ps2d.py: Change --plot to --no-plot
Diffstat (limited to 'astro/ps2d.py')
-rwxr-xr-x | astro/ps2d.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/astro/ps2d.py b/astro/ps2d.py index f7c9801..cbb3a93 100755 --- a/astro/ps2d.py +++ b/astro/ps2d.py @@ -525,9 +525,8 @@ def main(): help="calculate the mean and standard deviation " + "for each averaged annulus instead of the median " + "16%% and 84%% percentiles (i.e., 68%% error)") - parser.add_argument("-P", "--plot", dest="plot", - action="store_true", - help="plot the 2D power spectrum and save") + parser.add_argument("-P", "--no-plot", dest="noplot", action="store_true", + help="do NOT plot the 2D power spectrum and save") parser.add_argument("-p", "--pixelsize", dest="pixelsize", type=float, help="spatial pixel size [arcsec] (required " + "if cannot obtain from FITS header)") @@ -580,7 +579,7 @@ def main(): ps2d.calc_ps2d() ps2d.save(outfile=args.outfile, clobber=args.clobber) - if args.plot: + if not args.noplot: fig = Figure(figsize=(16, 8), dpi=150) FigureCanvas(fig) ax = fig.add_subplot(1, 2, 1) |