aboutsummaryrefslogtreecommitdiffstats
path: root/astro/oskar
diff options
context:
space:
mode:
Diffstat (limited to 'astro/oskar')
-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: