diff options
author | Aaron LI <aly@aaronly.me> | 2019-03-04 00:22:23 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2019-03-04 00:22:23 +0800 |
commit | 8ec9862f63f21d7227fc54b7c211e50d2dfd77f7 (patch) | |
tree | 5177a173aa0a08f164ac614768e6a4fc8474ebea /astro | |
parent | 472d49eb988efb11360ad48c157e478fe07c3ff8 (diff) | |
download | atoolbox-8ec9862f63f21d7227fc54b7c211e50d2dfd77f7.tar.bz2 |
astro/wsclean.py: Add -j/--threads argument
Diffstat (limited to 'astro')
-rwxr-xr-x | astro/oskar/wsclean.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/astro/oskar/wsclean.py b/astro/oskar/wsclean.py index 8a2f265..8f318a0 100755 --- a/astro/oskar/wsclean.py +++ b/astro/oskar/wsclean.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -# Copyright (c) 2017-2018 Aaron LI -# MIT license +# Copyright (c) 2017-2019 Aaron LI +# MIT License # # Create image from OSKAR simulated visibility data using `WSClean`. # WSClean: https://sourceforge.net/p/wsclean/ @@ -88,6 +88,8 @@ def main(): "--niter to 0") parser.add_argument("-n", "--dry-run", dest="dryrun", action="store_true", help="do not actually run WSClean") + parser.add_argument("-j", "--threads", type=int, + help="number of computing threads to use") parser.add_argument("--update-model", dest="update_model", action="store_true", help="write/update the MODEL_DATA column in MS") @@ -183,6 +185,10 @@ def main(): cmdargs += ["-weight", "briggs", args.briggs] else: cmdargs += ["-weight", args.weight] # natural + + if args.threads: + cmdargs += ["-j", args.threads] + cmdargs += ["-gain", args.gain] cmdargs += ["-mgain", args.mgain] cmdargs += ["-size", args.size, args.size] |