aboutsummaryrefslogtreecommitdiffstats
path: root/astro/oskar/wsclean.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-11-21 23:44:33 +0800
committerAaron LI <aly@aaronly.me>2017-11-21 23:44:33 +0800
commit0b8214ceef56f23154e131d30afea593dad64a4a (patch)
tree00177c5e3032ba304f7529d7bdacbfdbe2658cb9 /astro/oskar/wsclean.py
parent9b7ca9c1885d2458034b4d90a8e8658ce231e880 (diff)
downloadatoolbox-0b8214ceef56f23154e131d30afea593dad64a4a.tar.bz2
astro/wsclean.py: Add argument --circular-beam
Diffstat (limited to 'astro/oskar/wsclean.py')
-rwxr-xr-xastro/oskar/wsclean.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/astro/oskar/wsclean.py b/astro/oskar/wsclean.py
index 05899b4..f331e32 100755
--- a/astro/oskar/wsclean.py
+++ b/astro/oskar/wsclean.py
@@ -54,13 +54,17 @@ def main():
action="store_true",
help="save gridded uv plane (i.e., FFT of the " +
"residual image) in <name>-uv-{real,imag}.fits")
+ parser.add_argument("--circular-beam", dest="circular_beam",
+ action="store_true",
+ help="force the fitted beam to be circular, i.e., " +
+ "BMIN == BMAJ")
parser.add_argument("--uv-range", dest="uv_range", default=":",
help="uv range [lambda] (i.e., baseline lengths) " +
"used for imaging; syntax: '<min>:<max>' " +
"(default: ':', i.e., all uv/baselines)")
parser.add_argument("-w", "--weight", dest="weight", default="uniform",
choices=["uniform", "natural", "briggs"],
- help="weighting method (default: 'briggs')")
+ help="weighting method (default: 'uniform')")
parser.add_argument("-B", "--briggs", dest="briggs",
type=float, default=0.0,
help="Briggs robustness parameter (default: 0); " +
@@ -142,6 +146,8 @@ def main():
cmdargs += ["-saveweights"]
if args.save_uv:
cmdargs += ["-saveuv"]
+ if args.circular_beam:
+ cmdargs += ["-circularbeam"]
# uv/baseline range
uvmin, uvmax = args.uv_range.strip().split(":")