diff options
author | Aaron LI <aly@aaronly.me> | 2017-12-05 23:31:03 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-12-05 23:31:03 +0800 |
commit | 193cfdfbadbe77429129ca38b8cb17ca6c82e091 (patch) | |
tree | 8a42f21e788f4c55d3c3756c5b290fd049d8b485 /astro | |
parent | be6297a655249cf963b7a50e65ed0881833de806 (diff) | |
download | atoolbox-193cfdfbadbe77429129ca38b8cb17ca6c82e091.tar.bz2 |
astro/wsclean.py: Add argument --simulate-noise [mJy]
Diffstat (limited to 'astro')
-rwxr-xr-x | astro/oskar/wsclean.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/astro/oskar/wsclean.py b/astro/oskar/wsclean.py index 025275b..5473764 100755 --- a/astro/oskar/wsclean.py +++ b/astro/oskar/wsclean.py @@ -101,6 +101,10 @@ def main(): "implies --circular-beam") parser.add_argument("--wlayers", dest="wlayers", type=int, help="specify the number of w-layers to use") + parser.add_argument("--simulate-noise", dest="simu_noise", type=float, + help="[mJy] replace the given MS with visibilities " + + "sampling from a Gaussian distribution of specified " + + "sigma to simulate the thermal noise images") parser.add_argument("--uv-range", dest="uv_range", default=":", help="uv range [lambda] (i.e., baseline lengths) " + "used for imaging; syntax: '<min>:<max>' " + @@ -194,6 +198,8 @@ def main(): cmdargs += ["-beamsize", args.beam_size] if args.wlayers: cmdargs += ["-nwlayers", args.wlayers] + if args.simu_noise: + cmdargs += ["-simulate-noise", args.simu_noise*1e-3] # [mJy] -> [Jy] # uv/baseline range uvmin, uvmax = args.uv_range.strip().split(":") |