From 193cfdfbadbe77429129ca38b8cb17ca6c82e091 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 5 Dec 2017 23:31:03 +0800 Subject: astro/wsclean.py: Add argument --simulate-noise [mJy] --- astro/oskar/wsclean.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'astro/oskar/wsclean.py') 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: ':' " + @@ -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(":") -- cgit v1.2.2