From 3f52090a81db4a089def744ea87d6f4e3c9c2621 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 1 Jun 2017 08:43:50 +0800 Subject: uvsim/telescope.py: Add "plot_stations()" and "plot_telescope()" --- bin/make-ska1low-model | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bin') diff --git a/bin/make-ska1low-model b/bin/make-ska1low-model index 9ef0034..641d5a2 100755 --- a/bin/make-ska1low-model +++ b/bin/make-ska1low-model @@ -38,6 +38,9 @@ def main(): parser.add_argument("-C", "--clobber", dest="clobber", action="store_true", help="overwrite the existing output files") + parser.add_argument("-p", "--plot", dest="plot", + action="store_true", + help="make plots for telescope and stations") parser.add_argument("-l", "--layout-file", dest="layoutfile", required=layoutfile_required, default=layoutfile, @@ -57,6 +60,9 @@ def main(): ska1low = telescope.SKA1Low(args.layoutfile) ska1low.generate_stations() ska1low.make_oskar_model(args.outdir, clobber=args.clobber) + if args.plot: + ska1low.plot_telescope(outdir=args.outdir) + ska1low.plot_stations(outdir=args.outdir) if __name__ == "__main__": -- cgit v1.2.2