aboutsummaryrefslogtreecommitdiffstats
path: root/astro
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-09-12 20:00:12 +0800
committerAaron LI <aly@aaronly.me>2017-09-12 20:00:12 +0800
commitb4a9a5a02de398afef98af76f81ff25b39113c46 (patch)
treeb81636dec5d3babb9da2ae9f8883e7207fc54453 /astro
parentf1560262d88a255fe4c63b8b4e7f171c4af12111 (diff)
downloadatoolbox-b4a9a5a02de398afef98af76f81ff25b39113c46.tar.bz2
Update arguments description a bit
Diffstat (limited to 'astro')
-rwxr-xr-xastro/oskar/fits2skymodel.py7
-rwxr-xr-xastro/oskar/wsclean.py5
2 files changed, 7 insertions, 5 deletions
diff --git a/astro/oskar/fits2skymodel.py b/astro/oskar/fits2skymodel.py
index f6ec4ad..c610e21 100755
--- a/astro/oskar/fits2skymodel.py
+++ b/astro/oskar/fits2skymodel.py
@@ -230,8 +230,8 @@ def main():
"(default: obtain from the FITS header 'FREQ')")
exgrp = parser.add_mutually_exclusive_group()
exgrp.add_argument("-m", "--min-value", dest="minvalue", type=float,
- help="minimum threshold to the output sky model " +
- "(default: 1e-4, i.e., 0.1 mK)")
+ help="minimum threshold to the output sky model; " +
+ "unit: [K]; (default: 1e-4, i.e., 0.1 mK)")
exgrp.add_argument("-M", "--min-peak-fraction", dest="minpfrac",
type=float,
help="minimum threshold determined as the fraction " +
@@ -243,7 +243,8 @@ def main():
action="store_true",
help="save a FITS version of the converted sky model")
parser.add_argument("-o", "--outdir", dest="outdir",
- help="output directory for sky model files")
+ help="output directory for sky model files " +
+ "(default: current working directory)")
parser.add_argument("--create-mask", dest="create_mask",
help="create a FITS mask for the output sky model")
parser.add_argument("infile", help="input FITS image")
diff --git a/astro/oskar/wsclean.py b/astro/oskar/wsclean.py
index cfef30d..16abeea 100755
--- a/astro/oskar/wsclean.py
+++ b/astro/oskar/wsclean.py
@@ -34,7 +34,8 @@ def wsclean(args, dryrun=False):
def main():
- parser = argparse.ArgumentParser(description="Run WSClean")
+ parser = argparse.ArgumentParser(
+ description="Run WSClean with more handy arguments")
parser.add_argument("-n", "--dry-run", dest="dryrun", action="store_true",
help="do not actually run WSClean")
parser.add_argument("-a", "--args", dest="args",
@@ -116,7 +117,7 @@ def main():
if args.weight == "uniform":
cmdargs += ["-weight", "uniform",
- "-weighting-rank-filter", "3"]
+ "-weighting-rank-filter", 3]
elif args.weight == "briggs":
cmdargs += ["-weight", "briggs", args.briggs]
else: