diff options
author | Aaron LI <aly@aaronly.me> | 2017-12-03 11:33:55 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-12-03 11:51:23 +0800 |
commit | c776fc07cb30aae2ba475f8914301faa943970ea (patch) | |
tree | 908175d49fd7cbd6d06374a2759d32e42bd24b62 /astro/ps2d.py | |
parent | 1664559631443ea59c248f45140ee857dc9a5b35 (diff) | |
download | atoolbox-c776fc07cb30aae2ba475f8914301faa943970ea.tar.bz2 |
astro/ps2d.py: default to apply "nuttall" window
Diffstat (limited to 'astro/ps2d.py')
-rwxr-xr-x | astro/ps2d.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/astro/ps2d.py b/astro/ps2d.py index a839298..a4c85f9 100755 --- a/astro/ps2d.py +++ b/astro/ps2d.py @@ -173,7 +173,7 @@ class PS2D: self.window = self.gen_window(name=window_name) def gen_window(self, name=None): - if name is None: + if (name is None) or (name.upper() == "NONE"): return None window_func = getattr(signal.windows, name) @@ -527,17 +527,17 @@ def main(): parser.add_argument("-m", "--mean-std", dest="meanstd", action="store_true", help="calculate the mean and standard deviation " + - "for each averaged annulus instead of the median " + + "for each averaged annulus instead of the median, " + "16%% and 84%% percentiles (i.e., 68%% error)") parser.add_argument("-P", "--no-plot", dest="noplot", action="store_true", - help="do NOT plot the 2D power spectrum and save") + help="do NOT plot the 2D power spectrum") parser.add_argument("-p", "--pixelsize", dest="pixelsize", type=float, help="spatial pixel size [arcsec] (required " + "if cannot obtain from FITS header)") parser.add_argument("-w", "--window", dest="window", - choices=["nuttall"], - help="apply window along frequency axis " + - "(default: None)") + choices=["nuttall", "none"], default="nuttall", + help="window to be applied along frequency axis " + + "(default: nuttall)") parser.add_argument("-i", "--infile", dest="infile", nargs="+", help="input FITS image cube(s); if multiple cubes " + "are provided, they are added first.") |